Package VASSAL.build.module.properties
Interface MutablePropertiesContainer
- All Known Implementing Classes:
BasicModule,GameModule,GlobalProperties,Map,MutablePropertiesContainer.Impl,PlayerHand,PrivateMap,ScenarioPropertiesOptionTab,WidgetMap,Zone
public interface MutablePropertiesContainer
A component that can contain mutable (updatable) properties
- Author:
- rkinney
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classSimple implementation ofMutablePropertiesContainer -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMutableProperty(String key, MutableProperty p) Add a property under the given keyReturn a unique Id for the containergetMutableProperty(String propertyName) Find a GlobalProperty object with the given nameRemove the property with the given key
-
Method Details
-
addMutableProperty
Add a property under the given key- Parameters:
key- keyp- property
-
removeMutableProperty
Remove the property with the given key- Parameters:
key- key
-
getMutableProperty
Find a GlobalProperty object with the given name -
getMutablePropertiesContainerId
String getMutablePropertiesContainerId()Return a unique Id for the container
-