Enum RadianceThemingSlices.ButtonOrder
- java.lang.Object
-
- java.lang.Enum<RadianceThemingSlices.ButtonOrder>
-
- org.pushingpixels.radiance.theming.api.RadianceThemingSlices.ButtonOrder
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RadianceThemingSlices.ButtonOrder>
- Enclosing class:
- RadianceThemingSlices
public static enum RadianceThemingSlices.ButtonOrder extends java.lang.Enum<RadianceThemingSlices.ButtonOrder>
Button order for grouped buttons.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT_AS_LEADING
The default button will be placed closest to the leading edge of the button group (leftmost under LTR and rightmost under RTL).DEFAULT_AS_TRAILING
The default button will be placed closest to the trailing edge of the button group (rightmost under LTR and leftmost under RTL).PLATFORM
Platform-specific order.SWING_DEFAULT
The default button will be placed as it is under default Swing behavior.
-
Constructor Summary
Constructors Modifier Constructor Description private
ButtonOrder()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
isDefaultButtonLeading()
static RadianceThemingSlices.ButtonOrder
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RadianceThemingSlices.ButtonOrder[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PLATFORM
public static final RadianceThemingSlices.ButtonOrder PLATFORM
Platform-specific order. On macOS the default button will be the placed the closest to the trailing edge of the button group (rightmost under LTR and leftmost under RTL). On other platforms the default button will be placed closest to the leading edge of the button group (leftmost under LTR and rightmost under RTL).
-
DEFAULT_AS_LEADING
public static final RadianceThemingSlices.ButtonOrder DEFAULT_AS_LEADING
The default button will be placed closest to the leading edge of the button group (leftmost under LTR and rightmost under RTL).
-
DEFAULT_AS_TRAILING
public static final RadianceThemingSlices.ButtonOrder DEFAULT_AS_TRAILING
The default button will be placed closest to the trailing edge of the button group (rightmost under LTR and leftmost under RTL).
-
SWING_DEFAULT
public static final RadianceThemingSlices.ButtonOrder SWING_DEFAULT
The default button will be placed as it is under default Swing behavior.
-
-
Method Detail
-
values
public static RadianceThemingSlices.ButtonOrder[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RadianceThemingSlices.ButtonOrder c : RadianceThemingSlices.ButtonOrder.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RadianceThemingSlices.ButtonOrder valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isDefaultButtonLeading
public abstract boolean isDefaultButtonLeading()
-
-