Class Hidden

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

      • 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​(java.lang.String value)
        Parameters:
        value - the value should be either true or false
        Since:
        1.1.4
      • Hidden

        public Hidden​(boolean hidden)
    • Method Detail

      • 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​(java.lang.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