com.osbcp.css.constants
Enum Display

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

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

Values for the display property.

Author:
Christoffer Pettersson
See Also:
CSS display Property

Enum Constant Summary
BLOCK
          The element will generate a block box (a line break before and after the element).
INHERIT
          Specifies that the value of the display property should be inherited from the parent element.
INLINE
          The element will generate an inline box (no line break before or after the element).
INLINE_BLOCK
          The element will generate a block box, laid out as an inline box.
INLINE_TABLE
          The element will generate an inline box (like <table>, with no line break before or after).
LIST_ITEM
          The element will generate a block box, and an inline box for the list marker.
NONE
          The element will generate no box at all.
RUN_IN
          The element will generate a block or inline box, depending on context.
TABLE
          The element will behave like a table (like <table>, with a line break before and after).
TABLE_CAPTION
          The element will behave like a table caption (like <caption>).
TABLE_CELL
          The element will behave like a table cell.
TABLE_COLUMN
          The element will behave like a table column.
TABLE_COLUMN_GROUP
          The element will behave like a table column group (like <colgroup>).
TABLE_FOOTER_GROUP
          The element will behave like a table footer row group.
TABLE_HEADER_GROUP
          The element will behave like a table header row group.
TABLE_ROW
          The element will behave like a table row.
TABLE_ROW_GROUP
          The element will behave like a table row group.
 
Method Summary
 java.lang.String toString()
           
static Display valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Display[] 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

NONE

public static final Display NONE
The element will generate no box at all.


BLOCK

public static final Display BLOCK
The element will generate a block box (a line break before and after the element).


INLINE

public static final Display INLINE
The element will generate an inline box (no line break before or after the element). This is default.


INLINE_BLOCK

public static final Display INLINE_BLOCK
The element will generate a block box, laid out as an inline box.


INLINE_TABLE

public static final Display INLINE_TABLE
The element will generate an inline box (like <table>, with no line break before or after).


LIST_ITEM

public static final Display LIST_ITEM
The element will generate a block box, and an inline box for the list marker.


RUN_IN

public static final Display RUN_IN
The element will generate a block or inline box, depending on context.


TABLE

public static final Display TABLE
The element will behave like a table (like <table>, with a line break before and after).


TABLE_CAPTION

public static final Display TABLE_CAPTION
The element will behave like a table caption (like <caption>).


TABLE_CELL

public static final Display TABLE_CELL
The element will behave like a table cell.


TABLE_COLUMN

public static final Display TABLE_COLUMN
The element will behave like a table column.


TABLE_COLUMN_GROUP

public static final Display TABLE_COLUMN_GROUP
The element will behave like a table column group (like <colgroup>).


TABLE_FOOTER_GROUP

public static final Display TABLE_FOOTER_GROUP
The element will behave like a table footer row group.


TABLE_HEADER_GROUP

public static final Display TABLE_HEADER_GROUP
The element will behave like a table header row group.


TABLE_ROW

public static final Display TABLE_ROW
The element will behave like a table row.


TABLE_ROW_GROUP

public static final Display TABLE_ROW_GROUP
The element will behave like a table row group.


INHERIT

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

Method Detail

values

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

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

valueOf

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