Interface InputBuilder

All Superinterfaces:
ElementBuilderBase<InputBuilder>
All Known Implementing Classes:
DomInputBuilder, HtmlInputBuilder

public interface InputBuilder extends ElementBuilderBase<InputBuilder>
Builds an input element.
  • Method Details

    • accept

      InputBuilder accept(String accept)
      A comma-separated list of content types that a server processing this form will handle correctly.
      See Also:
    • accessKey

      InputBuilder accessKey(String accessKey)
      A single character access key to give access to the form control.
      See Also:
    • alt

      InputBuilder alt(String alt)
      Alternate text for user agents not rendering the normal content of this element.
      See Also:
    • checked

      InputBuilder checked()
      Set the state of the form control to true when type attribute of the element has the value "radio" or "checkbox".
    • defaultChecked

      InputBuilder defaultChecked()
      Set the default state of the form control to true when type attribute of the element has the value "radio" or "checkbox".
      See Also:
    • defaultValue

      InputBuilder defaultValue(String defaultValue)
      When the type attribute of the element has the value "text", "file" or "password", this represents the HTML value attribute of the element. The value of this attribute does not change if the contents of the corresponding form control, in an interactive user agent, changes.
      See Also:
    • disabled

      InputBuilder disabled()
      Disable the control.
      See Also:
    • maxLength

      InputBuilder maxLength(int maxLength)
      Maximum number of characters for text fields, when type has the value "text" or "password".
      See Also:
    • name

      InputBuilder name(String name)
      Form control or object name when submitted with a form.
      See Also:
    • readOnly

      InputBuilder readOnly()
      Make the control read-only. Relevant only when type has the value "text" or "password".
      See Also:
    • size

      InputBuilder size(int size)
      Size information. The precise meaning is specific to each type of field.
      See Also:
    • src

      InputBuilder src(String src)
      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 Also:
    • value

      InputBuilder value(String value)
      When the type attribute of the element has the value "text", "file" or "password", this represents the current contents of the corresponding form control, in an interactive user agent. Changing this attribute changes the contents of the form control, but does not change the value of the HTML value attribute of the element. When the type attribute of the element has the value "button", "hidden", "submit", "reset", "image", "checkbox" or "radio", this represents the HTML value attribute of the element.
      See Also: