API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text. Keymap View Source
Author(s)
Timothy Prinzing
Since
Version
1.19 11/17/05
Serial
Hierarchy
 Keymap
Subinterfaces
Description
public interface Keymap
  A collection of bindings of KeyStrokes to actions.
See also:   
Methods
Hide/Show inherited methods
public void addActionForKeyStroke (KeyStroke key, Action a)
  Adds a binding to the keymap.
public Action getAction (KeyStroke key)
  Fetches the action appropriate for the given symbolic event sequence.
public Action getBoundActions ()
  Fetches all of the actions defined in this keymap.
public KeyStroke getBoundKeyStrokes ()
  Fetches all of the keystrokes in this map that are bound to some action.
public Action getDefaultAction ()
  Fetches the default action to fire if a key is typed (i.e.
public KeyStroke getKeyStrokesForAction (Action a)
  Fetches the keystrokes that will result in the given action.
public String getName ()
  Fetches the name of the set of key-bindings.
public Keymap getResolveParent ()
  Fetches the parent keymap used to resolve key-bindings.
public boolean isLocallyDefined (KeyStroke key)
  Determines if the given key sequence is locally defined.
public void removeBindings ()
Removes all bindings from the keymap.
public void removeKeyStrokeBinding (KeyStroke keys)
  Removes a binding from the keymap.
public void setDefaultAction (Action a)
  Set the default action to fire if a key is typed.
public void setResolveParent (Keymap parent)
  Sets the parent keymap, which will be used to resolve key-bindings.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar