com.borland.primetime.editor
Class TrackingKeymap

java.lang.Object
  |
  +--com.borland.primetime.editor.DefaultKeymap
        |
        +--com.borland.primetime.editor.TrackingKeymap

public class TrackingKeymap
extends DefaultKeymap

This is a special subclass of DefaultKeymap which wraps retrieved Actions with a special TrackingAction. The TrackingAction is used to store

See Also:
javax.swing.text.JTextComponent.DefaultKeymap

Inner Class Summary
static class TrackingKeymap.TrackingAction
           
 
Fields inherited from class com.borland.primetime.editor.DefaultKeymap
bindings, defaultAction, nm, parent
 
Constructor Summary
TrackingKeymap(java.lang.String nm, javax.swing.text.Keymap parent)
           
 
Method Summary
 javax.swing.Action getAction(javax.swing.KeyStroke key)
           
 javax.swing.Action getDefaultAction()
          Fetch the default action to fire if a key is typed (ie a KEY_TYPED KeyEvent is received) and there is no binding for it.
 
Methods inherited from class com.borland.primetime.editor.DefaultKeymap
addActionForKeyStroke, getBoundActions, getBoundKeyStrokes, getKeyStrokesForAction, getName, getResolveParent, isLocallyDefined, removeBindings, removeKeyStrokeBinding, setDefaultAction, setResolveParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TrackingKeymap

public TrackingKeymap(java.lang.String nm,
                      javax.swing.text.Keymap parent)
Method Detail

getDefaultAction

public javax.swing.Action getDefaultAction()
Fetch the default action to fire if a key is typed (ie 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.
Overrides:
getDefaultAction in class DefaultKeymap

getAction

public javax.swing.Action getAction(javax.swing.KeyStroke key)
Overrides:
getAction in class DefaultKeymap