VASSAL.configure
Class KeyModifiersConfigurer
java.lang.Object
|
+--VASSAL.configure.Configurer
|
+--VASSAL.configure.KeyModifiersConfigurer
- All Implemented Interfaces:
- java.util.EventListener, java.awt.event.KeyListener
- public class KeyModifiersConfigurer
- extends Configurer
- implements java.awt.event.KeyListener
Configurer for specifing key masks (CTRL, SHIFT, CTRL-ALT, etc.)
|
Method Summary |
java.awt.Component |
getControls()
GUI interface for setting the option in an editing window |
java.lang.String |
getValueString()
|
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
void |
setValue(java.lang.Object o)
Set the Object value |
void |
setValue(java.lang.String s)
Set the Object value from a String |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyModifiersConfigurer
public KeyModifiersConfigurer(java.lang.String key,
java.lang.String name)
getControls
public java.awt.Component getControls()
- Description copied from class:
Configurer
- GUI interface for setting the option in an editing window
- Overrides:
getControls in class Configurer
getValueString
public java.lang.String getValueString()
- Overrides:
getValueString in class Configurer
- Following copied from class:
VASSAL.configure.Configurer
- Returns:
- a String representation of the Object value
setValue
public void setValue(java.lang.String s)
- Description copied from class:
Configurer
- Set the Object value from a String
- Overrides:
setValue in class Configurer
setValue
public void setValue(java.lang.Object o)
- Description copied from class:
Configurer
- Set the Object value
- Overrides:
setValue in class Configurer
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
- Specified by:
keyReleased in interface java.awt.event.KeyListener
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
- Specified by:
keyTyped in interface java.awt.event.KeyListener
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
- Specified by:
keyPressed in interface java.awt.event.KeyListener