Public Member Functions | |
MenuItem (String name, String variableName, int id, int eepromAddress, String functionName, boolean readOnly, boolean localOnly, boolean visible, boolean staticDataInRAM) | |
String | getName () |
boolean | isReadOnly () |
int | getId () |
boolean | isLocalOnly () |
int | getEepromAddress () |
String | getFunctionName () |
String | getVariableName () |
boolean | isVisible () |
boolean | hasChildren () |
abstract void | accept (MenuItemVisitor visitor) |
boolean | isStaticDataInRAM () |
String | toString () |
The base class for all menu items, has the most basic operations available on it that are needed by pretty much all menu items.
int com.thecoderscorner.menu.domain.MenuItem.getEepromAddress | ( | ) |
gets the eeprom storage address for this item. -1 indicates no storage.
String com.thecoderscorner.menu.domain.MenuItem.getFunctionName | ( | ) |
Gets the function name for this item
int com.thecoderscorner.menu.domain.MenuItem.getId | ( | ) |
gets the ID for the menu item
String com.thecoderscorner.menu.domain.MenuItem.getName | ( | ) |
gets the name of the menu item
String com.thecoderscorner.menu.domain.MenuItem.getVariableName | ( | ) |
Gets the variable name that should be used during generation
boolean com.thecoderscorner.menu.domain.MenuItem.hasChildren | ( | ) |
has children indicates if this item can contain child items
Reimplemented in com.thecoderscorner.menu.domain.SubMenuItem, and com.thecoderscorner.menu.domain.ActionMenuItem.
boolean com.thecoderscorner.menu.domain.MenuItem.isLocalOnly | ( | ) |
Returns if this menu item is only for local viewing and not to be sent remotely
boolean com.thecoderscorner.menu.domain.MenuItem.isReadOnly | ( | ) |
gets the read only status of this menu item
boolean com.thecoderscorner.menu.domain.MenuItem.isStaticDataInRAM | ( | ) |
Mainly used by the designer, this specifies if the info block for a menu item resides in RAM or FLASH
boolean com.thecoderscorner.menu.domain.MenuItem.isVisible | ( | ) |
Flag indicates if the item should be visible on the UI