Package VASSAL.configure
Class StringConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.configure.StringConfigurer
- Direct Known Subclasses:
BeanShellExpressionConfigurer
,DoubleConfigurer
,FormattedStringConfigurer
,IntConfigurer
,LongConfigurer
,PasswordConfigurer
public class StringConfigurer extends Configurer
A Configurer for String values
-
Field Summary
Fields Modifier and Type Field Description protected static int
DEFAULT_LENGHTH
protected int
length
protected JTextField
nameField
protected JPanel
p
Fields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, key, name, NAME_PROPERTY, noUpdate, value
-
Constructor Summary
Constructors Constructor Description StringConfigurer(String key, String name)
StringConfigurer(String key, String name, int length)
StringConfigurer(String key, String name, String val)
-
Method Summary
Modifier and Type Method Description protected JTextField
buildTextField()
Component
getControls()
GUI interface for setting the option in an editing windowString
getValueString()
void
setValue(String s)
Set the Object value from a StringMethods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getKey, getName, getValue, isFrozen, removePropertyChangeListener, setFrozen, setName, setValue
-
Field Details
-
p
-
nameField
-
length
protected int length -
DEFAULT_LENGHTH
protected static int DEFAULT_LENGHTH
-
-
Constructor Details
-
StringConfigurer
-
StringConfigurer
-
StringConfigurer
-
-
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
-
getControls
Description copied from class:Configurer
GUI interface for setting the option in an editing window- Specified by:
getControls
in classConfigurer
-
buildTextField
-