Class EditableLargeNumberMenuItem

java.lang.Object
com.thecoderscorner.menu.domain.MenuItem
com.thecoderscorner.menu.domain.EditableLargeNumberMenuItem

public class EditableLargeNumberMenuItem extends MenuItem
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 Details

    • EditableLargeNumberMenuItem

      public EditableLargeNumberMenuItem()
    • EditableLargeNumberMenuItem

      public EditableLargeNumberMenuItem(String name, String varName, int id, int eepromAddress, String functionName, int digitsAllowed, int decimalPlaces, boolean negativeAllowed, boolean readOnly, boolean localOnly, boolean visible)
  • Method Details

    • getDigitsAllowed

      public int getDigitsAllowed()
    • getDecimalPlaces

      public int getDecimalPlaces()
    • isNegativeAllowed

      public boolean isNegativeAllowed()
    • accept

      public void accept(MenuItemVisitor visitor)
      Specified by:
      accept in class MenuItem
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object