javax.swing.text.Keymap |
A collection of bindings of KeyStrokes to actions. The bindings are basically name-value pairs that potentially resolve in a hierarchy.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a binding to the keymap.
| |||||||||||
Fetches the action appropriate for the given symbolic
event sequence.
| |||||||||||
Fetches all of the actions defined in this keymap.
| |||||||||||
Fetches all of the keystrokes in this map that
are bound to some action.
| |||||||||||
Fetches the default action to fire if a
key is typed (i.e.
| |||||||||||
Fetches the keystrokes that will result in
the given action.
| |||||||||||
Fetches the name of the set of key-bindings.
| |||||||||||
Fetches the parent keymap used to resolve key-bindings.
| |||||||||||
Determines if the given key sequence is locally defined.
| |||||||||||
Removes all bindings from the keymap.
| |||||||||||
Removes a binding from the keymap.
| |||||||||||
Set the default action to fire if a key is typed.
| |||||||||||
Sets the parent keymap, which will be used to
resolve key-bindings.
|
Adds a binding to the keymap.
key | the key sequence |
---|---|
a | the action |
Fetches the action appropriate for the given symbolic event sequence. This is used by JTextController to determine how to interpret key sequences. If the binding is not resolved locally, an attempt is made to resolve through the parent keymap, if one is set.
key | the key sequence |
---|
null
Fetches all of the actions defined in this keymap.
Fetches all of the keystrokes in this map that are bound to some action.
Fetches the default action to fire if a key is typed (i.e. a KEY_TYPED KeyEvent is received) and there is no binding for it. Typically this would be some action that inserts text so that the keymap doesn't require an action for each possible key.
Fetches the keystrokes that will result in the given action.
a | the action |
---|
Fetches the parent keymap used to resolve key-bindings.
Determines if the given key sequence is locally defined.
key | the key sequence |
---|
Removes all bindings from the keymap.
Removes a binding from the keymap.
keys | the key sequence |
---|
Set the default action to fire if a key is typed.
a | the action |
---|
Sets the parent keymap, which will be used to resolve key-bindings.
parent | the parent keymap |
---|