Package com.thecoderscorner.menu.domain
Class EditableTextMenuItem
java.lang.Object
com.thecoderscorner.menu.domain.MenuItem
com.thecoderscorner.menu.domain.EditableTextMenuItem
An implementation of menu item that can store text strings. Currently, the are always stored in RAM on the Arduino
so choose the size carefully.
-
Field Summary
Fields inherited from class com.thecoderscorner.menu.domain.MenuItem
eepromAddress, functionName, id, localOnly, name, readOnly, variableName, visible -
Constructor Summary
ConstructorsConstructorDescriptionEditableTextMenuItem(String name, String varName, int id, int eepromAddress, String functionName, int length, EditItemType itemType, boolean readOnly, boolean localOnly, boolean visible) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(MenuItemVisitor visitor) booleanintinthashCode()Methods inherited from class com.thecoderscorner.menu.domain.MenuItem
getEepromAddress, getFunctionName, getId, getName, getVariableName, hasChildren, isLocalOnly, isReadOnly, isVisible, toString
-
Constructor Details
-
EditableTextMenuItem
public EditableTextMenuItem()
-
-
Method Details
-
getTextLength
public int getTextLength()- Returns:
- The maximum length allowable.
-
getItemType
- Returns:
- the type of values that can be represented by this control.
- See Also:
-
equals
-
hashCode
public int hashCode()
-