Enum Class TabMode
- All Implemented Interfaces:
Serializable
,Comparable<TabMode>
,Constable
Modes for tabulators.
- Since:
- 4.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionint
toSwing()
The swing constant, e.g.static @Nullable TabMode
Exceptional handling to find a tab mode by its swing code, where 0 is used for no tabs.static TabMode
Returns the enum constant of this class with the specified name.static TabMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Do not display any tabs- Since:
- 4.0
-
TOP
Display tabs at top position- Since:
- 4.0
-
LEFT
Display tabs at left position- Since:
- 4.0
-
BOTTOM
Display tabs at bottom position- Since:
- 4.0
-
RIGHT
Display tabs at right position- Since:
- 4.0
-
-
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
-
toSwing
public int toSwing()The swing constant, e.g.SwingConstants.LEFT
- Since:
- 4.0
-
valueOf
Exceptional handling to find a tab mode by its swing code, where 0 is used for no tabs.- Parameters:
code
- The swing code ornull
.- Returns:
- The matching tab mode.
- Since:
- 4.0
-