Enum Class UIHints.TextWidthHint
- All Implemented Interfaces:
Serializable
,Comparable<UIHints.TextWidthHint>
,Constable
- Enclosing class:
- UIHints
Used to request a particular width for text-field like controls (including but
not limited to text fields and combo/drop-downs).
- Since:
- 7.5.1
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final UIHints.TextWidthHint
Encodes the default text width hint when unspecified otherwise.abstract int
getWidth()
Returns the width for this hint.static UIHints.TextWidthHint
Returns the enum constant of this class with the specified name.static UIHints.TextWidthHint[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SHORT
A width shorter than the default -
MEDIUM
A width that is also the default width when unspecified -
LONG
A width longer than the default -
VERY_LONG
A width quite longer thanLONG
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getWidth
public abstract int getWidth()Returns the width for this hint. Note that the actual value is not API, and should not be assumed nor used by clients.- Returns:
- the width this represents
-
getDefault
Encodes the default text width hint when unspecified otherwise. The default is the value ofMEDIUM
.- Returns:
- the default width
-