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.
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleConfigurer
public SimpleConfigurer(Configurable c,
Configurer[] attConfigurers)
getValueString
public java.lang.String getValueString()
- Specified by:
getValueString in class 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
- Specified by:
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
- Specified by:
getControls in class Configurer
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent p1)
- Specified by:
propertyChange in interface java.beans.PropertyChangeListener