Package docking.action.builder
Enum Class AbstractActionBuilder.When
- All Implemented Interfaces:
Serializable
,Comparable<AbstractActionBuilder.When>
,Constable
- Enclosing class:
AbstractActionBuilder<T extends DockingActionIf,
C extends ActionContext, B extends AbstractActionBuilder<T, C, B>>
For use with the
AbstractActionBuilder.inWindow(When)
method to specify which windows (main window
or secondary windows) a global tool bar or menu action will appear in.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractActionBuilder.When
Returns the enum constant of this class with the specified name.static AbstractActionBuilder.When[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MAIN_WINDOW
-
ALWAYS
-
CONTEXT_MATCHES
-
-
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
-