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

public class Hidden extends AbstractAttribute implements GlobalAttributable, BooleanAttribute
<element hidden>
 The hidden attribute is a boolean attribute.

 When present, it specifies that an element is not yet, or is no longer, relevant.

 Browsers should not display elements that have the hidden attribute specified.

 The hidden attribute can also be used to keep a user from seeing an element until some other condition has been met (like selecting a checkbox, etc.). Then, a JavaScript could remove the hidden attribute, and make the element visible.
 
See Also:
  • Constructor Details

    • Hidden

      public Hidden()
      sets the default value as hidden (since 2.1.5). If value is not required then use new Hidden(null).
    • Hidden

      public Hidden(String value)
      Parameters:
      value - the value should be hidden, true, empty string or null
      Since:
      1.1.4, 3.0.19 internal hidden property value will be set as false only if false value is passed.
    • Hidden

      @Deprecated public Hidden(boolean hidden)
      Deprecated.
  • Method Details

    • init

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

      @Deprecated public boolean isHidden()
      Deprecated.
      as there is no affect of boolean values for this attribute. this method will be removed later.
      Returns:
      the hidden
      Since:
      1.0.0
    • setHidden

      @Deprecated public void setHidden(Boolean hidden)
      Deprecated.
      as there is no affect of boolean values for this attribute. this method will be removed later.
      Parameters:
      hidden - the hidden to set. null will remove the value.
      Since:
      1.0.0