com.osbcp.css.constants
Enum Overflow

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

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

Values for the overflow property.

Author:
Christoffer Pettersson
See Also:
CSS overflow Property

Enum Constant Summary
AUTO
          If overflow is clipped, a scroll-bar should be added to see the rest of the content.
HIDDEN
          The overflow is clipped, and the rest of the content will be invisible.
INHERIT
          Specifies that the value of the overflow property should be inherited from the parent element.
SCROLL
          The overflow is clipped, but a scroll-bar is added to see the rest of the content.
VISIBLE
          The overflow is not clipped.
 
Method Summary
 java.lang.String toString()
           
static Overflow valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Overflow[] 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 Overflow VISIBLE
The overflow is not clipped. It renders outside the element's box. This is default.


HIDDEN

public static final Overflow HIDDEN
The overflow is clipped, and the rest of the content will be invisible.


SCROLL

public static final Overflow SCROLL
The overflow is clipped, but a scroll-bar is added to see the rest of the content.


AUTO

public static final Overflow AUTO
If overflow is clipped, a scroll-bar should be added to see the rest of the content.


INHERIT

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

Method Detail

values

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

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

valueOf

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