com.virtuosotechnologies.lib.container
Interface ModifiablePropertySet

All Superinterfaces:
PropertySet
All Known Subinterfaces:
CommandNode
All Known Implementing Classes:
AbstractCommandNode, BasicModifiablePropertySet

public interface ModifiablePropertySet
extends PropertySet

A PropertySet with mutation methods. Most applications can use the BasicModifiablePropertySet implementation.

This interface itself does not specify thread-safety semantics. The particular implementation or use in a larger interface should specify this. For example, standalone PropertySets may be fully synchronized and thread-safe. PropertySets related to AWT or Swing objects may require that all interaction be done on the AWT event thread.


Method Summary
 void putValue(ConstrainedKey key, Object value)
          Set a property.
 void resetValue(ConstrainedKey key)
          Reset a property to the default.
 
Methods inherited from interface com.virtuosotechnologies.lib.container.PropertySet
addPropertySetListener, getDefaultValue, getValue, removePropertySetListener
 

Method Detail

putValue

public void putValue(ConstrainedKey key,
                     Object value)
Set a property.

Parameters:
key - key object for the property.
value - new value for the property.

resetValue

public void resetValue(ConstrainedKey key)
Reset a property to the default. Sets it to null if there is no default.

Parameters:
key - key object for the property