Serializable
, Comparable<WrapBehaviour>
public enum WrapBehaviour extends Enum<WrapBehaviour>
Enum Constant | Description |
---|---|
CHAR |
Wrap at any character boundaries.
|
CLIP |
Don't wrap lines automatically, but honor explicit line-feeds.
|
SINGLE_LINE |
Never ever leave current line.
|
WORD |
Only wrap at word boundaries.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
allowLineFeed() |
|
boolean |
autoWrap() |
|
boolean |
keepWords() |
|
static WrapBehaviour |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static WrapBehaviour[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WrapBehaviour SINGLE_LINE
public static final WrapBehaviour CLIP
public static final WrapBehaviour CHAR
public static final WrapBehaviour WORD
public static WrapBehaviour[] values()
for (WrapBehaviour c : WrapBehaviour.values()) System.out.println(c);
public static WrapBehaviour 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 boolean allowLineFeed()
public boolean autoWrap()
public boolean keepWords()
Copyright © 2020. All rights reserved.