|
|||||||||
| Home >> All >> com >> virtuosotechnologies >> lib >> [ propertyset overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.virtuosotechnologies.lib.propertyset
Class BasicPropertySet

java.lang.Objectcom.virtuosotechnologies.lib.propertyset.BasicPropertySet
- All Implemented Interfaces:
- PropertySet
- public class BasicPropertySet
- extends java.lang.Object
- implements PropertySet
- extends java.lang.Object
A basic set of typed properties. Allows parenting of sets, so that sets can have other set define their default values.
| Field Summary | |
private PropertySetListener |
listener_
|
private PropertySet |
parent_
|
private java.util.Map |
properties_
|
private com.virtuosotechnologies.lib.util.EventBroadcastHelper |
propertyBroadcaster_
|
| Constructor Summary | |
BasicPropertySet()
Constructor |
|
BasicPropertySet(PropertySet parent)
Constructor |
|
| Method Summary | |
void |
addPropertySetListener(PropertySetListener listener)
Add a PropertySetListener. |
protected void |
firePropertySetEvent(com.virtuosotechnologies.lib.base.ConstrainedKey key,
java.lang.Object oldValue,
java.lang.Object newValue,
boolean isSourceOriginal)
Fires a property set event |
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_
properties_
private java.util.Map properties_
parent_
private PropertySet parent_
listener_
private PropertySetListener listener_
| Constructor Detail |
BasicPropertySet
public BasicPropertySet()
- Constructor
BasicPropertySet
public BasicPropertySet(PropertySet parent)
- Constructor
| Method Detail |
getValue
public java.lang.Object getValue(com.virtuosotechnologies.lib.base.ConstrainedKey key)
- Get a property.
- Specified by:
getValuein interfacePropertySet
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:
getDefaultValuein interfacePropertySet
putValue
public void putValue(com.virtuosotechnologies.lib.base.ConstrainedKey key, java.lang.Object value)
- Set a property.
- Specified by:
putValuein interfacePropertySet
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:
resetValuein interfacePropertySet
addPropertySetListener
public void addPropertySetListener(PropertySetListener listener)
- Add a PropertySetListener. Listeners should be added via weak
references.
- Specified by:
addPropertySetListenerin interfacePropertySet
removePropertySetListener
public void removePropertySetListener(PropertySetListener listener)
- Remove a PropertySetListener. Does nothing if the listener is
not already present.
- Specified by:
removePropertySetListenerin interfacePropertySet
firePropertySetEvent
protected void firePropertySetEvent(com.virtuosotechnologies.lib.base.ConstrainedKey key, java.lang.Object oldValue, java.lang.Object newValue, boolean isSourceOriginal)
- Fires a property set event
|
|||||||||
| Home >> All >> com >> virtuosotechnologies >> lib >> [ propertyset overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.virtuosotechnologies.lib.propertyset.BasicPropertySet