uk.ac.essex.common.keymapper
Interface KeyMap

All Known Implementing Classes:
KeyMapImpl

public interface KeyMap

A keymap binds keytrokes to actions
Created Date: 30-Oct-2003


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)
           
 

Method Detail

getKeyStrokeFor

javax.swing.KeyStroke getKeyStrokeFor(java.lang.String actionId)
Gets a key stroke for the given action name identifier

Parameters:
actionId - - the name of the action whose key stroke to translate
Returns:
- The key stroke, or null if one is not defined

addActionBinding

void addActionBinding(java.lang.String actionId,
                      java.lang.String keyStoke)
Parameters:
actionId -
keyStoke -

removeActionBinding

void removeActionBinding(java.lang.String actionId)
Parameters:
actionId -