| |
|
| java.lang.Object org.netbeans.editor.MultiKeymap
MultiKeymap | public class MultiKeymap implements Keymap(Code) | | Keymap that is capable to work with MultiKeyBindings
author: Miloslav Metelka version: 0.10 |
BEEP_ACTION | final public static Action BEEP_ACTION(Code) | | Action that beeps. Used for wrong shortcut by default
|
EMPTY_ACTION | final public static Action EMPTY_ACTION(Code) | | Action that does nothing
|
MultiKeymap | public MultiKeymap(String name)(Code) | | Construct new keymap.
Parameters: name - name of new keymap |
getDefaultAction | public Action getDefaultAction()(Code) | | Get default action of this keymap or parent keymap if this one doesn't
have one. Context keymap can have default action but it will be not used.
|
load | public void load(JTextComponent.KeyBinding[] bindings, Action[] actions)(Code) | | Loads the key to action mappings into this keymap in similar way as
JTextComponent.loadKeymap() does. This method is able to handle
MultiKeyBindings but for compatibility it expects
JTextComponent.KeyBinding array.
|
load | public void load(JTextComponent.KeyBinding[] bindings, Map actions)(Code) | | Loads key to action mappings into this keymap
Parameters: bindings - array of bindings Parameters: actions - map of [action_name, action] pairs |
removeBindings | public void removeBindings()(Code) | | |
removeKeyStrokeBinding | public void removeKeyStrokeBinding(KeyStroke key)(Code) | | |
resetContext | public void resetContext()(Code) | | Reset keymap to base context
|
setContext | void setContext(Keymap contextKeymap)(Code) | | Set the context keymap
|
setContextKeyNotFoundAction | public void setContextKeyNotFoundAction(Action a)(Code) | | What to do when key is not resolved for context
|
setDefaultAction | public void setDefaultAction(Action a)(Code) | | |
setResolveParent | public void setResolveParent(Keymap parent)(Code) | | |
|
|
|