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, pFields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, hint, key, name, NAME_PROPERTY, noUpdate, value -
Constructor Summary
Constructors Constructor Description IntConfigurer(Integer val)IntConfigurer(String key, String name)IntConfigurer(String key, String name, Integer val) -
Method Summary
Modifier and Type Method Description protected StringgetGrowthConstraint()intgetIntValue(int defaultValue)StringgetValueString()voidsetValue(Object o)Set the Object valuevoidsetValue(String s)Set the Object value from a StringMethods inherited from class VASSAL.configure.StringConfigurer
buildTextField, getControls, setLabelVisibileMethods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getHint, getKey, getName, getScreenSize, getValue, isFrozen, removePropertyChangeListener, repack, repack, setFrozen, setHint, setName
-
Constructor Details
-
IntConfigurer
-
IntConfigurer
-
IntConfigurer
-
-
Method Details
-
setValue
Description copied from class:ConfigurerSet the Object value from a String- Overrides:
setValuein classStringConfigurer
-
getIntValue
public int getIntValue(int defaultValue) -
setValue
Description copied from class:ConfigurerSet the Object value- Overrides:
setValuein classConfigurer
-
getValueString
- Overrides:
getValueStringin classStringConfigurer- Returns:
- a String representation of the Object value
-
getGrowthConstraint
- Overrides:
getGrowthConstraintin classStringConfigurer
-