All Implemented Interfaces:
TagBase, BooleanAttribute, InputAttributable, Serializable, Cloneable

public class Checked extends AbstractAttribute implements InputAttributable, BooleanAttribute
<element checked> When the value of the type attribute is radio or checkbox, the presence of this Boolean attribute indicates that the control is selected by default; otherwise it is ignored. Firefox will, unlike other browsers, by default, persist the dynamic checked state of an <input> across page loads. Use the autocomplete attribute to control this feature.
Since:
1.0.0
See Also:
  • Constructor Details

    • Checked

      public Checked()
      sets the default value as checked (since 2.1.5). If value is not required then use new Selected(null). Note : There might be some issue in dynamically changing state of tag if there is no default value.
      Since:
      1.0.0
    • Checked

      public Checked(String value)
  • Method Details

    • setValue

      public void setValue(String value)
    • getValue

      public String getValue()
    • init

      protected void init()
      invokes only once per object
      Since:
      1.0.0