Package org.htmlunit.html
Enum HtmlElement.DisplayStyle
- java.lang.Object
-
- java.lang.Enum<HtmlElement.DisplayStyle>
-
- org.htmlunit.html.HtmlElement.DisplayStyle
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HtmlElement.DisplayStyle>
- Enclosing class:
- HtmlElement
public static enum HtmlElement.DisplayStyle extends java.lang.Enum<HtmlElement.DisplayStyle>
Enum for the different display styles.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCK
block.CONTENTS
contents.EMPTY
Empty string.INLINE
inline.INLINE_BLOCK
inline-block.LIST_ITEM
list-item.NONE
none.RUBY
ruby.RUBY_BASE
ruby-base.RUBY_TEXT
ruby-text-container.RUBY_TEXT_CONTAINER
ruby-text-container.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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
value()
The string used from js.static HtmlElement.DisplayStyle
valueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
EMPTY
public static final HtmlElement.DisplayStyle EMPTY
Empty string.
-
NONE
public static final HtmlElement.DisplayStyle NONE
none.
-
BLOCK
public static final HtmlElement.DisplayStyle BLOCK
block.
-
CONTENTS
public static final HtmlElement.DisplayStyle CONTENTS
contents.
-
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_BASE
public static final HtmlElement.DisplayStyle RUBY_BASE
ruby-base.
-
RUBY_TEXT
public static final HtmlElement.DisplayStyle RUBY_TEXT
ruby-text-container.
-
RUBY_TEXT_CONTAINER
public static final HtmlElement.DisplayStyle RUBY_TEXT_CONTAINER
ruby-text-container.
-
-
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(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 namejava.lang.NullPointerException
- if the argument is null
-
value
public java.lang.String value()
The string used from js.- Returns:
- the value as string
-
-