Package docking.actions
Class KeyBindings
java.lang.Object
docking.actions.KeyBindings
An object that maps actions to key strokes and mouse bindings.
This class knows how to load all system actions and how to load any key and mouse bindings for
those actions from the tool's options. Clients can make changes to the state of this class that
can then be applied to the system by calling applyChanges()
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies any pending changes.void
Cancels any pending changes that have not yet been applied.boolean
containsAction
(String fullName) getActionForMouseBinding
(MouseBinding mouseBinding) getActionsForKeyStrokeText
(KeyStroke keyStroke) getKeyStroke
(String fullName) getMouseBinding
(String fullName) boolean
isMouseBindingInUse
(String fullName, MouseBinding newBinding) boolean
removeKeyStroke
(String fullName) void
Restores the tool options key bindings to the default values originally loaded when the system started.boolean
setActionKeyStroke
(String fullName, KeyStroke newKs) boolean
setActionMouseBinding
(String fullName, MouseBinding newBinding)
-
Constructor Details
-
KeyBindings
-
-
Method Details
-
getUniqueActions
-
getKeyStrokesByFullActionName
-
containsAction
-
getKeyStroke
-
getMouseBinding
-
getActionForMouseBinding
-
getActionsForKeyStrokeText
-
getLongestActionName
-
isMouseBindingInUse
-
setActionMouseBinding
-
setActionKeyStroke
-
removeKeyStroke
-
restoreOptions
public void restoreOptions()Restores the tool options key bindings to the default values originally loaded when the system started. -
cancelChanges
public void cancelChanges()Cancels any pending changes that have not yet been applied. -
applyChanges
public void applyChanges()Applies any pending changes.
-