Package VASSAL.configure
Class ListConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.configure.ListConfigurer
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
- Direct Known Subclasses:
DoActionButton.NamedHotkeyListConfigurer
public abstract class ListConfigurer extends Configurer implements PropertyChangeListener
Configures a variable-length list of objects
- Author:
- rkinney
-
Field Summary
Fields Modifier and Type Field Description protected Box
configControls
protected List<Configurer>
configurers
protected Box
controls
protected Dimension
fixedSize
protected JPanel
panel
Fields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, key, name, NAME_PROPERTY, noUpdate, value
-
Constructor Summary
Constructors Constructor Description ListConfigurer(String key, String name)
ListConfigurer(String key, String name, List<?> val)
-
Method Summary
Modifier and Type Method Description protected abstract Configurer
buildChildConfigurer()
The objects in the list are specified by the Configurer returned hereboolean
equals(Object obj)
Component
getControls()
GUI interface for setting the option in an editing windowList<Object>
getListValue()
String
getValueString()
int
hashCode()
void
propertyChange(PropertyChangeEvent evt)
void
repack()
void
setValue(Object o)
Set the Object valuevoid
setValue(String s)
Set the Object value from a Stringprotected void
updateControls()
protected void
updateValue()
Methods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getKey, getName, getValue, isFrozen, removePropertyChangeListener, setFrozen, setName
-
Field Details
-
controls
-
configControls
-
panel
-
fixedSize
-
configurers
-
-
Constructor Details
-
ListConfigurer
-
ListConfigurer
-
-
Method Details
-
getValueString
- Specified by:
getValueString
in classConfigurer
- Returns:
- a String representation of the Object value
-
setValue
Description copied from class:Configurer
Set the Object value from a String- Specified by:
setValue
in classConfigurer
-
updateValue
protected void updateValue() -
setValue
Description copied from class:Configurer
Set the Object value- Overrides:
setValue
in classConfigurer
-
getControls
Description copied from class:Configurer
GUI interface for setting the option in an editing window- Specified by:
getControls
in classConfigurer
-
getListValue
-
buildChildConfigurer
The objects in the list are specified by the Configurer returned here- Returns:
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
updateControls
protected void updateControls() -
repack
public void repack() -
hashCode
public int hashCode() -
equals
-