java.lang.Object
com.virtuosotechnologies.lib.propertyset.UnmodifiablePropertySet
- All Implemented Interfaces:
- PropertySet
- public class UnmodifiablePropertySet
- extends java.lang.Object
- implements PropertySet
A PropertySet that wraps another PropertySet and doesn't allow modifications
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
propertyBroadcaster_
private com.virtuosotechnologies.lib.util.EventBroadcastHelper propertyBroadcaster_
parent_
private PropertySet parent_
listener_
private PropertySetListener listener_
UnmodifiablePropertySet
public UnmodifiablePropertySet(PropertySet parent)
- Constructor
getValue
public java.lang.Object getValue(com.virtuosotechnologies.lib.base.ConstrainedKey key)
- Get a property.
- Specified by:
getValue in interface PropertySet
getDefaultValue
public java.lang.Object getDefaultValue(com.virtuosotechnologies.lib.base.ConstrainedKey key)
- Get the default value for a property, or null if there is no default.
- Specified by:
getDefaultValue in interface PropertySet
putValue
public void putValue(com.virtuosotechnologies.lib.base.ConstrainedKey key,
java.lang.Object value)
- Set a property.
- Specified by:
putValue in interface PropertySet
resetValue
public void resetValue(com.virtuosotechnologies.lib.base.ConstrainedKey key)
- Reset a property to the default. Sets it to null if there is no default.
- Specified by:
resetValue in interface PropertySet
addPropertySetListener
public void addPropertySetListener(PropertySetListener listener)
- Add a PropertySetListener. Listeners should be added via weak
references.
- Specified by:
addPropertySetListener in interface PropertySet
removePropertySetListener
public void removePropertySetListener(PropertySetListener listener)
- Remove a PropertySetListener. Does nothing if the listener is
not already present.
- Specified by:
removePropertySetListener in interface PropertySet