Package docking.action.builder
Enum AbstractActionBuilder.When
- java.lang.Object
-
- java.lang.Enum<AbstractActionBuilder.When>
-
- docking.action.builder.AbstractActionBuilder.When
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AbstractActionBuilder.When>
- Enclosing class:
- AbstractActionBuilder<T extends DockingActionIf,C extends ActionContext,B extends AbstractActionBuilder<T,C,B>>
public static enum AbstractActionBuilder.When extends java.lang.Enum<AbstractActionBuilder.When>
For use with theAbstractActionBuilder.inWindow(When)
method to specify which windows (main window or secondary windows) a global tool bar or menu action will appear in.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYS
CONTEXT_MATCHES
MAIN_WINDOW
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractActionBuilder.When
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AbstractActionBuilder.When[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MAIN_WINDOW
public static final AbstractActionBuilder.When MAIN_WINDOW
-
ALWAYS
public static final AbstractActionBuilder.When ALWAYS
-
CONTEXT_MATCHES
public static final AbstractActionBuilder.When CONTEXT_MATCHES
-
-
Method Detail
-
values
public static AbstractActionBuilder.When[] 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 (AbstractActionBuilder.When c : AbstractActionBuilder.When.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractActionBuilder.When 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
-
-