|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.api.editor.settings.MultiKeyBinding
Variant of JTextComponent.KeyBinding
to hold several successive keystrokes.
Constructor Summary | |
MultiKeyBinding(KeyStroke[] keyStrokes,
String actionName)
Constructor for assigning keystroke sequence to action |
|
MultiKeyBinding(KeyStroke keyStroke,
String actionName)
Constructor for array single keystroke to action assignment. |
Method Summary | |
boolean |
equals(Object o)
Two keybindings are equal if and only if they represent the same keystrokes sequence and the same action name. |
String |
getActionName()
Get the name of the action which this keybinding triggers. |
KeyStroke |
getKeyStroke(int index)
Get the key of this keybinding at the given index of the keystroke sequence. |
int |
getKeyStrokeCount()
Get total number of keystrokes contained in this keybinding sequence. |
List |
getKeyStrokeList()
Get list of keystrokes represented by this keybinding. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MultiKeyBinding(KeyStroke[] keyStrokes, String actionName)
actionName
- non-null name of the action that will be invoked.public MultiKeyBinding(KeyStroke keyStroke, String actionName)
Method Detail |
public KeyStroke getKeyStroke(int index)
index
- >=0 and <getKeyStrokeCount()
index.
getKeyStrokeCount()
public int getKeyStrokeCount()
public List getKeyStrokeList()
public String getActionName()
public boolean equals(Object o)
public int hashCode()
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |