Package com.vaadin.flow.component
Enum Class HasText.WhiteSpace
- All Implemented Interfaces:
Serializable
,Comparable<HasText.WhiteSpace>
,Constable
- Enclosing interface:
- HasText
Represents
"white-space"
style values.- Since:
- Author:
- Vaadin Ltd
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe behavior is identical to that of pre-wrap, except that: Any sequence of preserved white space always takes up space, including at the end of the line.Inherits this property from its parent element.Sets this property to its default value.Sequences of white space are collapsed.Collapses white space as for normal, but suppresses line breaks (text wrapping) within the source.Sequences of white space are preserved.Sequences of white space are collapsed.Sequences of white space are preserved. -
Method Summary
Modifier and TypeMethodDescriptionstatic HasText.WhiteSpace
toString()
static HasText.WhiteSpace
Returns the enum constant of this class with the specified name.static HasText.WhiteSpace[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
Sequences of white space are collapsed. Newline characters in the source are handled the same as other white space. Lines are broken as necessary to fill line boxes. -
NOWRAP
Collapses white space as for normal, but suppresses line breaks (text wrapping) within the source. -
PRE
Sequences of white space are preserved. Lines are only broken at newline characters in the source and at <br> elements. -
PRE_WRAP
Sequences of white space are preserved. Lines are broken at newline characters, at <br>, and as necessary to fill line boxes. -
PRE_LINE
Sequences of white space are collapsed. Lines are broken at newline characters, at <br>, and as necessary to fill line boxes. -
BREAK_SPACES
The behavior is identical to that of pre-wrap, except that:- Any sequence of preserved white space always takes up space, including at the end of the line.
- A line breaking opportunity exists after every preserved white space character, including between white space characters.
- Such preserved spaces take up space and do not hang, and thus affect the box’s intrinsic sizes (min-content size and max-content size).
-
INHERIT
Inherits this property from its parent element. -
INITIAL
Sets this property to its default value.
-
-
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
-
toString
- Overrides:
toString
in classEnum<HasText.WhiteSpace>
-
forString
-