com.osbcp.css.constants
Enum Clear

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

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

Values for the clear property.

Author:
Christoffer Pettersson
See Also:
http://www.w3schools.com/cssref/pr_class_clear.asp

Enum Constant Summary
BOTH
          No floating elements allowed on either the left or the right side.
INHERIT
          Specifies that the value of the clear property should be inherited from the parent element.
LEFT
          No floating elements allowed on the left side.
NONE
          Default.
RIGHT
          No floating elements allowed on the right side.
 
Method Summary
 java.lang.String toString()
           
static Clear valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Clear[] 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

LEFT

public static final Clear LEFT
No floating elements allowed on the left side.


RIGHT

public static final Clear RIGHT
No floating elements allowed on the right side.


BOTH

public static final Clear BOTH
No floating elements allowed on either the left or the right side.


NONE

public static final Clear NONE
Default. Allows floating elements on both sides.


INHERIT

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

Method Detail

values

public static Clear[] 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 (Clear c : Clear.values())
    System.out.println(c);

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

valueOf

public static Clear 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<Clear>