Package VASSAL.build.module.properties
Interface MutablePropertiesContainer
- All Known Implementing Classes:
BasicModule,GameModule,GlobalProperties,Map,MutablePropertiesContainer.Impl,PlayerHand,PrivateMap,WidgetMap,Zone
public interface MutablePropertiesContainer
A component that can contain mutable (updateable) properties
- Author:
- rkinney
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMutablePropertiesContainer.ImplSimple implementation ofMutablePropertiesContainer -
Method Summary
Modifier and Type Method Description voidaddMutableProperty(String key, MutableProperty p)Add a property under the given keyStringgetMutablePropertiesContainerId()Return a unique Id for the containerMutablePropertygetMutableProperty(String propertyName)Find a GlobalProperty object with the given nameMutablePropertyremoveMutableProperty(String key)Remove the property with the given key
-
Method Details
-
addMutableProperty
Add a property under the given key- Parameters:
key-p-
-
removeMutableProperty
Remove the property with the given key- Parameters:
key-
-
getMutableProperty
Find a GlobalProperty object with the given name -
getMutablePropertiesContainerId
String getMutablePropertiesContainerId()Return a unique Id for the container
-