Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.virtuosotechnologies.lib.propertyset
Class UnmodifiablePropertySet  view UnmodifiablePropertySet download UnmodifiablePropertySet.java

java.lang.Object
  extended bycom.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


Field Summary
private  PropertySetListener listener_
           
private  PropertySet parent_
           
private  com.virtuosotechnologies.lib.util.EventBroadcastHelper propertyBroadcaster_
           
 
Constructor Summary
UnmodifiablePropertySet(PropertySet parent)
          Constructor
 
Method Summary
 void addPropertySetListener(PropertySetListener listener)
          Add a PropertySetListener.
 java.lang.Object getDefaultValue(com.virtuosotechnologies.lib.base.ConstrainedKey key)
          Get the default value for a property, or null if there is no default.
 java.lang.Object getValue(com.virtuosotechnologies.lib.base.ConstrainedKey key)
          Get a property.
 void putValue(com.virtuosotechnologies.lib.base.ConstrainedKey key, java.lang.Object value)
          Set a property.
 void removePropertySetListener(PropertySetListener listener)
          Remove a PropertySetListener.
 void resetValue(com.virtuosotechnologies.lib.base.ConstrainedKey key)
          Reset a property to the default.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyBroadcaster_

private com.virtuosotechnologies.lib.util.EventBroadcastHelper propertyBroadcaster_

parent_

private PropertySet parent_

listener_

private PropertySetListener listener_
Constructor Detail

UnmodifiablePropertySet

public UnmodifiablePropertySet(PropertySet parent)
Constructor

Method Detail

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