Package org.pushingpixels.substance.api
Enum SubstanceConstants.ScrollPaneButtonPolicyKind
- java.lang.Object
-
- java.lang.Enum<SubstanceConstants.ScrollPaneButtonPolicyKind>
-
- org.pushingpixels.substance.api.SubstanceConstants.ScrollPaneButtonPolicyKind
-
- All Implemented Interfaces:
Serializable,Comparable<SubstanceConstants.ScrollPaneButtonPolicyKind>
- Enclosing class:
- SubstanceConstants
public static enum SubstanceConstants.ScrollPaneButtonPolicyKind extends Enum<SubstanceConstants.ScrollPaneButtonPolicyKind>
Enumerates possible button policies for scroll panes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADJACENTTheadjacentbutton policy - both the decrease button and the increase button are on the same side of the scroll bar adjacent to each other (like on Mac).MULTIPLEThemultiplebutton policy - there are two decrease buttons on the opposite side of the scroll bar and the increase button is adjacent to the second decrease button.MULTIPLE_BOTHThemultiple bothbutton policy - there are two pairs of decrease-increase buttons on the opposite sides of the scroll bar.NONETheemptybutton policy - no buttons.OPPOSITETheopposite(default) button policy - the decrease button is on one side of the scroll bar, and the increase button is on the other side of the scroll bar.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SubstanceConstants.ScrollPaneButtonPolicyKindvalueOf(String name)Returns the enum constant of this type with the specified name.static SubstanceConstants.ScrollPaneButtonPolicyKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final SubstanceConstants.ScrollPaneButtonPolicyKind NONE
Theemptybutton policy - no buttons.
-
OPPOSITE
public static final SubstanceConstants.ScrollPaneButtonPolicyKind OPPOSITE
Theopposite(default) button policy - the decrease button is on one side of the scroll bar, and the increase button is on the other side of the scroll bar.
-
ADJACENT
public static final SubstanceConstants.ScrollPaneButtonPolicyKind ADJACENT
Theadjacentbutton policy - both the decrease button and the increase button are on the same side of the scroll bar adjacent to each other (like on Mac).
-
MULTIPLE
public static final SubstanceConstants.ScrollPaneButtonPolicyKind MULTIPLE
-
MULTIPLE_BOTH
public static final SubstanceConstants.ScrollPaneButtonPolicyKind MULTIPLE_BOTH
Themultiple bothbutton policy - there are two pairs of decrease-increase buttons on the opposite sides of the scroll bar. This extends theMULTIPLEpolicy.
-
-
Method Detail
-
values
public static SubstanceConstants.ScrollPaneButtonPolicyKind[] 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 (SubstanceConstants.ScrollPaneButtonPolicyKind c : SubstanceConstants.ScrollPaneButtonPolicyKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SubstanceConstants.ScrollPaneButtonPolicyKind valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-