|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.event.KeyAdapter
de.adom.jade.ui.KeyboardCommandProducer
Works as a keyboard listener that interprets pressed keys in order to transform them into typed commands.
This class requires a ressource file with logical command names followed
by an atomic string (specifically encoded) representing the key sequence
to activate the command. The key sequence is encoded according to the
rules of KeyUtils.getKeyString.
KeyUtils,
KeyUtils.getKeyString(java.awt.event.KeyEvent)| Constructor Summary | |
|---|---|
KeyboardCommandProducer(KeyboardCommandTarget target)
Creates a key command producer that retrieves the mapping information between keys and commands from the standard ressource located at . |
|
KeyboardCommandProducer(KeyboardCommandTarget target,
java.lang.String location)
Creates a key command producer that retrieves the mapping information between keys and commands from the given location. |
|
| Method Summary | |
|---|---|
void |
keyPressed(java.awt.event.KeyEvent e)
Reacts when a key command has been typed. |
| Methods inherited from class java.awt.event.KeyAdapter |
|---|
keyReleased, keyTyped |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyboardCommandProducer(KeyboardCommandTarget target)
./data/kbd/commands.dat.
target - the target of the commands
public KeyboardCommandProducer(KeyboardCommandTarget target,
java.lang.String location)
target - the target of the commands| Method Detail |
|---|
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerkeyPressed in class java.awt.event.KeyAdaptere - the responsibel key event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||