Class TextMenuItem


  • public class TextMenuItem
    extends MenuItem<java.lang.String>
    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.
    • Constructor Detail

      • TextMenuItem

        public TextMenuItem()
      • TextMenuItem

        public TextMenuItem​(java.lang.String name,
                            int id,
                            int eepromAddress,
                            java.lang.String functionName,
                            int length,
                            boolean readOnly)
    • Method Detail

      • getTextLength

        public int getTextLength()
        The maximum length allowable.
        Returns:
      • newMenuState

        public MenuState<java.lang.String> newMenuState​(java.lang.String value,
                                                        boolean changed,
                                                        boolean active)
        Returns a new String current value that can be used as the current value in the Menutree
        Specified by:
        newMenuState in class MenuItem<java.lang.String>
        Parameters:
        value - the new value
        changed - if the value has changed
        active - if the value is active.
        Returns:
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object