dsto.dfc.databeans
Class SupersetDataObject
java.lang.Object
dsto.dfc.databeans.AbstractDataObject
dsto.dfc.databeans.DataObject
dsto.dfc.databeans.SupersetDataObject
- All Implemented Interfaces:
- IDataObject, IDataObjectChildListener, Serializable, Cloneable
public class SupersetDataObject
- extends DataObject
An object that merges the properties of a set of sub-object's into
a single object. As properties change on sub-object's the set
updates to match.
- Author:
- Matthew Phillips
- See Also:
- Serialized Form
Method Summary |
void |
add(IDataObject object)
Add a sub object to the set. |
protected void |
add(Object property,
Object value)
|
void |
dispose()
This object listens to all sub-object's, so make sure to call
this if this object has a more limited scope. |
void |
remove(IDataObject object)
Remove an object from the superset. |
protected void |
remove(Object property,
Object value)
|
Methods inherited from class dsto.dfc.databeans.AbstractDataObject |
addFirstPropertyListener, addPropertyListener, childPropertyChanged, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, getBeanValue, getBooleanValue, getBooleanValue, getCharValue, getCharValue, getDoubleValue, getDoubleValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getObjectValue, getPropertyListeners, getShortValue, getStringValue, registerValue, removePropertyListener, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, unregisterValue |
SupersetDataObject
public SupersetDataObject()
dispose
public void dispose()
- This object listens to all sub-object's, so make sure to call
this if this object has a more limited scope.
add
public void add(IDataObject object)
- Add a sub object to the set. Properties of the sub object will
appear in the super set at this point, except for proeperties
that are already defined.
- Parameters:
object
- The object to add. May be added more than once
(with no effect on subsequent adds).
remove
public void remove(IDataObject object)
- Remove an object from the superset. All properties of the sub
object disappear from the superset at this point, except for any
overlapping properties in other sub objects that may have been
hidden by this one.
NOTE: this may be significantly slower than add ()
add
protected void add(Object property,
Object value)
remove
protected void remove(Object property,
Object value)
Copyright © 2008 Commonwealth of Australia