javax.swing.text
Class JTextComponent.DefaultKeymap

java.lang.Object
javax.swing.text.JTextComponent.DefaultKeymap
- All Implemented Interfaces:
- Keymap
- Enclosing class:
- JTextComponent
- static class JTextComponent.DefaultKeymap
- extends java.lang.Object
- implements Keymap
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
java.lang.String name
parent
Keymap parent
map
java.util.Hashtable map
defaultAction
javax.swing.Action defaultAction
JTextComponent.DefaultKeymap
public JTextComponent.DefaultKeymap(java.lang.String name)
addActionForKeyStroke
public void addActionForKeyStroke(javax.swing.KeyStroke key,
javax.swing.Action a)
- Specified by:
addActionForKeyStroke
in interface Keymap
getAction
public javax.swing.Action getAction(javax.swing.KeyStroke key)
- Looks up a KeyStroke either in the current map or the parent Keymap;
does not return the default action if lookup fails.
- Specified by:
getAction
in interface Keymap
getBoundActions
public javax.swing.Action[] getBoundActions()
- Specified by:
getBoundActions
in interface Keymap
getBoundKeyStrokes
public javax.swing.KeyStroke[] getBoundKeyStrokes()
- Specified by:
getBoundKeyStrokes
in interface Keymap
getDefaultAction
public javax.swing.Action getDefaultAction()
- Specified by:
getDefaultAction
in interface Keymap
getKeyStrokesForAction
public javax.swing.KeyStroke[] getKeyStrokesForAction(javax.swing.Action a)
- Specified by:
getKeyStrokesForAction
in interface Keymap
getName
public java.lang.String getName()
- Specified by:
getName
in interface Keymap
getResolveParent
public Keymap getResolveParent()
- Specified by:
getResolveParent
in interface Keymap
isLocallyDefined
public boolean isLocallyDefined(javax.swing.KeyStroke key)
- Specified by:
isLocallyDefined
in interface Keymap
removeBindings
public void removeBindings()
- Specified by:
removeBindings
in interface Keymap
removeKeyStrokeBinding
public void removeKeyStrokeBinding(javax.swing.KeyStroke key)
- Specified by:
removeKeyStrokeBinding
in interface Keymap
setDefaultAction
public void setDefaultAction(javax.swing.Action a)
- Specified by:
setDefaultAction
in interface Keymap
setResolveParent
public void setResolveParent(Keymap p)
- Specified by:
setResolveParent
in interface Keymap