public static enum UIHints.TextWidthHint extends java.lang.Enum<UIHints.TextWidthHint>
Enum Constant and Description |
---|
LONG
A width longer than the default
|
MEDIUM
A width that is also the deafult width when unspecified
|
SHORT
A width shorter than the default
|
VERY_LONG
A width quite longer than
UIHints.TextWidthHint.LONG |
Modifier and Type | Method and Description |
---|---|
static UIHints.TextWidthHint |
getDefault()
Encodes the default text width hint when unspecified otherwise.
|
abstract int |
getWidth()
Returns the width for this hint.
|
static UIHints.TextWidthHint |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UIHints.TextWidthHint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UIHints.TextWidthHint SHORT
public static final UIHints.TextWidthHint MEDIUM
public static final UIHints.TextWidthHint LONG
public static final UIHints.TextWidthHint VERY_LONG
UIHints.TextWidthHint.LONG
public static UIHints.TextWidthHint[] values()
for (UIHints.TextWidthHint c : UIHints.TextWidthHint.values()) System.out.println(c);
public static UIHints.TextWidthHint valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract int getWidth()
public static final UIHints.TextWidthHint getDefault()
UIHints.TextWidthHint.MEDIUM
.