ConfigPanelHost.java
1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* This file is part of LiteLoader.
* Copyright (C) 2012-16 Adam Mummery-Smith
* All Rights Reserved.
*/
package com.mumfrey.liteloader.modconfig;
import com.mumfrey.liteloader.LiteMod;
/**
* Interface for object which can host configuration panels
*
* @author Adam Mummery-Smith
*/
public interface ConfigPanelHost
{
/**
* Get the mod instance which owns the panel
*/
public abstract <TModClass extends LiteMod> TModClass getMod();
/**
* Get the width of the configuration panel area
*/
public abstract int getWidth();
/**
* Get the height of the configuration panel area
*/
public abstract int getHeight();
/**
* Notify the panel host that the panel wishes to close
*/
public abstract void close();
/**
* Notify the panel host that the panel wishes to advance to the next panel
*/
// public abstract void next();
/**
* Notify the panel host that the panel wishes to go back to the previous
* panel.
*/
// public abstract void previous();
}