Class 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.
    • Constructor Detail

      • EditableLargeNumberMenuItem

        public 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 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:
        newMenuState in class MenuItem<java.math.BigDecimal>