Package VASSAL.tools
Class NamedKeyStrokeListener
java.lang.Object
VASSAL.tools.KeyStrokeListener
VASSAL.tools.NamedKeyStrokeListener
public class NamedKeyStrokeListener extends KeyStrokeListener
Extension of KeyStrokeListener to support NamedKeyStroke's and
store the supplied NamedKeyStroke. Some components use KeyStrokeListeners
to store KeyStroke values.
-
Constructor Summary
Constructors Constructor Description NamedKeyStrokeListener(ActionListener l)
NamedKeyStrokeListener(ActionListener l, NamedKeyStroke key)
-
Method Summary
Modifier and Type Method Description NamedKeyStroke
getNamedKeyStroke()
void
setKeyStroke(KeyStroke newKey)
void
setKeyStroke(NamedKeyStroke newKey)
Methods inherited from class VASSAL.tools.KeyStrokeListener
addKeyStrokeSource, getKeyStroke, keyPressed
-
Constructor Details
-
NamedKeyStrokeListener
-
NamedKeyStrokeListener
-
-
Method Details
-
setKeyStroke
- Overrides:
setKeyStroke
in classKeyStrokeListener
-
setKeyStroke
-
getNamedKeyStroke
-