T - the type of the current valueAnalogMenuItem, BooleanMenuItem, EnumMenuItem, 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 |
| Constructor | Description |
|---|---|
MenuItem(String name,
int id,
int eepromAddress,
String functionName) |
| 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
|
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
public String getName()
public int getId()
public int getEepromAddress()
public String getFunctionName()
public boolean hasChildren()
public abstract void accept(MenuItemVisitor visitor)
Copyright © 2018. All rights reserved.