Package VASSAL.build.module.properties
Class PropertyChangerConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.build.module.properties.PropertyChangerConfigurer
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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JPanelprotected JPanelprotected PropertyChangerConfigurer.Constraintsprotected JPanelprotected static charprotected static charprotected FormattedExpressionConfigurerprotected static Stringprotected JLabelprotected static charprotected static Stringprotected static charprotected static Stringprotected StringConfigurerprotected JLabelprotected static Stringprotected TranslatingStringEnumConfigurerprotected JLabelprotected static Map<Class<? extends PropertyChanger>,Character>protected static Map<Class<? extends PropertyChanger>,String>protected StringArrayConfigurerprotected FormattedExpressionConfigurerprotected JLabelFields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, hint, key, LIST_ENTRY_HIGHLIGHT_COLOR, name, NAME_PROPERTY, noUpdate, value -
Constructor Summary
ConstructorsConstructorDescriptionPropertyChangerConfigurer(String key, String name, PropertyChangerConfigurer.Constraints constraints) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFocusListener(FocusListener listener)Add a FocusListener to the Swing Components that make up this Configurer.GUI interface for setting the option in an editing windowbooleanvoidremoveFocusListener(FocusListener listener)Remove a FocusListener from the Swing Components that make up this Configurer.voidsetHighlighted(boolean highlighted)Set the highlighted status of this configurer.voidSet the Object value from a Stringprotected voidprotected voidMethods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getHint, getKey, getName, getScreenSize, getValue, isFrozen, isHighlighted, removePropertyChangeListener, repack, repack, requestFocus, setFrozen, setHint, setHintKey, setLabelVisibile, 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
-
typeLabel
-
typeConfig
-
valueLabel
-
valueConfig
-
promptLabel
-
promptConfig
-
incrLabel
-
incrConfig
-
validValuesConfig
-
changerLabelControls
-
changerControls
-
-
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
-
getTypeLabel
-
getTypeControls
-
getChangerLabel
-
getChangerControls
-
getValuesControls
-
updateControls
protected void updateControls() -
updateValue
protected void updateValue() -
getValueString
- Specified by:
getValueStringin classConfigurer- Returns:
- a String representation of the Object value
-
isEnumType
public boolean isEnumType() -
getPropertyChanger
-
setValue
Description copied from class:ConfigurerSet the Object value from a String- Specified by:
setValuein classConfigurer
-
setHighlighted
public void setHighlighted(boolean highlighted)Description copied from class:ConfigurerSet the highlighted status of this configurer. It is up to individual Configurers to over-ride this method and implement a suitable visual highlighting scheme Note: Cannot make this abstract as it will break custom code.- Overrides:
setHighlightedin classConfigurer- Parameters:
highlighted- New Highlighted status
-
addFocusListener
Description copied from class:ConfigurerAdd a FocusListener to the Swing Components that make up this Configurer.- Overrides:
addFocusListenerin classConfigurer- Parameters:
listener- Focus Listener
-
removeFocusListener
Description copied from class:ConfigurerRemove a FocusListener from the Swing Components that make up this Configurer.- Overrides:
removeFocusListenerin classConfigurer- Parameters:
listener- Focus Listener
-