|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkawigi.editor.KawigiEditKeyMap
public class KawigiEditKeyMap
Keymap implementation used by KawigiEdit's CodePanes. If you want to map a keystroke in the editor to some specific action, this is the place to do that. Also, I've long had a theory that if I got with some people and implemented one or two more keymaps to swap with this one, it would be reasonably feasible to implement a "Vi" mode on KawigiEdit, which is something I think some people would like.
| Constructor Summary | |
|---|---|
KawigiEditKeyMap(Dispatcher editorSubDispatcher)
Constructs a KawigiEditKeyMap with the set of actions we bind to keystrokes in the editor. |
|
| Method Summary | |
|---|---|
void |
addActionForKeyStroke(javax.swing.KeyStroke key,
javax.swing.Action a)
Binds an action to a keystroke. |
javax.swing.Action |
getAction(javax.swing.KeyStroke key)
Returns a bound action for the given KeyStroke. |
javax.swing.Action[] |
getBoundActions()
Gets all the actions that are bound by this KeyMap. |
javax.swing.KeyStroke[] |
getBoundKeyStrokes()
Gets all the keystrokes that are bound by this KeyMap. |
javax.swing.Action |
getDefaultAction()
Returns the default action for unbound keystrokes. |
javax.swing.KeyStroke[] |
getKeyStrokesForAction(javax.swing.Action a)
Returns the KeyStrokes that execute the given action. |
java.lang.String |
getName()
Returns the name of this keymap. |
javax.swing.text.Keymap |
getResolveParent()
Returns the parent of this keymap. |
boolean |
isLocallyDefined(javax.swing.KeyStroke key)
Returns true if a command is bound to the given key and it's currently available. |
void |
removeBindings()
Clears the bindings in the keymap. |
void |
removeKeyStrokeBinding(javax.swing.KeyStroke keys)
Clears a specific keystroke binding. |
void |
setDefaultAction(javax.swing.Action a)
Sets the default action. |
void |
setResolveParent(javax.swing.text.Keymap parent)
Sets the parent keymap. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KawigiEditKeyMap(Dispatcher editorSubDispatcher)
| Method Detail |
|---|
public void addActionForKeyStroke(javax.swing.KeyStroke key,
javax.swing.Action a)
addActionForKeyStroke in interface javax.swing.text.Keymappublic javax.swing.Action getAction(javax.swing.KeyStroke key)
getAction in interface javax.swing.text.Keymappublic javax.swing.Action[] getBoundActions()
getBoundActions in interface javax.swing.text.Keymappublic javax.swing.KeyStroke[] getBoundKeyStrokes()
getBoundKeyStrokes in interface javax.swing.text.Keymappublic javax.swing.Action getDefaultAction()
getDefaultAction in interface javax.swing.text.Keymappublic javax.swing.KeyStroke[] getKeyStrokesForAction(javax.swing.Action a)
getKeyStrokesForAction in interface javax.swing.text.Keymappublic java.lang.String getName()
getName in interface javax.swing.text.Keymappublic javax.swing.text.Keymap getResolveParent()
getResolveParent in interface javax.swing.text.Keymappublic boolean isLocallyDefined(javax.swing.KeyStroke key)
isLocallyDefined in interface javax.swing.text.Keymappublic void removeBindings()
removeBindings in interface javax.swing.text.Keymappublic void removeKeyStrokeBinding(javax.swing.KeyStroke keys)
removeKeyStrokeBinding in interface javax.swing.text.Keymappublic void setDefaultAction(javax.swing.Action a)
setDefaultAction in interface javax.swing.text.Keymappublic void setResolveParent(javax.swing.text.Keymap parent)
setResolveParent in interface javax.swing.text.Keymap
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||