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, updateInProgress
Fields inherited from class VASSAL.configure.Configurer
changeSupport, context, contextLevel, frozen, hint, key, LIST_ENTRY_HIGHLIGHT_COLOR, name, NAME_PROPERTY, noUpdate, value
-
Constructor Summary
ConstructorDescriptionLongConfigurer
(String key, String name) LongConfigurer
(String key, String name, Long val) -
Method Summary
Modifier and TypeMethodDescriptionlong
getLongValue
(long defaultValue) void
Set the Object valuevoid
Set the Object value from a StringMethods inherited from class VASSAL.configure.StringConfigurer
addFocusListener, buildTextField, getControls, getGrowthConstraint, removeFocusListener, requestFocus, setEnabled, setHighlighted, setLabelVisible, updateHint
Methods 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:Configurer
Set the Object value from a String- Overrides:
setValue
in classStringConfigurer
-
getLongValue
public long getLongValue(long 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
-