- All Implemented Interfaces:
Serializable,Comparable<DockCloseButtonMode>,Constable
Controls which close buttons are visible for docked nodes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionShow close controls on both tab headers and title bars.Show close controls only on tab headers.Show close controls only on dock-node title bars. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether tab close controls should be visible.booleanReturns whether title-bar close controls should be visible.static DockCloseButtonModeReturns the enum constant of this class with the specified name.static DockCloseButtonMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TAB_ONLY
Show close controls only on tab headers. -
TITLE_ONLY
Show close controls only on dock-node title bars. -
BOTH
Show close controls on both tab headers and title bars.
-
-
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
-
showTabClose
public boolean showTabClose()Returns whether tab close controls should be visible.- Returns:
truewhen tab close controls are enabled
-
showTitleClose
public boolean showTitleClose()Returns whether title-bar close controls should be visible.- Returns:
truewhen title-bar close controls are enabled
-