VASSAL.configure
Class KeyStrokeArrayConfigurer
java.lang.Object
|
+--VASSAL.configure.Configurer
|
+--VASSAL.configure.KeyStrokeArrayConfigurer
- public class KeyStrokeArrayConfigurer
- extends Configurer
Configures an array of keystrokes
|
Method Summary |
static javax.swing.KeyStroke[] |
decode(java.lang.String s)
|
static java.lang.String |
encode(javax.swing.KeyStroke[] keys)
|
java.awt.Component |
getControls()
GUI interface for setting the option in an editing window |
javax.swing.KeyStroke[] |
getKeyStrokes()
|
java.lang.String |
getValueString()
|
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 |
KeyStrokeArrayConfigurer
public KeyStrokeArrayConfigurer(java.lang.String key,
java.lang.String name)
KeyStrokeArrayConfigurer
public KeyStrokeArrayConfigurer(java.lang.String key,
java.lang.String name,
javax.swing.KeyStroke[] val)
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
getKeyStrokes
public javax.swing.KeyStroke[] getKeyStrokes()
decode
public static javax.swing.KeyStroke[] decode(java.lang.String s)
encode
public static java.lang.String encode(javax.swing.KeyStroke[] keys)