|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.virtuosotechnologies.lib.container.PseudoModifiablePropertySet
A PropertySet that implements methods of ModifiablePropertySet without implementing the ModifiablePropertySet interface. This is useful for implementations that don't want to export objects that appear to be modifiable.
This implementation is fully synchronized and thread-safe. However, note that it may be used in larger implementations that are not thread-safe.
Constructor Summary | |
PseudoModifiablePropertySet()
Constructor |
|
PseudoModifiablePropertySet(PropertySet parent)
Constructor with parent. |
Method Summary | |
void |
addPropertySetListener(PropertySetListener listener)
Add a PropertySetListener. |
protected void |
firePropertySetEvent(ConstrainedKey key,
Object oldValue,
Object newValue,
boolean isSourceOriginal)
Fires a property set event |
Object |
getDefaultValue(ConstrainedKey key)
Get the default value for a property, or null if there is no default. |
Object |
getValue(ConstrainedKey key)
Get a property. |
void |
putValue(ConstrainedKey key,
Object value)
Set a property. |
void |
removePropertySetListener(PropertySetListener listener)
Remove a PropertySetListener. |
void |
resetValue(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 |
Constructor Detail |
public PseudoModifiablePropertySet()
public PseudoModifiablePropertySet(PropertySet parent)
parent
- parent PropertySet providing default valuesMethod Detail |
public Object getValue(ConstrainedKey key)
getValue
in interface PropertySet
key
- key object for the property
public Object getDefaultValue(ConstrainedKey key)
getDefaultValue
in interface PropertySet
key
- key object for the property
public void putValue(ConstrainedKey key, Object value)
key
- key object for the property.value
- new value for the property.public void resetValue(ConstrainedKey key)
key
- key object for the propertypublic final void addPropertySetListener(PropertySetListener listener)
addPropertySetListener
in interface PropertySet
listener
- new listenerpublic final void removePropertySetListener(PropertySetListener listener)
removePropertySetListener
in interface PropertySet
listener
- listener to removeprotected final void firePropertySetEvent(ConstrainedKey key, Object oldValue, Object newValue, boolean isSourceOriginal)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |