-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMenuItem.java
More file actions
78 lines (64 loc) · 1.54 KB
/
MenuItem.java
File metadata and controls
78 lines (64 loc) · 1.54 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package org.lcdproc.lcdjava;
/**
* Interface for menu items.
* @author Stefan Krupop
*/
public interface MenuItem
{
/**
* The name of the action item.
*/
public static final String MENUITEM_ACTION = "action";
/**
* The name of the checkbox item.
*/
public static final String MENUITEM_CHECKBOX = "checkbox";
/**
* The name of the ring item.
*/
public static final String MENUITEM_RING = "ring";
/**
* The name of the slider item.
*/
public static final String MENUITEM_SLIDER = "slider";
/**
* The name of the numeric item.
*/
public static final String MENUITEM_NUMERIC = "numeric";
/**
* The name of the alpha item.
*/
public static final String MENUITEM_ALPHA = "alpha";
/**
* The name of the IP item.
*/
public static final String MENUITEM_IP = "ip";
/**
* The name of the menu item.
*/
public static final String MENUITEM_MENU = "menu";
/**
* Get the menu id.
* @return the menu id.
*/
public String getID();
/**
* Get the menu type.
* @return the menu type.
*/
public String getType();
/**
* Return the data this item needs to update itself.
* @return the data to update this item.
*/
public String getData();
/**
* Add this item to the Menu.
* @return whether or not the item was added successfully.
*/
public boolean activate();
/**
* Remove this item.
*/
public void remove();
}