Class Checked

  • All Implemented Interfaces:
    TagBase, BooleanAttribute, InputAttributable, java.io.Serializable, java.lang.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:
    Serialized Form
    • Constructor Detail

      • 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​(java.lang.String value)
    • Method Detail

      • setValue

        public void setValue​(java.lang.String value)
      • getValue

        public java.lang.String getValue​()
      • init

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