VASSAL.configure
Class SimpleConfigurer

java.lang.Object
  |
  +--VASSAL.configure.Configurer
        |
        +--VASSAL.configure.SimpleConfigurer
All Implemented Interfaces:
java.util.EventListener, java.beans.PropertyChangeListener

public class SimpleConfigurer
extends Configurer
implements java.beans.PropertyChangeListener

A Configurer for configuring Configurable components (Is that as redundant as it sounds?) The invoking class must provide an array of Configurers, one for each attribute of the target Configurable object. It is usually easier for the target to implement AutoConfigurable and use the AutoConfigurer class.


Fields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, key, name, NAME_PROPERTY, noUpdate, value
 
Constructor Summary
SimpleConfigurer(Configurable c, Configurer[] attConfigurers)
           
 
Method Summary
 java.awt.Component getControls()
          GUI interface for setting the option in an editing window
 java.lang.String getValueString()
           
 void propertyChange(java.beans.PropertyChangeEvent p1)
           
 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, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleConfigurer

public SimpleConfigurer(Configurable c,
                        Configurer[] attConfigurers)
Method Detail

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

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

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent p1)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener