Package VASSAL.build.module.properties
Class MutableProperty.Impl
java.lang.Object
VASSAL.build.module.properties.MutableProperty.Impl
- All Implemented Interfaces:
MutableProperty
- Enclosing interface:
- MutableProperty
public static class MutableProperty.Impl extends Object implements MutableProperty
Simple implementation of
MutableProperty
Support dynamic changing of the property name, provided that
the addTo(MutablePropertiesContainer)
method is used to register this property with a properties
container.- Author:
- rkinney
-
Nested Class Summary
Nested classes/interfaces inherited from interface VASSAL.build.module.properties.MutableProperty
MutableProperty.Impl, MutableProperty.Util
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
addMutablePropertyChangeListener(PropertyChangeListener l)
void
addTo(MutablePropertiesContainer c)
static List<MutableProperty.Impl>
getAllProperties()
protected Command
getChangeCommand(String oldValue, String newValue)
String
getName()
MutablePropertiesContainer
getParent()
String
getPropertyValue()
void
removeFromContainer()
void
removeMutablePropertyChangeListener(PropertyChangeListener l)
void
setPropertyName(String name)
Command
setPropertyValue(String newValue)
-
Constructor Details
-
Impl
- Parameters:
source
- will be the source of anyPropertyChangeEvent
fired by this object
-
-
Method Details
-
getAllProperties
-
addMutablePropertyChangeListener
- Specified by:
addMutablePropertyChangeListener
in interfaceMutableProperty
-
addTo
-
setPropertyName
-
removeFromContainer
public void removeFromContainer() -
getPropertyValue
- Specified by:
getPropertyValue
in interfaceMutableProperty
-
getName
-
getParent
- Specified by:
getParent
in interfaceMutableProperty
-
removeMutablePropertyChangeListener
- Specified by:
removeMutablePropertyChangeListener
in interfaceMutableProperty
-
getChangeCommand
-
setPropertyValue
- Specified by:
setPropertyValue
in interfaceMutableProperty
-