VASSAL.tools
Class KeyStrokeListener
java.lang.Object
|
+--VASSAL.tools.KeyStrokeListener
- public class KeyStrokeListener
- extends java.lang.Object
Utility class for associating an Action with a keystroke from multiple different component sources
- See Also:
GameModule.addKeyStrokeListener(VASSAL.tools.KeyStrokeListener),
GameModule.addKeyStrokeSource(VASSAL.tools.KeyStrokeSource)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyStrokeListener
public KeyStrokeListener(java.awt.event.ActionListener l,
javax.swing.KeyStroke key)
KeyStrokeListener
public KeyStrokeListener(java.awt.event.ActionListener l)
setKeyStroke
public void setKeyStroke(javax.swing.KeyStroke newKey)
getKeyStroke
public javax.swing.KeyStroke getKeyStroke()
addKeyStrokeSource
public void addKeyStrokeSource(KeyStrokeSource src)