|
org.openide.loaders 7.21.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openide.awt.AcceleratorBinding
public abstract class AcceleratorBinding
Permits accelerators to be set on actions based on global registrations.
This class is only intended for use from NetBeans infrastructure code:
that which either reads shortcut definitions (i.e. the global Keymap
);
or which loads actions into presenters (e.g. Toolbar
).
Constructor Summary | |
---|---|
protected |
AcceleratorBinding()
Subclass constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AcceleratorBinding()
Method Detail |
---|
protected abstract KeyStroke keyStrokeForAction(Action action, FileObject definingFile)
action
- an actiondefiningFile
- an instance file which defines the action
public 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
|
org.openide.loaders 7.21.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |