uk.ac.essex.common.keymapper
Class KeyMapImpl

java.lang.Object
  extended by uk.ac.essex.common.keymapper.KeyMapImpl
All Implemented Interfaces:
KeyMap

public class KeyMapImpl
extends java.lang.Object
implements KeyMap


Created Date: 30-Oct-2003


Constructor Summary
KeyMapImpl()
           
KeyMapImpl(KeyMap parentMap)
           
 
Method Summary
 void addActionBinding(java.lang.String actionId, java.lang.String keyStoke)
           
 javax.swing.KeyStroke getKeyStrokeFor(java.lang.String actionId)
          Gets a key stroke for the given action name identifier
 void removeActionBinding(java.lang.String actionId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyMapImpl

public KeyMapImpl()

KeyMapImpl

public KeyMapImpl(KeyMap parentMap)
Method Detail

getKeyStrokeFor

public javax.swing.KeyStroke getKeyStrokeFor(java.lang.String actionId)
Description copied from interface: KeyMap
Gets a key stroke for the given action name identifier

Specified by:
getKeyStrokeFor in interface KeyMap
Parameters:
actionId - - the name of the action whose key stroke to translate
Returns:
- The key stroke, or null if one is not defined

addActionBinding

public void addActionBinding(java.lang.String actionId,
                             java.lang.String keyStoke)
Specified by:
addActionBinding in interface KeyMap

removeActionBinding

public void removeActionBinding(java.lang.String actionId)
Specified by:
removeActionBinding in interface KeyMap