Class KeyStrokeListener

java.lang.Object
VASSAL.tools.KeyStrokeListener
Direct Known Subclasses:
NamedKeyStrokeListener

public class KeyStrokeListener extends Object
Utility class for associating an Action with a keystroke from multiple different component sources
See Also:
  • Constructor Details

  • Method Details

    • setKeyStroke

      public void setKeyStroke(KeyStroke newKey)
    • getKeyStroke

      public KeyStroke getKeyStroke()
    • keyPressed

      public void keyPressed(KeyStroke stroke)
    • addKeyStrokeSource

      public void addKeyStrokeSource(KeyStrokeSource src)
    • removeKeyStrokeSource

      public void removeKeyStrokeSource(KeyStrokeSource src)