|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.essex.keymapper.KeyMapManagerImpl
public class KeyMapManagerImpl
Date: 15-Jul-2002
Field Summary | |
---|---|
protected static KeyMapManagerImpl |
ourInstance
The singleton instance |
Fields inherited from interface uk.ac.essex.keymapper.KeyMapManager |
---|
DEFAULT_KEY_MAP_NAME |
Constructor Summary | |
---|---|
protected |
KeyMapManagerImpl()
|
Method Summary | |
---|---|
static KeyMapManager |
getInstance()
|
KeyMap |
getKeyMap(java.lang.String name)
|
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 |
static void |
main(java.lang.String[] argStrings)
For testing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static KeyMapManagerImpl ourInstance
Constructor Detail |
---|
protected KeyMapManagerImpl()
Method Detail |
---|
public static KeyMapManager getInstance()
public void loadDirectory(java.io.File directoryToLoadFrom)
loadDirectory
in interface KeyMapManager
directoryToLoadFrom
- public javax.swing.KeyStroke getKeyStrokeFor(java.lang.String keyMapName, java.lang.String actionId)
getKeyStrokeFor
in interface KeyMapManager
keyMapName
- - the name of the key map to useactionId
- - the name of the action whose key stroke to get
public javax.swing.KeyStroke getKeyStrokeFor(java.lang.String actionId)
'DEFAULT_KEY_MAP'
.
getKeyStrokeFor
in interface KeyMapManager
actionId
- - the name of the action whose key stroke to get
public KeyMap getKeyMap(java.lang.String name)
name
-
public java.lang.String[] getKeyMapNames()
getKeyMapNames
in interface KeyMapManager
public static void main(java.lang.String[] argStrings)
argStrings
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |