Package com.thecoderscorner.menu.domain
Class EditableLargeNumberMenuItem
- java.lang.Object
-
- com.thecoderscorner.menu.domain.MenuItem<java.math.BigDecimal>
-
- com.thecoderscorner.menu.domain.EditableLargeNumberMenuItem
-
public class EditableLargeNumberMenuItem extends MenuItem<java.math.BigDecimal>
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, visible
-
-
Constructor Summary
Constructors Constructor Description EditableLargeNumberMenuItem(java.lang.String name, int id, int eepromAddress, java.lang.String functionName, int digitsAllowed, int decimalPlaces, boolean negativeAllowed, boolean readOnly, boolean localOnly, boolean visible)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(MenuItemVisitor visitor)intgetDecimalPlaces()intgetDigitsAllowed()booleanisNegativeAllowed()MenuState<java.math.BigDecimal>newMenuState(java.math.BigDecimal value, boolean changed, boolean active)-
Methods inherited from class com.thecoderscorner.menu.domain.MenuItem
getEepromAddress, getFunctionName, getId, getName, hasChildren, isLocalOnly, isReadOnly, isVisible, toString
-
-
-
-
Method Detail
-
getDigitsAllowed
public int getDigitsAllowed()
-
getDecimalPlaces
public int getDecimalPlaces()
-
isNegativeAllowed
public boolean isNegativeAllowed()
-
newMenuState
public MenuState<java.math.BigDecimal> newMenuState(java.math.BigDecimal value, boolean changed, boolean active)
- Specified by:
newMenuStatein classMenuItem<java.math.BigDecimal>
-
accept
public void accept(MenuItemVisitor visitor)
-
-