Package com.thecoderscorner.menu.domain
Class EditableLargeNumberMenuItem
java.lang.Object
com.thecoderscorner.menu.domain.MenuItem<BigDecimal>
com.thecoderscorner.menu.domain.EditableLargeNumberMenuItem
A menu item that corresponds to the large number type on the device. These numeric values are generally
large enough that they should be stored as big decimals. They have a maximum number of digits and a
fixed number of decimal places. They can be positive or negative, although you can prevent negative values
by setting negativeAllowed to false.
-
Field Summary
Fields inherited from class com.thecoderscorner.menu.domain.MenuItem
eepromAddress, functionName, id, localOnly, name, readOnly, variableName, visible -
Constructor Summary
ConstructorsConstructorDescriptionEditableLargeNumberMenuItem(String name, String varName, int id, int eepromAddress, String functionName, int digitsAllowed, int decimalPlaces, boolean negativeAllowed, boolean readOnly, boolean localOnly, boolean visible) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(MenuItemVisitor visitor)booleanintintinthashCode()booleannewMenuState(BigDecimal value, boolean changed, boolean active)Methods inherited from class com.thecoderscorner.menu.domain.MenuItem
getEepromAddress, getFunctionName, getId, getName, getVariableName, hasChildren, isLocalOnly, isReadOnly, isVisible, toString
-
Constructor Details
-
EditableLargeNumberMenuItem
public EditableLargeNumberMenuItem() -
EditableLargeNumberMenuItem
-
-
Method Details
-
getDigitsAllowed
public int getDigitsAllowed() -
getDecimalPlaces
public int getDecimalPlaces() -
isNegativeAllowed
public boolean isNegativeAllowed() -
newMenuState
- Specified by:
newMenuStatein classMenuItem<BigDecimal>
-
equals
-
hashCode
public int hashCode()
-