public static enum UIHints.TextWidthHint extends Enum<UIHints.TextWidthHint>
| Enum Constant and Description |
|---|
LONG
A width longer than the default
|
MEDIUM
A width that is also the default 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(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.LONGpublic static UIHints.TextWidthHint[] values()
for (UIHints.TextWidthHint c : UIHints.TextWidthHint.values()) System.out.println(c);
public static UIHints.TextWidthHint 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 abstract int getWidth()
public static final UIHints.TextWidthHint getDefault()
UIHints.TextWidthHint.MEDIUM.Copyright © 2015–2018 Cloud Software Group, Inc.. All rights reserved.