public abstract class AcceleratorBinding extends Object
Keymap
);
or which loads actions into presenters (e.g. Toolbar
).Modifier | Constructor and Description |
---|---|
protected |
AcceleratorBinding()
Subclass constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract KeyStroke |
keyStrokeForAction(Action action,
FileObject definingFile)
Finds a keystroke for an action.
|
static void |
setAccelerator(Action action,
FileObject definingFile)
Associates an
Action.ACCELERATOR_KEY with an action based on a declared shortcut. |
protected AcceleratorBinding()
protected abstract KeyStroke keyStrokeForAction(Action action, FileObject definingFile)
action
- an actiondefiningFile
- an instance file which defines the actionpublic static void setAccelerator(Action action, FileObject definingFile)
Action.ACCELERATOR_KEY
with an action based on a declared shortcut.
If an instance of AcceleratorBinding
can be found in default lookup,
it will be used to determine the binding. Otherwise nothing is done.action
- an action defined in layersdefiningFile
- instance file defining the action