VASSAL.configure
Class KeyStrokeArrayConfigurer

java.lang.Object
  |
  +--VASSAL.configure.Configurer
        |
        +--VASSAL.configure.KeyStrokeArrayConfigurer

public class KeyStrokeArrayConfigurer
extends Configurer

Configures an array of keystrokes


Fields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, key, name, NAME_PROPERTY, noUpdate, value
 
Constructor Summary
KeyStrokeArrayConfigurer(java.lang.String key, java.lang.String name)
           
KeyStrokeArrayConfigurer(java.lang.String key, java.lang.String name, javax.swing.KeyStroke[] val)
           
 
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 VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getKey, getName, getValue, isFrozen, setFrozen, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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)