|
|||||||||||
| 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.swt.SwtKeyStrokeProvider
This is a SWT based subclass of the
abstract class.
KeyStrokeProvider
| Field Summary | |
protected SwtKeyStrokeBuilder |
keyStrokeBuilderInstance
This is the local instance of SwtKeyStrokeBuilder |
| Fields inherited from class com.tensegrity.gui.KeyStrokeProvider |
KEYCODE_VS_MODIFIERS_SEPARATOR, KEYSTROKE_DEFINITION_SUFFIX, map, uiManager |
| Constructor Summary | |
protected |
SwtKeyStrokeProvider(UIManager uiManager)
This constructor initializes the local Map associating
command Ids and s.
|
| Method Summary | |
static SwtKeyStrokeProvider |
getInstance(UIManager uiManager)
Returns the singleton instance |
protected KeyStrokeBuilder |
getKeyStrokeBuilderInstance()
Returns the local instance of . |
SwtKeyStroke |
getSwtKeyStroke(java.lang.String commandId)
Returns the SwtKeyStrokeassociated 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 keystrokes to be changed through property files.
|
| Methods inherited from class com.tensegrity.gui.KeyStrokeProvider |
addToMap, dumpKeyStrokes, getCommandIds, getKeyStroke, initSingleKeyStroke, loadFromDescription, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected SwtKeyStrokeBuilder keyStrokeBuilderInstance
| Constructor Detail |
protected SwtKeyStrokeProvider(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()
SwtKeyStrokeBuilder.
getKeyStrokeBuilderInstance in class KeyStrokeProviderSwtKeyStrokeBuilder 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 keystrokes to be changed through property files.
Typically, for each keystroke programmatically defined in the constructor,
a call to SwtKeyStrokeProvider should be made
in this method.
KeyStrokeProvider.initSingleKeyStroke(String)
initSubclassKeyStrokesFromPropertyFile in class KeyStrokeProviderpublic SwtKeyStroke getSwtKeyStroke(java.lang.String commandId)
Returns the SwtKeyStrokeassociated with the passed
command Id.
commandId - this is a command unique identifier.
SwtKeyStrokeassociated with the passed command
Idpublic static SwtKeyStrokeProvider getInstance(UIManager uiManager)
uiManager - this is the application's UIManager.
SwtKeyStrokeProvider instance.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||