Enum Class TabLayoutPolicy
- All Implemented Interfaces:
Serializable
,Comparable<TabLayoutPolicy>
,Constable
Tab Layout Policy represents what to do when there are too many tabs to fit in the given space on a Tabbed Form
- Version:
- Alpha v.0.3.3
- Author:
- Logan Ferree (Tadukoo)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe tabs can be scrolled if there are too many to fit in the given spaceThe tabs will be wrapped if there are too many to fit in the given space -
Field Summary
Modifier and TypeFieldDescriptionprivate final int
The int value used to represent the layout policy -
Constructor Summary
ModifierConstructorDescriptionprivate
TabLayoutPolicy
(int value) Constructs a new tab layout policy with the given value -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
static TabLayoutPolicy
Returns the enum constant of this class with the specified name.static TabLayoutPolicy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WRAP_TAB_LAYOUT
The tabs will be wrapped if there are too many to fit in the given space -
SCROLL_TAB_LAYOUT
The tabs can be scrolled if there are too many to fit in the given space
-
-
Field Details
-
value
private final int valueThe int value used to represent the layout policy
-
-
Constructor Details
-
TabLayoutPolicy
private TabLayoutPolicy(int value) Constructs a new tab layout policy with the given value- Parameters:
value
- The int value used to represent the layout policy
-
-
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
-
getValue
public int getValue()- Returns:
- The int value used to represent the layout policy
-