|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.text.JTextComponent.KeyBinding
org.netbeans.editor.MultiKeyBinding
public class MultiKeyBinding
Extension of JTextComponent.KeyBinding to hold several successive keystrokes. The binding containing null key(s) is assumed to assign the default action.
| Field Summary | |
|---|---|
KeyStroke[] |
keys
Successive keystroke. |
| Fields inherited from class javax.swing.text.JTextComponent.KeyBinding |
|---|
actionName, key |
| Constructor Summary | |
|---|---|
MultiKeyBinding()
Constructor for serialization |
|
MultiKeyBinding(JTextComponent.KeyBinding kb)
Constructor for existing KeyBinding |
|
MultiKeyBinding(KeyStroke[] keys,
String actionName)
Constructor for assigning keystroke sequence to action |
|
MultiKeyBinding(KeyStroke key,
String actionName)
Compatibility constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
void |
readExternal(ObjectInput in)
|
String |
toString()
|
static void |
updateKeyBindings(JTextComponent.KeyBinding[] target,
JTextComponent.KeyBinding[] changes)
Add or replace key bindings array by changes given in the second bindings array |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public KeyStroke[] keys
| Constructor Detail |
|---|
public MultiKeyBinding()
public MultiKeyBinding(KeyStroke[] keys, String actionName)
keys - successive keystroke that must be pressed in order
to invoke actionactionName - action that will be invoked. Action is resolved
from name by calling kit.getActions() after the kit is constructedpublic MultiKeyBinding(KeyStroke key, String actionName)
public MultiKeyBinding(JTextComponent.KeyBinding kb)
| Method Detail |
|---|
public boolean equals(Object o)
public static void updateKeyBindings(JTextComponent.KeyBinding[] target, JTextComponent.KeyBinding[] changes)
target - target list of bindingschanges - list of changes to apply:
binding containing the non-null keystroke(s) and non-null action
will add the binding or replace the old binding with the same
keystroke(s) in the target array,
binding of the non-null keystroke(s) and null action removes
the binding for that keystroke from the target array (if it existed)
binding containing null keystroke and non-null action adds
or replaces default actionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic String toString()
|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||