com.osbcp.css.constants
Enum Visibility

java.lang.Object
  extended by java.lang.Enum<Visibility>
      extended by com.osbcp.css.constants.Visibility
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Visibility>

public enum Visibility
extends java.lang.Enum<Visibility>
implements java.io.Serializable

Values for the visibility property.

Author:
Christoffer Pettersson
See Also:
CSS visibility Property

Enum Constant Summary
COLLAPSE
          Only for table elements. collapse removes a row or column, but it does not affect the table layout.
HIDDEN
          The element is invisible (but still takes up space).
INHERIT
          Specifies that the value of the display property should be inherited from the parent element.
VISIBLE
          The element is visible.
 
Method Summary
 java.lang.String toString()
           
static Visibility valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Visibility[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

VISIBLE

public static final Visibility VISIBLE
The element is visible. This is default.


HIDDEN

public static final Visibility HIDDEN
The element is invisible (but still takes up space).


COLLAPSE

public static final Visibility COLLAPSE
Only for table elements. collapse removes a row or column, but it does not affect the table layout.


INHERIT

public static final Visibility INHERIT
Specifies that the value of the display property should be inherited from the parent element.

Method Detail

values

public static Visibility[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Visibility c : Visibility.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Visibility valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<Visibility>