Class HtmlNumberInput

    • Method Detail

      • isSubmittableByEnter

        protected boolean isSubmittableByEnter()
        Returns true if clicking Enter (ASCII 10, or '\n') should submit the enclosed form (if any). The default implementation returns false.
        Overrides:
        isSubmittableByEnter in class HtmlElement
        Returns:
        true if clicking Enter should submit the enclosed form (if any)
      • doType

        protected void doType​(char c,
                              boolean lastType)
        Performs the effective type action, called after the keyPress event and before the keyUp event.
        Overrides:
        doType in class HtmlSelectableTextInput
        Parameters:
        c - the character you with to simulate typing
        lastType - is this the last character to type
      • getValue

        public java.lang.String getValue()
        Overrides:
        getValue in class HtmlInput
        Returns:
        the value
      • isValid

        public boolean isValid()
        Returns whether this element satisfies all form validation constraints set.
        Overrides:
        isValid in class HtmlInput
        Returns:
        whether this element satisfies all form validation constraints set