Enum Class PaginatorControlsPosition
java.lang.Object
java.lang.Enum<PaginatorControlsPosition>
de.placeblock.betterinventories.content.pane.impl.paginator.PaginatorControlsPosition
- All Implemented Interfaces:
Serializable,Comparable<PaginatorControlsPosition>,Constable
Different positions for the
PaginatorGUIPane's Controls.
Get calculated based on the size of the PaginatorGUIPane.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWill place both controls in the center.Will place both controls on the left.Will place both controls on the right.Will place one control on the left and one on the right.Will place them in a way that the space between the controls and one control to a side is equal. -
Field Summary
FieldsModifier and TypeFieldDescriptionCalculates the indices where the Buttons should get placed -
Method Summary
Modifier and TypeMethodDescriptionstatic PaginatorControlsPositionReturns the enum constant of this class with the specified name.static PaginatorControlsPosition[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEFT
Will place both controls on the left. -
RIGHT
Will place both controls on the right. -
CENTER
Will place both controls in the center. -
SPACE_BETWEEN
Will place one control on the left and one on the right. -
SPACE_EVENLY
Will place them in a way that the space between the controls and one control to a side is equal.
-
-
Field Details
-
calculateIndices
Calculates the indices where the Buttons should get placed
-
-
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
-