public abstract class AcceleratorBinding
extends java.lang.Object
Keymap);
or which loads actions into presenters (e.g. Toolbar).| Modifier | Constructor | Description |
|---|---|---|
protected |
AcceleratorBinding() |
Subclass constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract javax.swing.KeyStroke |
keyStrokeForAction(javax.swing.Action action,
org.openide.filesystems.FileObject definingFile) |
Finds a keystroke for an action.
|
static void |
setAccelerator(javax.swing.Action action,
org.openide.filesystems.FileObject definingFile) |
Associates an
Action.ACCELERATOR_KEY with an action based on a declared shortcut. |
protected AcceleratorBinding()
protected abstract javax.swing.KeyStroke keyStrokeForAction(javax.swing.Action action,
org.openide.filesystems.FileObject definingFile)
action - an actiondefiningFile - an instance file which defines the actionpublic static void setAccelerator(javax.swing.Action action,
org.openide.filesystems.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 actionBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.