Package VASSAL.configure
Class LongConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.configure.StringConfigurer
VASSAL.configure.LongConfigurer
public class LongConfigurer extends StringConfigurer
A Configurer for Long values
- Since:
- 3.1.0
- Author:
- Joel Uckelman
-
Field Summary
Fields inherited from class VASSAL.configure.StringConfigurer
DEFAULT_LENGHTH, length, nameField, pFields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, hint, key, LIST_ENTRY_HIGHLIGHT_COLOR, name, NAME_PROPERTY, noUpdate, value -
Constructor Summary
Constructors Constructor Description LongConfigurer(String key, String name)LongConfigurer(String key, String name, Long val) -
Method Summary
Modifier and Type Method Description longgetLongValue(long defaultValue)StringgetValueString()voidsetValue(Object o)Set the Object valuevoidsetValue(String s)Set the Object value from a StringMethods inherited from class VASSAL.configure.StringConfigurer
addFocusListener, buildTextField, getControls, getGrowthConstraint, removeFocusListener, setHighlighted, setLabelVisibileMethods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getHint, getKey, getName, getScreenSize, getValue, isFrozen, isHighlighted, removePropertyChangeListener, repack, repack, setFrozen, setHint, setHintKey, setName
-
Constructor Details
-
LongConfigurer
-
LongConfigurer
-
-
Method Details
-
setValue
Description copied from class:ConfigurerSet the Object value from a String- Overrides:
setValuein classStringConfigurer
-
getLongValue
public long getLongValue(long 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
-