Class LongConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.configure.StringConfigurer
VASSAL.configure.LongConfigurer
A Configurer for Long values
- Since:
- 3.1.0
- Author:
- Joel Uckelman
-
Nested Class Summary
Nested classes/interfaces inherited from class VASSAL.configure.Configurer
Configurer.ContextLevel -
Field Summary
Fields inherited from class VASSAL.configure.StringConfigurer
DEFAULT_LENGHTH, DEFAULT_LENGTH, length, nameField, p, updateInProgressFields inherited from class VASSAL.configure.Configurer
changeSupport, context, contextLevel, frozen, hint, key, LIST_ENTRY_HIGHLIGHT_COLOR, name, NAME_PROPERTY, noUpdate, value -
Constructor Summary
ConstructorsConstructorDescriptionLongConfigurer(String key, String name) LongConfigurer(String key, String name, Long val) -
Method Summary
Modifier and TypeMethodDescriptionlonggetLongValue(long defaultValue) voidSet the Object valuevoidSet the Object value from a StringMethods inherited from class VASSAL.configure.StringConfigurer
addFocusListener, buildTextField, getControls, getGrowthConstraint, removeFocusListener, requestFocus, setEnabled, setHighlighted, setLabelVisible, updateHintMethods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getContext, getContextLevel, getHint, getKey, getName, getScreenSize, getValue, initCustomControls, isFrozen, isHighlighted, isPieceContext, removePropertyChangeListener, repack, repack, setContext, setContext, setContext, setContextLevel, setFrozen, setHint, setHintKey, setLabelVisibile, 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
-