Package de.xima.fc.css.builder
Enum ECssDisplay
- All Implemented Interfaces:
CssDefaultValue
,Serializable
,Comparable<ECssDisplay>
Constants with the pre-defined values for the CSS property
display
.
The display CSS property sets whether an element is treated as a block or inline element and the layout used for its children, such as flow layout, grid or flex.
- Author:
- XIMA MEDIA GmbH
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe element generates a block element box, generating line breaks both before and after the element when in the normal flow.These elements don't produce a specific box by themselves.The element behaves like a block element and lays out its content according to the flexbox model.The element lays out its contents using flow layout (block-and-inline layout).The element generates a block element box that establishes a new block formatting context, defining where the formatting root lies.The element behaves like a block element and lays out its content according to the grid model.The element generates one or more inline element boxes that do not generate line breaks before or after themselves.The element generates a block element box that will be flowed with surrounding content as if it were a single inline box (behaving much like a replaced element would).The element behaves like an inline element and lays out its content according to the flexbox model.The element behaves like an inline element and lays out its content according to the grid model.The inline-table value does not have a direct mapping in HTML.The element behaves like an inline element and lays out its content according to the ruby formatting model.These elements behave like <rb> HTML elements.These elements behave like <rbc> HTML elements generated as anonymous boxes.These elements behave like <rt> HTML elements.These elements behave like <rtc> HTML elements.These elements behave like HTML <table> elements.These elements behave like <caption> HTML elements.These elements behave like <td> HTML elements.These elements behave like <col> HTML elements.These elements behave like <colgroup> HTML elements.These elements behave like <tfoot> HTML elements.These elements behave like <thead> HTML elements.These elements behave like <tr> HTML elements.These elements behave like <tbody> HTML elements. -
Field Summary
Fields inherited from interface de.xima.fc.css.builder.CssDefaultValue
INHERIT, INITIAL, REVERT, REVERT_LAYER, UNSET
-
Method Summary
Modifier and TypeMethodDescriptiontoString()
value()
static ECssDisplay
Returns the enum constant of this type with the specified name.static ECssDisplay[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BLOCK
The element generates a block element box, generating line breaks both before and after the element when in the normal flow. -
CONTENTS
These elements don't produce a specific box by themselves. They are replaced by their pseudo-box and their child boxes. Please note that the CSS Display Level 3 spec defines how the contents value should affect "unusual elements" — elements that aren't rendered purely by CSS box concepts such as replaced elements. See Appendix B: Effects of display: contents on Unusual Elements for more details. -
FLEX
The element behaves like a block element and lays out its content according to the flexbox model. -
FLOW
The element lays out its contents using flow layout (block-and-inline layout).If its outer display type is inline or run-in, and it is participating in a block or inline formatting context, then it generates an inline box. Otherwise it generates a block container box.
Depending on the value of other properties (such as
position
,float
, oroverflow
) and whether it is itself participating in a block or inline formatting context, it either establishes a new block formatting context (BFC) for its contents or integrates its contents into its parent formatting context. -
FLOW_ROOT
The element generates a block element box that establishes a new block formatting context, defining where the formatting root lies. -
GRID
The element behaves like a block element and lays out its content according to the grid model. -
INLINE
The element generates one or more inline element boxes that do not generate line breaks before or after themselves. In normal flow, the next element will be on the same line if there is space -
INLINE_BLOCK
-
INLINE_FLEX
-
INLINE_GRID
-
INLINE_TABL
-
LIST_ITEM
-
NONE
-
RUBY
The element behaves like an inline element and lays out its content according to the ruby formatting model. It behaves like the corresponding HTML <ruby> elements. -
RUBY_BASE
These elements behave like <rb> HTML elements. -
RUBY_BASE_CONTAINER
These elements behave like <rbc> HTML elements generated as anonymous boxes. -
RUBY_TEXT
These elements behave like <rt> HTML elements. -
RUBY_TEXT_CONTAINER
These elements behave like <rtc> HTML elements. -
TABLE
These elements behave like HTML <table> elements. It defines a block-level box. -
TABLE_CAPTION
These elements behave like <caption> HTML elements. -
TABLE_CELL
These elements behave like <td> HTML elements. -
TABLE_COLUMN
These elements behave like <col> HTML elements. -
TABLE_COLUMN_GROUP
These elements behave like <colgroup> HTML elements. -
TABLE_FOOTER_GROUP
These elements behave like <tfoot> HTML elements. -
TABLE_HEADER_GROUP
These elements behave like <thead> HTML elements. -
TABLE_ROW
These elements behave like <tr> HTML elements. -
TABLE_ROW_GROUP
These elements behave like <tbody> HTML elements.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<ECssDisplay>
-
value
- Returns:
- The string value of this property that can be used when creating CSS strings.
-