public static enum HasText.WhiteSpace extends Enum<HasText.WhiteSpace>
"white-space"
style values.Enum Constant and Description |
---|
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.
|
INHERIT
Inherits this property from its parent element.
|
INITIAL
Sets this property to its default value.
|
NORMAL
Sequences of white space are collapsed.
|
NOWRAP
Collapses white space as for normal, but suppresses line breaks (text
wrapping) within the source.
|
PRE
Sequences of white space are preserved.
|
PRE_LINE
Sequences of white space are collapsed.
|
PRE_WRAP
Sequences of white space are preserved.
|
Modifier and Type | Method and Description |
---|---|
static HasText.WhiteSpace |
forString(String value) |
String |
toString() |
static HasText.WhiteSpace |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HasText.WhiteSpace[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HasText.WhiteSpace NORMAL
public static final HasText.WhiteSpace NOWRAP
public static final HasText.WhiteSpace PRE
public static final HasText.WhiteSpace PRE_WRAP
public static final HasText.WhiteSpace PRE_LINE
public static final HasText.WhiteSpace BREAK_SPACES
public static final HasText.WhiteSpace INHERIT
public static final HasText.WhiteSpace INITIAL
public static HasText.WhiteSpace[] values()
for (HasText.WhiteSpace c : HasText.WhiteSpace.values()) System.out.println(c);
public static HasText.WhiteSpace valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<HasText.WhiteSpace>
public static HasText.WhiteSpace forString(String value)
Copyright © 2023. All rights reserved.