T - the type of the current valueActionMenuItem, AnalogMenuItem, BooleanMenuItem, EnumMenuItem, FloatMenuItem, RemoteMenuItem, SubMenuItem, TextMenuItempublic abstract class MenuItem<T> extends Object
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
eepromAddress |
|
protected String |
functionName |
|
protected int |
id |
|
protected String |
name |
|
protected boolean |
readOnly |
| Constructor | Description |
|---|---|
MenuItem(String name,
int id,
int eepromAddress,
String functionName,
boolean readOnly) |
| Modifier and Type | Method | Description |
|---|---|---|
abstract void |
accept(MenuItemVisitor visitor) |
|
int |
getEepromAddress() |
gets the eeprom storage address for this item.
|
String |
getFunctionName() |
Gets the function name for this item
|
int |
getId() |
gets the ID for the menu item
|
String |
getName() |
gets the name of the menu item
|
boolean |
hasChildren() |
has children indicates if this item can contain child items
|
boolean |
isReadOnly() |
gets the read only status of this menu item
|
abstract MenuState<T> |
newMenuState(T value,
boolean changed,
boolean active) |
|
String |
toString() |
protected final String name
protected final int id
protected final int eepromAddress
protected final String functionName
protected final boolean readOnly
public String getName()
public boolean isReadOnly()
public int getId()
public int getEepromAddress()
public String getFunctionName()
public boolean hasChildren()
public abstract void accept(MenuItemVisitor visitor)
Copyright © 2018. All rights reserved.