uk.ac.essex.keymapper
Interface KeyMapManager

All Known Implementing Classes:
IAKeyMapManager, KeyMapManagerImpl

public interface KeyMapManager


Date: 15-Jul-2002


Field Summary
static java.lang.String DEFAULT_KEY_MAP_NAME
          The default key map should always be available so this is its name
 
Method Summary
 java.lang.String[] getKeyMapNames()
          Get an array of the key map names that are available
 javax.swing.KeyStroke getKeyStrokeFor(java.lang.String actionId)
          Gets a key stroke for the given identifier, this uses the default key map name 'DEFAULT_KEY_MAP'.
 javax.swing.KeyStroke getKeyStrokeFor(java.lang.String keyMapName, java.lang.String actionId)
          Gets a key stroke for the given identifier
 void loadDirectory(java.io.File directoryToLoadFrom)
          Loads all xml files from the given directory
 

Field Detail

DEFAULT_KEY_MAP_NAME

static final java.lang.String DEFAULT_KEY_MAP_NAME
The default key map should always be available so this is its name

See Also:
Constant Field Values
Method Detail

loadDirectory

void loadDirectory(java.io.File directoryToLoadFrom)
Loads all xml files from the given directory

Parameters:
directoryToLoadFrom -

getKeyStrokeFor

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

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

getKeyStrokeFor

javax.swing.KeyStroke getKeyStrokeFor(java.lang.String actionId)
Gets a key stroke for the given identifier, this uses the default key map name 'DEFAULT_KEY_MAP'.

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

getKeyMapNames

java.lang.String[] getKeyMapNames()
Get an array of the key map names that are available

Returns: