Package VASSAL.build.module.properties
Class PropertyChangerConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.build.module.properties.PropertyChangerConfigurer
public class PropertyChangerConfigurer extends Configurer
Configurer instance that allows a module editor to specify a
PropertyChanger, i.e. the way in which a dynamic property will be
updated by a player during a game
- Author:
- rkinney
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PropertyChangerConfigurer.Constraints
-
Field Summary
Fields Modifier and Type Field Description protected PropertyChangerConfigurer.Constraints
constraints
protected JPanel
controls
protected static Map<String,Character>
descriptionToCode
protected static char
ENUM_CODE
protected static char
INCR_CODE
protected FormattedExpressionConfigurer
incrConfig
protected static String
INCREMENT_TYPE
protected static char
PLAIN_CODE
protected static String
PLAIN_TYPE
protected static char
PROMPT_CODE
protected static String
PROMPT_TYPE
protected StringConfigurer
promptConfig
protected static String
SELECT_TYPE
protected StringEnumConfigurer
typeConfig
protected static Map<Class<? extends PropertyChanger>,Character>
typeToCode
protected static Map<Class<? extends PropertyChanger>,String>
typeToDescription
protected StringArrayConfigurer
validValuesConfig
protected FormattedExpressionConfigurer
valueConfig
Fields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, key, name, NAME_PROPERTY, noUpdate, value
-
Constructor Summary
Constructors Constructor Description PropertyChangerConfigurer(String key, String name, PropertyChangerConfigurer.Constraints constraints)
-
Method Summary
Modifier and Type Method Description Component
getControls()
GUI interface for setting the option in an editing windowPropertyChanger
getPropertyChanger()
String
getValueString()
void
setValue(String s)
Set the Object value from a Stringprotected void
updateControls()
protected void
updateValue()
Methods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getKey, getName, getValue, isFrozen, removePropertyChangeListener, setFrozen, setName, setValue
-
Field Details
-
PLAIN_TYPE
- See Also:
- Constant Field Values
-
INCREMENT_TYPE
- See Also:
- Constant Field Values
-
PROMPT_TYPE
- See Also:
- Constant Field Values
-
SELECT_TYPE
- See Also:
- Constant Field Values
-
PLAIN_CODE
protected static final char PLAIN_CODE- See Also:
- Constant Field Values
-
PROMPT_CODE
protected static final char PROMPT_CODE- See Also:
- Constant Field Values
-
ENUM_CODE
protected static final char ENUM_CODE- See Also:
- Constant Field Values
-
INCR_CODE
protected static final char INCR_CODE- See Also:
- Constant Field Values
-
typeToCode
-
typeToDescription
-
descriptionToCode
-
constraints
-
controls
-
typeConfig
-
valueConfig
-
promptConfig
-
incrConfig
-
validValuesConfig
-
-
Constructor Details
-
PropertyChangerConfigurer
public PropertyChangerConfigurer(String key, String name, PropertyChangerConfigurer.Constraints constraints)
-
-
Method Details
-
getControls
Description copied from class:Configurer
GUI interface for setting the option in an editing window- Specified by:
getControls
in classConfigurer
-
updateControls
protected void updateControls() -
updateValue
protected void updateValue() -
getValueString
- Specified by:
getValueString
in classConfigurer
- Returns:
- a String representation of the Object value
-
getPropertyChanger
-
setValue
Description copied from class:Configurer
Set the Object value from a String- Specified by:
setValue
in classConfigurer
-