Package VASSAL.configure
Class StringArrayConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.configure.StringArrayConfigurer
- Direct Known Subclasses:
FormattedStringArrayConfigurer
public class StringArrayConfigurer extends Configurer
A Configurer that returns an array of Strings
-
Field Summary
Fields Modifier and Type Field Description protected JList<String>listprotected DefaultListModel<String>modelprotected JPanelpanelprotected JTextFieldtextFieldFields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, key, name, NAME_PROPERTY, noUpdate, value -
Constructor Summary
Constructors Constructor Description StringArrayConfigurer(String key, String name)StringArrayConfigurer(String key, String name, Object val) -
Method Summary
Modifier and Type Method Description protected voidaddTextActionListener(ActionListener a)voidaddValue(String s)static StringarrayToString(String[] s)ComponentgetControls()GUI interface for setting the option in an editing windowDefaultListModel<String>getModel()String[]getStringArray()protected ComponentgetTextComponent()protected StringgetTextValue()StringgetValueString()static voidmain(String[] args)voidremoveValue(String s)protected voidsetTextValue(String s)voidsetValue(Object o)Set the Object valuevoidsetValue(String s)Set the Object value from a Stringstatic String[]stringToArray(String s)protected voidupdateModel()Methods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getKey, getName, getValue, isFrozen, removePropertyChangeListener, setFrozen, setName
-
Field Details
-
panel
-
list
-
model
-
textField
-
-
Constructor Details
-
StringArrayConfigurer
-
StringArrayConfigurer
-
-
Method Details
-
getModel
-
addValue
-
removeValue
-
getControls
Description copied from class:ConfigurerGUI interface for setting the option in an editing window- Specified by:
getControlsin classConfigurer
-
getTextComponent
-
getTextValue
-
setTextValue
-
addTextActionListener
-
getStringArray
-
getValueString
- Specified by:
getValueStringin classConfigurer- Returns:
- a String representation of the Object value
-
arrayToString
-
setValue
Description copied from class:ConfigurerSet the Object value- Overrides:
setValuein classConfigurer
-
setValue
Description copied from class:ConfigurerSet the Object value from a String- Specified by:
setValuein classConfigurer
-
stringToArray
-
updateModel
protected void updateModel() -
main
-