Package VASSAL.configure
Class IntConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.configure.StringConfigurer
VASSAL.configure.IntConfigurer
- Direct Known Subclasses:
LayoutConfigurer.NewIntConfigurer
public class IntConfigurer extends StringConfigurer
A Configurer for Integer values
-
Field Summary
Fields inherited from class VASSAL.configure.StringConfigurer
DEFAULT_LENGHTH, length, nameField, p
Fields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, key, name, NAME_PROPERTY, noUpdate, value
-
Constructor Summary
Constructors Constructor Description IntConfigurer(String key, String name)
IntConfigurer(String key, String name, Integer val)
-
Method Summary
Modifier and Type Method Description int
getIntValue(int defaultValue)
String
getValueString()
void
setValue(Object o)
Set the Object valuevoid
setValue(String s)
Set the Object value from a StringMethods inherited from class VASSAL.configure.StringConfigurer
buildTextField, getControls
Methods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getKey, getName, getValue, isFrozen, removePropertyChangeListener, setFrozen, setName
-
Constructor Details
-
IntConfigurer
-
IntConfigurer
-
-
Method Details
-
setValue
Description copied from class:Configurer
Set the Object value from a String- Overrides:
setValue
in classStringConfigurer
-
getIntValue
public int getIntValue(int defaultValue) -
setValue
Description copied from class:Configurer
Set the Object value- Overrides:
setValue
in classConfigurer
-
getValueString
- Overrides:
getValueString
in classStringConfigurer
- Returns:
- a String representation of the Object value
-