Package com.thecoderscorner.menu.domain
Class BooleanMenuItem
java.lang.Object
com.thecoderscorner.menu.domain.MenuItem
com.thecoderscorner.menu.domain.BooleanMenuItem
A menu item that can only hold boolean values (true or false). The naming can be changed such that the boolean can
be represented with different text. Rather than using the constructor use the BooleanMenuItemBuilder to build one.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.thecoderscorner.menu.domain.MenuItem
eepromAddress, functionName, id, localOnly, name, readOnly, variableName, visible -
Constructor Summary
ConstructorsConstructorDescriptionBooleanMenuItem(String name, String varName, int id, int eepromAddress, String functionName, BooleanMenuItem.BooleanNaming naming, boolean readOnly, boolean localOnly, boolean visible) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(MenuItemVisitor visitor)booleanreturns the naming for this boolean, that describes how to render the true/false choice.inthashCode()Methods inherited from class com.thecoderscorner.menu.domain.MenuItem
getEepromAddress, getFunctionName, getId, getName, getVariableName, hasChildren, isLocalOnly, isReadOnly, isVisible, toString
-
Constructor Details
-
BooleanMenuItem
public BooleanMenuItem()
-
-
Method Details