Package org.pushingpixels.substance.api
Enum SubstanceSlices.TabCloseKind
- java.lang.Object
-
- java.lang.Enum<SubstanceSlices.TabCloseKind>
-
- org.pushingpixels.substance.api.SubstanceSlices.TabCloseKind
-
- Enclosing class:
- SubstanceSlices
public static enum SubstanceSlices.TabCloseKind extends java.lang.Enum<SubstanceSlices.TabCloseKind>
Enumerates possible modes of closing tabs.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLIndicates that all tabs should be closed.ALL_BUT_THISIndicates that all tabs except the specified should be closed.NONEIndicates that no tabs should be closed.THISIndicates that the specified tab should be closed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SubstanceSlices.TabCloseKindvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SubstanceSlices.TabCloseKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final SubstanceSlices.TabCloseKind NONE
Indicates that no tabs should be closed.
-
THIS
public static final SubstanceSlices.TabCloseKind THIS
Indicates that the specified tab should be closed.
-
ALL
public static final SubstanceSlices.TabCloseKind ALL
Indicates that all tabs should be closed.
-
ALL_BUT_THIS
public static final SubstanceSlices.TabCloseKind ALL_BUT_THIS
Indicates that all tabs except the specified should be closed.
-
-
Method Detail
-
values
public static SubstanceSlices.TabCloseKind[] 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 (SubstanceSlices.TabCloseKind c : SubstanceSlices.TabCloseKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SubstanceSlices.TabCloseKind valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-