Class HTMLInputElementImpl

    • Constructor Detail

      • HTMLInputElementImpl

        public HTMLInputElementImpl​(java.lang.String name)
    • Method Detail

      • getDefaultChecked

        public boolean getDefaultChecked()
        Description copied from interface: HTMLInputElement
        When type has the value "radio" or "checkbox", this represents the HTML checked attribute of the element. The value of this attribute does not change if the state of the corresponding form control, in an interactive user agent, changes. See the checked attribute definition in HTML 4.01.
        Specified by:
        getDefaultChecked in interface HTMLInputElement
      • setDefaultChecked

        public void setDefaultChecked​(boolean defaultChecked)
        Description copied from interface: HTMLInputElement
        When type has the value "radio" or "checkbox", this represents the HTML checked attribute of the element. The value of this attribute does not change if the state of the corresponding form control, in an interactive user agent, changes. See the checked attribute definition in HTML 4.01.
        Specified by:
        setDefaultChecked in interface HTMLInputElement
      • getChecked

        public boolean getChecked()
        Description copied from interface: HTMLInputElement
        When the type attribute of the element has the value "radio" or "checkbox", this represents the current state of the form control, in an interactive user agent. Changes to this attribute change the state of the form control, but do not change the value of the HTML checked attribute of the INPUT element.During the handling of a click event on an input element with a type attribute that has the value "radio" or "checkbox", some implementations may change the value of this property before the event is being dispatched in the document. If the default action of the event is canceled, the value of the property may be changed back to its original value. This means that the value of this property during the handling of click events is implementation dependent.
        Specified by:
        getChecked in interface HTMLInputElement
      • setChecked

        public void setChecked​(boolean checked)
        Description copied from interface: HTMLInputElement
        When the type attribute of the element has the value "radio" or "checkbox", this represents the current state of the form control, in an interactive user agent. Changes to this attribute change the state of the form control, but do not change the value of the HTML checked attribute of the INPUT element.During the handling of a click event on an input element with a type attribute that has the value "radio" or "checkbox", some implementations may change the value of this property before the event is being dispatched in the document. If the default action of the event is canceled, the value of the property may be changed back to its original value. This means that the value of this property during the handling of click events is implementation dependent.
        Specified by:
        setChecked in interface HTMLInputElement
      • getMaxLength

        public int getMaxLength()
        Description copied from interface: HTMLInputElement
        Maximum number of characters for text fields, when type has the value "text" or "password". See the maxlength attribute definition in HTML 4.01.
        Specified by:
        getMaxLength in interface HTMLInputElement
      • setMaxLength

        public void setMaxLength​(int maxLength)
        Description copied from interface: HTMLInputElement
        Maximum number of characters for text fields, when type has the value "text" or "password". See the maxlength attribute definition in HTML 4.01.
        Specified by:
        setMaxLength in interface HTMLInputElement
      • getSize

        public int getSize()
        Description copied from interface: HTMLInputElement
        Size information. The precise meaning is specific to each type of field. See the size attribute definition in HTML 4.01.
        Specified by:
        getSize in interface HTMLInputElement
      • setSize

        public void setSize​(int size)
        Description copied from interface: HTMLInputElement
        Size information. The precise meaning is specific to each type of field. See the size attribute definition in HTML 4.01.
        Specified by:
        setSize in interface HTMLInputElement
      • getSrc

        public java.lang.String getSrc()
        Description copied from interface: HTMLInputElement
        When the type attribute has the value "image", this attribute specifies the location of the image to be used to decorate the graphical submit button. See the src attribute definition in HTML 4.01.
        Specified by:
        getSrc in interface HTMLInputElement
      • setSrc

        public void setSrc​(java.lang.String src)
        Description copied from interface: HTMLInputElement
        When the type attribute has the value "image", this attribute specifies the location of the image to be used to decorate the graphical submit button. See the src attribute definition in HTML 4.01.
        Specified by:
        setSrc in interface HTMLInputElement
      • getType

        public java.lang.String getType()
        Gets input type in lowercase.
        Specified by:
        getType in interface HTMLInputElement
      • setType

        public void setType​(java.lang.String type)
        Description copied from interface: HTMLInputElement
        The type of control created (all lower case). See the type attribute definition in HTML 4.01.
        Specified by:
        setType in interface HTMLInputElement
      • getUseMap

        public java.lang.String getUseMap()
        Description copied from interface: HTMLInputElement
        Use client-side image map. See the usemap attribute definition in HTML 4.01.
        Specified by:
        getUseMap in interface HTMLInputElement
      • setUseMap

        public void setUseMap​(java.lang.String useMap)
        Description copied from interface: HTMLInputElement
        Use client-side image map. See the usemap attribute definition in HTML 4.01.
        Specified by:
        setUseMap in interface HTMLInputElement
      • click

        public void click()
        Description copied from interface: HTMLInputElement
        Simulate a mouse-click. For INPUT elements whose type attribute has one of the following values: "button", "checkbox", "radio", "reset", or "submit".
        Specified by:
        click in interface HTMLInputElement
      • isSubmittableWithEnterKey

        public boolean isSubmittableWithEnterKey()
      • isSubmittableWithPress

        public boolean isSubmittableWithPress()
      • isSubmitInput

        public boolean isSubmitInput()
      • isImageInput

        public boolean isImageInput()
      • isResetInput

        public boolean isResetInput()
      • getFormInputs

        protected FormInput[] getFormInputs()
        Description copied from class: HTMLElementImpl
        Gets form input due to the current element. It should return null except when the element is a form input element.
        Overrides:
        getFormInputs in class HTMLElementImpl