java.lang.Object
com.thecoderscorner.menu.domain.MenuItem
com.thecoderscorner.menu.domain.SubMenuItem
SubMenuItem represents a menu item that has children. To get the child items call the MenuTree
methods that interact with items.
-
Field Summary
Fields inherited from class com.thecoderscorner.menu.domain.MenuItem
eepromAddress, functionName, id, localOnly, name, readOnly, variableName, visible -
Constructor Summary
ConstructorsConstructorDescriptionSubMenuItem(String name, String varName, int id, int eepromAddr, boolean localOnly, boolean visible, boolean secured) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(MenuItemVisitor visitor)booleanbooleanhas children indicates if this item can contain child itemsinthashCode()booleanMethods inherited from class com.thecoderscorner.menu.domain.MenuItem
getEepromAddress, getFunctionName, getId, getName, getVariableName, isLocalOnly, isReadOnly, isVisible, toString
-
Constructor Details
-
SubMenuItem
public SubMenuItem() -
SubMenuItem
-
-
Method Details
-
hasChildren
public boolean hasChildren()Description copied from class:MenuItemhas children indicates if this item can contain child items- Overrides:
hasChildrenin classMenuItem- Returns:
- true submenu's always have children.
-
isSecured
public boolean isSecured() -
equals
-
hashCode
public int hashCode()
-