Package com.webfirmframework.wffweb.css
Enum Class Display
- All Implemented Interfaces:
CssProperty,Serializable,Cloneable,Comparable<Display>,Constable
display: inline | block | flex | inline-block | inline-flex | inline-table |
list-item | run-in | table | table-caption | table-column-group |
table-header-group | table-footer-group | table-row-group | table-cell |
table-column | table-row | none | initial | inherit;
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Displaygets the corresponding object for the givencssValueor null for invalid cssValue.static booleanchecks whether the given givencssValueis valid for this css property, i.e.toString()static DisplayReturns the enum constant of this class with the specified name.static Display[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INLINE
-
BLOCK
-
FLEX
-
INLINE_BLOCK
-
INLINE_FLEX
-
INLINE_TABLE
-
LIST_ITEM
-
RUN_IN
-
TABLE
-
TABLE_CAPTION
-
TABLE_COLUMN_GROUP
-
TABLE_HEADER_GROUP
-
TABLE_FOOTER_GROUP
-
TABLE_ROW_GROUP
-
TABLE_CELL
-
TABLE_COLUMN
-
TABLE_ROW
-
NONE
-
INITIAL
-
INHERIT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getCssName
- Specified by:
getCssNamein interfaceCssProperty- Returns:
- the name portion in style, eg
align-contentfor stylealign-content: center.
-
getCssValue
- Specified by:
getCssValuein interfaceCssProperty- Returns:
- the value portion in style, eg
centerfor stylealign-content: center.
-
toString
-
isValid
checks whether the given givencssValueis valid for this css property, i.e. whether it can have a corresponding object from it.- Parameters:
cssValue-- Returns:
- true if the given
cssValuehas a corresponding object. - Since:
- 1.0.0
-
getThis
gets the corresponding object for the givencssValueor null for invalid cssValue.- Parameters:
cssValue- the css property value without including!importantin it.- Returns:
- the corresponding object for the given
cssValueor null for invalid cssValue. - Since:
- 1.0.0
-