com.gargoylesoftware.htmlunit.html
Enum HtmlElement.DisplayStyle

java.lang.Object
  extended by java.lang.Enum<HtmlElement.DisplayStyle>
      extended by com.gargoylesoftware.htmlunit.html.HtmlElement.DisplayStyle
All Implemented Interfaces:
Serializable, Comparable<HtmlElement.DisplayStyle>
Enclosing class:
HtmlElement

public static enum HtmlElement.DisplayStyle
extends Enum<HtmlElement.DisplayStyle>

Enum for the different display styles.


Enum Constant Summary
BLOCK
          block.
INLINE
          inline.
INLINE_BLOCK
          inline-block.
LIST_ITEM
          list-item.
NONE
          none.
RUBY
          ruby.
RUBY_TEXT
          ruby-text.
TABLE
          table.
TABLE_CAPTION
          table-caption.
TABLE_CELL
          table-cell.
TABLE_COLUMN
          table-column.
TABLE_COLUMN_GROUP
          table-column-group.
TABLE_FOOTER_GROUP
          table-footer-group.
TABLE_HEADER_GROUP
          table-header-group.
TABLE_ROW
          table-row.
TABLE_ROW_GROUP
          table-row-group.
 
Method Summary
 String value()
          The string used from js.
static HtmlElement.DisplayStyle valueOf(String name)
          Returns the enum constant of this type with the specified name.
static HtmlElement.DisplayStyle[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final HtmlElement.DisplayStyle NONE
none.


BLOCK

public static final HtmlElement.DisplayStyle BLOCK
block.


INLINE

public static final HtmlElement.DisplayStyle INLINE
inline.


INLINE_BLOCK

public static final HtmlElement.DisplayStyle INLINE_BLOCK
inline-block.


LIST_ITEM

public static final HtmlElement.DisplayStyle LIST_ITEM
list-item.


TABLE

public static final HtmlElement.DisplayStyle TABLE
table.


TABLE_CELL

public static final HtmlElement.DisplayStyle TABLE_CELL
table-cell.


TABLE_COLUMN

public static final HtmlElement.DisplayStyle TABLE_COLUMN
table-column.


TABLE_COLUMN_GROUP

public static final HtmlElement.DisplayStyle TABLE_COLUMN_GROUP
table-column-group.


TABLE_ROW

public static final HtmlElement.DisplayStyle TABLE_ROW
table-row.


TABLE_ROW_GROUP

public static final HtmlElement.DisplayStyle TABLE_ROW_GROUP
table-row-group.


TABLE_HEADER_GROUP

public static final HtmlElement.DisplayStyle TABLE_HEADER_GROUP
table-header-group.


TABLE_FOOTER_GROUP

public static final HtmlElement.DisplayStyle TABLE_FOOTER_GROUP
table-footer-group.


TABLE_CAPTION

public static final HtmlElement.DisplayStyle TABLE_CAPTION
table-caption.


RUBY

public static final HtmlElement.DisplayStyle RUBY
ruby.


RUBY_TEXT

public static final HtmlElement.DisplayStyle RUBY_TEXT
ruby-text.

Method Detail

values

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

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

valueOf

public static HtmlElement.DisplayStyle valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

value

public String value()
The string used from js.

Returns:
the value as string


Copyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.