Enum RadianceThemingSlices.ButtonOrder
java.lang.Object
java.lang.Enum<RadianceThemingSlices.ButtonOrder>
org.pushingpixels.radiance.theming.api.RadianceThemingSlices.ButtonOrder
- All Implemented Interfaces:
Serializable
,Comparable<RadianceThemingSlices.ButtonOrder>
- Enclosing class:
RadianceThemingSlices
public static enum RadianceThemingSlices.ButtonOrder
extends Enum<RadianceThemingSlices.ButtonOrder>
Button order for grouped buttons.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe default button will be placed closest to the leading edge of the button group (leftmost under LTR and rightmost under RTL).The default button will be placed closest to the trailing edge of the button group (rightmost under LTR and leftmost under RTL).Platform-specific order.The default button will be placed as it is under default Swing behavior. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
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 Details
-
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
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). -
SWING_DEFAULT
The default button will be placed as it is under default Swing behavior.
-
-
Constructor Details
-
ButtonOrder
private ButtonOrder()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isDefaultButtonLeading
public abstract boolean isDefaultButtonLeading()
-