VASSAL.configure
Class AutoConfigurer

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

public class AutoConfigurer
extends Configurer
implements java.beans.PropertyChangeListener

A Configurer for configuring Configurable components (Is that as redundant as it sounds?) Automatically builds a property editor with controls for setting all of the attributes of the target Configurable component


Fields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, key, name, NAME_PROPERTY, noUpdate, value
 
Constructor Summary
AutoConfigurer(AutoConfigurable c)
           
 
Method Summary
protected  void checkVisibility()
           
 Configurer getConfigurer(java.lang.String attribute)
           
 java.awt.Component getControls()
          GUI interface for setting the option in an editing window
 java.lang.String getValueString()
           
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
 void reset()
           
 void setValue(java.lang.String s)
          Set the Object value from a String
 void setVisibility(java.lang.String attribute, VisibilityCondition c)
           
 
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

AutoConfigurer

public AutoConfigurer(AutoConfigurable c)
Method Detail

reset

public void reset()

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 evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

setVisibility

public void setVisibility(java.lang.String attribute,
                          VisibilityCondition c)

checkVisibility

protected void checkVisibility()

getConfigurer

public Configurer getConfigurer(java.lang.String attribute)