public enum TextWrapping extends Enum<TextWrapping>
| Enum Constant and Description |
|---|
NO_WRAP
不执行换行。
|
WRAP
当行超出块的可用宽度时换行,即使换行算法无法确定换行的位置,如在不允许滚动且宽固定的框内存放一个非常长的单词。
|
WRAP_WITH_OVERFLOW
当行超出块的可用宽度时换行。
|
| Modifier and Type | Method and Description |
|---|---|
static TextWrapping |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextWrapping[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextWrapping WRAP_WITH_OVERFLOW
public static final TextWrapping NO_WRAP
public static final TextWrapping WRAP
public static TextWrapping[] values()
for (TextWrapping c : TextWrapping.values()) System.out.println(c);
public static TextWrapping 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 nullCopyright 2009-2012 Micro Focus. All Rights Reserved.