Class HtmlRangeInput

    • Constructor Detail

      • HtmlRangeInput

        HtmlRangeInput​(java.lang.String qualifiedName,
                       SgmlPage page,
                       java.util.Map<java.lang.String,​DomAttr> attributes)
        Creates an instance.
        Parameters:
        qualifiedName - the qualified name of the element type to instantiate
        page - the page that contains this element
        attributes - the initial attributes
    • Method Detail

      • getMinNumeric

        public double getMinNumeric()
        Returns:
        the min as double
      • getMaxNumeric

        public double getMaxNumeric()
        Returns:
        the max as double
      • getStepNumeric

        public double getStepNumeric()
        Returns:
        the max as double
      • setValue

        public void setValue​(java.lang.String newValue)
        Sets the value.
        Overrides:
        setValue in class HtmlInput
        Parameters:
        newValue - the new value
      • setValue

        private void setValue​(double newValue)
      • valueAttributeChanged

        protected void valueAttributeChanged​(java.lang.String attributeValue,
                                             boolean isValueDirty)
        Overrides:
        valueAttributeChanged in class HtmlInput
      • setRawValue

        private void setRawValue​(double newValue)
      • isRequiredSupported

        protected boolean isRequiredSupported()
        Returns whether this element supports the required constraint.
        Overrides:
        isRequiredSupported in class HtmlInput
        Returns:
        whether this element supports the required constraint
      • 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
      • isMinValid

        private boolean isMinValid()
        Returns if the input element has a valid min value. Refer to the HTML 5 documentation for details.
        Returns:
        if the input element has a valid min value
      • isMaxValid

        private boolean isMaxValid()
        Returns if the input element has a valid max value. Refer to the HTML 5 documentation for details.
        Returns:
        if the input element has a valid max value