Package com.thecoderscorner.menu.domain
Class ActionMenuItem
ActionMenuItem represents a menu item that is a one shot action, in that when triggered it
just runs the callback on the embedded side.
-
Field Summary
Fields inherited from class com.thecoderscorner.menu.domain.MenuItem
eepromAddress, functionName, id, localOnly, name, readOnly, variableName, visible -
Constructor Summary
ConstructorsConstructorDescriptionActionMenuItem(String name, String variableName, int id, String functionName, int eepromAddr, boolean readOnly, boolean localOnly, boolean visible) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(MenuItemVisitor visitor)booleanbooleanhas children indicates if this item can contain child itemsinthashCode()newMenuState(Boolean value, boolean changed, boolean active)Methods inherited from class com.thecoderscorner.menu.domain.MenuItem
getEepromAddress, getFunctionName, getId, getName, getVariableName, isLocalOnly, isReadOnly, isVisible, toString
-
Constructor Details
-
ActionMenuItem
public ActionMenuItem() -
ActionMenuItem
-
-
Method Details
-
hasChildren
public boolean hasChildren()Description copied from class:MenuItemhas children indicates if this item can contain child items- Overrides:
hasChildrenin classMenuItem<Boolean>- Returns:
- false - actions don't have child elements
-
newMenuState
- Specified by:
newMenuStatein classMenuItem<Boolean>
-
equals
-
hashCode
public int hashCode()
-