Enum Class IconPlacement
- All Implemented Interfaces:
Serializable, Comparable<IconPlacement>, Constable
Where a button's icon sits beside its caption: before it, after it, above it or below it. The icon and the
caption are
4 units apart and centered together in the button less its padding. A button with an icon and
no caption, or a caption and no icon, looks the same whatever the placement.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe icon sits below the caption, each centered across the button.The icon comes after the caption, at its right.The icon comes before the caption, at its left.The icon sits above the caption, each centered across the button, as on a ribbon or a toolbar. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the icon and the caption are stacked, one above the other.static IconPlacementReturns the enum constant of this class with the specified name.static IconPlacement[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
START
The icon comes before the caption, at its left. A new button's placement. -
END
The icon comes after the caption, at its right. A caption too wide for the button is cut before the icon, so the icon stays in view. -
TOP
The icon sits above the caption, each centered across the button, as on a ribbon or a toolbar. -
BOTTOM
The icon sits below the caption, each centered across the button.
-
-
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
-
isVertical
-