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)

Constructor Summary
KeyStrokeListener(java.awt.event.ActionListener l)
           
KeyStrokeListener(java.awt.event.ActionListener l, javax.swing.KeyStroke key)
           
 
Method Summary
 void addKeyStrokeSource(KeyStrokeSource src)
           
 javax.swing.KeyStroke getKeyStroke()
           
 void setKeyStroke(javax.swing.KeyStroke newKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyStrokeListener

public KeyStrokeListener(java.awt.event.ActionListener l,
                         javax.swing.KeyStroke key)

KeyStrokeListener

public KeyStrokeListener(java.awt.event.ActionListener l)
Method Detail

setKeyStroke

public void setKeyStroke(javax.swing.KeyStroke newKey)

getKeyStroke

public javax.swing.KeyStroke getKeyStroke()

addKeyStrokeSource

public void addKeyStrokeSource(KeyStrokeSource src)