| Modifier and Type | Class | Description |
|---|---|---|
static class |
BooleanMenuItem.BooleanNaming |
eepromAddress, functionName, id, name, readOnly| Constructor | Description |
|---|---|
BooleanMenuItem() |
|
BooleanMenuItem(String name,
int id,
int eepromAddress,
String functionName,
BooleanMenuItem.BooleanNaming naming,
boolean readOnly) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
accept(MenuItemVisitor visitor) |
|
boolean |
equals(Object o) |
|
BooleanMenuItem.BooleanNaming |
getNaming() |
returns the naming for this boolean, that describes how to render the true/false choice.
|
int |
hashCode() |
|
MenuState<Boolean> |
newMenuState(Boolean value,
boolean changed,
boolean active) |
returns a new menu state object, suitable for storing the current value
|
getEepromAddress, getFunctionName, getId, getName, hasChildren, isReadOnly, toStringpublic BooleanMenuItem()
public BooleanMenuItem(String name, int id, int eepromAddress, String functionName, BooleanMenuItem.BooleanNaming naming, boolean readOnly)
public BooleanMenuItem.BooleanNaming getNaming()
public MenuState<Boolean> newMenuState(Boolean value, boolean changed, boolean active)
newMenuState in class MenuItem<Boolean>value - the new valuechanged - if the item has changedactive - if the item is activepublic void accept(MenuItemVisitor visitor)
Copyright © 2018. All rights reserved.