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 voidaddMutablePropertyChangeListener(PropertyChangeListener l)voidaddTo(MutablePropertiesContainer c)static List<MutableProperty.Impl>getAllProperties()protected CommandgetChangeCommand(String oldValue, String newValue)StringgetName()MutablePropertiesContainergetParent()StringgetPropertyValue()voidremoveFromContainer()voidremoveMutablePropertyChangeListener(PropertyChangeListener l)voidsetPropertyName(String name)CommandsetPropertyValue(String newValue)
-
Constructor Details
-
Impl
- Parameters:
source- will be the source of anyPropertyChangeEventfired by this object
-
-
Method Details
-
getAllProperties
-
addMutablePropertyChangeListener
- Specified by:
addMutablePropertyChangeListenerin interfaceMutableProperty
-
addTo
-
setPropertyName
-
removeFromContainer
public void removeFromContainer() -
getPropertyValue
- Specified by:
getPropertyValuein interfaceMutableProperty
-
getName
-
getParent
- Specified by:
getParentin interfaceMutableProperty
-
removeMutablePropertyChangeListener
- Specified by:
removeMutablePropertyChangeListenerin interfaceMutableProperty
-
getChangeCommand
-
setPropertyValue
- Specified by:
setPropertyValuein interfaceMutableProperty
-