Package docking.action
Enum Class KeyBindingType
- All Implemented Interfaces:
Serializable
,Comparable<KeyBindingType>
,Constable
Allows clients to signal their support for the assigning of key binding shortcut keys. Most
action clients need not be concerned with this class. The default settings of
DockingAction
work correctly for almost all cases, which is to have the action
support individual key bindings, which are managed by the system via the UI.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSupports the assignment of key bindings via the UI.When the key binding is set via the UI, this action, and any action that shares a name with this action, will be updated to the same key binding value whenever the key binding options change.Indicates the setting of key bindings through the UI is not supported -
Method Summary
Modifier and TypeMethodDescriptionboolean
A convenience method for clients to check whether this key binding type should be managed directly by the system.boolean
isShared()
Convenience method for checking if this type is theSHARED
typeboolean
Returns true if this type supports key bindings.static KeyBindingType
Returns the enum constant of this class with the specified name.static KeyBindingType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSUPPORTED
Indicates the setting of key bindings through the UI is not supported -
INDIVIDUAL
Supports the assignment of key bindings via the UI. Setting a key binding on an action with this type will not affect any other action. -
SHARED
When the key binding is set via the UI, this action, and any action that shares a name with this action, will be updated to the same key binding value whenever the key binding options change.Most actions will not be shared. If you are unsure if your action should use a shared keybinding, then do not do so.
-
-
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
-
supportsKeyBindings
public boolean supportsKeyBindings()Returns true if this type supports key bindings. This is a convenience method for checking that this type is notUNSUPPORTED
.- Returns:
- true if key bindings are supported
-
isManaged
public boolean isManaged()A convenience method for clients to check whether this key binding type should be managed directly by the system.Shared actions are not managed directly by the system, but are instead managed through a proxy action.
- Returns:
- true if managed directly by the system; false if key binding are not supported or are managed through a proxy
-