Package org.pushingpixels.substance.api
Enum SubstanceSlices.ButtonOrder
- java.lang.Object
-
- java.lang.Enum<SubstanceSlices.ButtonOrder>
-
- org.pushingpixels.substance.api.SubstanceSlices.ButtonOrder
-
- Enclosing class:
- SubstanceSlices
public static enum SubstanceSlices.ButtonOrder extends java.lang.Enum<SubstanceSlices.ButtonOrder>
Button order for grouped buttons.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT_AS_LEADINGThe default button will be placed closest to the leading edge of the button group (leftmost under LTR and rightmost under RTL).DEFAULT_AS_TRAILINGThe default button will be placed closest to the trailing edge of the button group (rightmost under LTR and leftmost under RTL).PLATFORMPlatform-specific order.SWING_DEFAULTThe default button will be placed as it is under default Swing behavior.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanisDefaultButtonLeading()static SubstanceSlices.ButtonOrdervalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SubstanceSlices.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 SubstanceSlices.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 SubstanceSlices.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 SubstanceSlices.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 SubstanceSlices.ButtonOrder SWING_DEFAULT
The default button will be placed as it is under default Swing behavior.
-
-
Method Detail
-
values
public static SubstanceSlices.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 (SubstanceSlices.ButtonOrder c : SubstanceSlices.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 SubstanceSlices.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()
-
-