|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.KeyStrokeProvider
com.tensegrity.gui.swing.SwingKeyStrokeProvider
This is a Swing based subclass of the
abstract class.
KeyStrokeProvider
| Field Summary | |
protected SwingKeyStrokeBuilder |
keyStrokeBuilderInstance
This is the local instance of SwingKeyStrokeBuilder |
| Fields inherited from class com.tensegrity.gui.KeyStrokeProvider |
KEYCODE_VS_MODIFIERS_SEPARATOR, KEYSTROKE_DEFINITION_SUFFIX, map, uiManager |
| Constructor Summary | |
protected |
SwingKeyStrokeProvider(UIManager uiManager)
This constructor initializes the local Map associating
command Ids and s.
|
| Method Summary | |
static SwingKeyStrokeProvider |
getInstance(UIManager uiManager)
Returns the singleton instance |
KeyStroke |
getKeyStroke(java.lang.String commandId)
Returns the KeyStrokeassociated with the passed command Id.
|
protected KeyStrokeBuilder |
getKeyStrokeBuilderInstance()
Returns the local instance of . |
javax.swing.KeyStroke |
getSwingKeyStroke(java.lang.String commandId)
Returns the KeyStrokeassociated with the passed
command Id.
|
protected void |
initKeyStrokesFromPropertyFile()
This method tries to overwrite all the command Id/KeyStroke associations programmatically set up in the constructor with other associations potentially defined into the property files. |
protected void |
initSubclassKeyStrokesFromPropertyFile()
Subclasses of should implement
this method and call it at the end of their constructor in order to
allow the keystokes to be changed through property files.
|
| Methods inherited from class com.tensegrity.gui.KeyStrokeProvider |
addToMap, dumpKeyStrokes, getCommandIds, initSingleKeyStroke, loadFromDescription, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected SwingKeyStrokeBuilder keyStrokeBuilderInstance
| Constructor Detail |
protected SwingKeyStrokeProvider(UIManager uiManager)
This constructor initializes the local Map associating
command Ids and s.
KeyStroke
uiManager - this is the application UIManager| Method Detail |
protected KeyStrokeBuilder getKeyStrokeBuilderInstance()
SwingKeyStrokeBuilder.
getKeyStrokeBuilderInstance in class KeyStrokeProviderSwingKeyStrokeBuilder instance.protected final void initKeyStrokesFromPropertyFile()
This method tries to overwrite all the command Id/KeyStroke associations programmatically set up in the constructor with other associations potentially defined into the property files.
initKeyStrokesFromPropertyFile in class KeyStrokeProviderprotected void initSubclassKeyStrokesFromPropertyFile()
Subclasses of should implement
this method and call it at the end of their constructor in order to
allow the keystokes to be changed through property files.
Typically, for each keystroke programmatically defined in the constructor,
a call to SwingKeyStrokeProvider should be made
in this method.
KeyStrokeProvider.initSingleKeyStroke(String)
initSubclassKeyStrokesFromPropertyFile in class KeyStrokeProviderpublic KeyStroke getKeyStroke(java.lang.String commandId)
Returns the KeyStrokeassociated with the passed command Id.
getKeyStroke in class KeyStrokeProvidercommandId - this is a unique identifier for a command.
KeyStrokeassociated with the passed command Idpublic javax.swing.KeyStroke getSwingKeyStroke(java.lang.String commandId)
Returns the KeyStrokeassociated with the passed
command Id.
commandId - this is a command unique identifier.
KeyStrokeassociated with the passed command
Idpublic static SwingKeyStrokeProvider getInstance(UIManager uiManager)
uiManager - this is the application's UIManager.
SwingKeyStrokeProvider instance.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||