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 BoxconfigControlsprotected List<Configurer>configurersprotected Boxcontrolsprotected DimensionfixedSizeprotected JPanelpanelFields 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 ConfigurerbuildChildConfigurer()The objects in the list are specified by the Configurer returned herebooleanequals(Object obj)ComponentgetControls()GUI interface for setting the option in an editing windowList<Object>getListValue()StringgetValueString()inthashCode()voidpropertyChange(PropertyChangeEvent evt)voidrepack()voidsetValue(Object o)Set the Object valuevoidsetValue(String s)Set the Object value from a Stringprotected voidupdateControls()protected voidupdateValue()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:
getValueStringin classConfigurer- Returns:
- a String representation of the Object value
-
setValue
Description copied from class:ConfigurerSet the Object value from a String- Specified by:
setValuein classConfigurer
-
updateValue
protected void updateValue() -
setValue
Description copied from class:ConfigurerSet the Object value- Overrides:
setValuein classConfigurer
-
getControls
Description copied from class:ConfigurerGUI interface for setting the option in an editing window- Specified by:
getControlsin classConfigurer
-
getListValue
-
buildChildConfigurer
The objects in the list are specified by the Configurer returned here- Returns:
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
updateControls
protected void updateControls() -
repack
public void repack() -
hashCode
public int hashCode() -
equals
-