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 interfacePropertyChangerConfigurer.Constraints -
Field Summary
Fields Modifier and Type Field Description protected PropertyChangerConfigurer.Constraintsconstraintsprotected JPanelcontrolsprotected static Map<String,Character>descriptionToCodeprotected static charENUM_CODEprotected static charINCR_CODEprotected FormattedExpressionConfigurerincrConfigprotected static StringINCREMENT_TYPEprotected static charPLAIN_CODEprotected static StringPLAIN_TYPEprotected static charPROMPT_CODEprotected static StringPROMPT_TYPEprotected StringConfigurerpromptConfigprotected static StringSELECT_TYPEprotected StringEnumConfigurertypeConfigprotected static Map<Class<? extends PropertyChanger>,Character>typeToCodeprotected static Map<Class<? extends PropertyChanger>,String>typeToDescriptionprotected StringArrayConfigurervalidValuesConfigprotected FormattedExpressionConfigurervalueConfigFields 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 ComponentgetControls()GUI interface for setting the option in an editing windowPropertyChangergetPropertyChanger()StringgetValueString()voidsetValue(String s)Set the Object value from a Stringprotected voidupdateControls()protected voidupdateValue()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:ConfigurerGUI interface for setting the option in an editing window- Specified by:
getControlsin classConfigurer
-
updateControls
protected void updateControls() -
updateValue
protected void updateValue() -
getValueString
- Specified by:
getValueStringin classConfigurer- Returns:
- a String representation of the Object value
-
getPropertyChanger
-
setValue
Description copied from class:ConfigurerSet the Object value from a String- Specified by:
setValuein classConfigurer
-