dsto.dfc.databeans.views
Class MultiValuePropertyFilterSet

java.lang.Object
  extended by dsto.dfc.databeans.AbstractDataObject
      extended by dsto.dfc.databeans.AbstractDataBean
          extended by dsto.dfc.databeans.DataBean
              extended by dsto.dfc.databeans.views.AbstractPropertyFilterSet
                  extended by dsto.dfc.databeans.views.MultiValuePropertyFilterSet
All Implemented Interfaces:
IDataBean, IDataObject, IDataObjectChildListener, PropertyListener, Disposable, Cloneable, EventListener

public class MultiValuePropertyFilterSet
extends AbstractPropertyFilterSet
implements PropertyListener, Disposable

A property filter that that works when property values are themselves IDataObject's (typically a set of some kind). For example, if the value of the "tags" property for items in the source set is a SetDataObject containing string tags, this property set could be used to generate filters for all distinct values of all the tags used in the source objects.

Author:
Matthew Phillips

Field Summary
 
Fields inherited from class dsto.dfc.databeans.views.AbstractPropertyFilterSet
counts, property, source
 
Fields inherited from class dsto.dfc.databeans.DataBean
alwaysTransient, transientProperties, typeInfo, values
 
Fields inherited from class dsto.dfc.databeans.AbstractDataObject
listeners
 
Fields inherited from interface dsto.dfc.databeans.IDataObject
OVERRIDE, PERSISTENT, PERSISTENT_OVERRIDE, TRANSIENT, TRANSIENT_OVERRIDE
 
Constructor Summary
MultiValuePropertyFilterSet(IDataObject source, String property)
           
 
Method Summary
protected  void addFilterFor(Object value)
           
protected  void addFiltersFor(Object value)
          Add filters for a given property value.
protected  void removeFiltersFor(Object value)
          Remove filters for a given property value.
protected  void updateFilters(PropertyPath path, Object oldValue, Object newValue)
          Update filters for a given property value when the value itself has changed (i.e.
 
Methods inherited from class dsto.dfc.databeans.views.AbstractPropertyFilterSet
addFilter, addItem, dispose, filterFor, hasFilterFor, propertyValueChanged, removeFilter, removeItem
 
Methods inherited from class dsto.dfc.databeans.DataBean
childPropertyChanged, getPropertyNames, getTypeInfo, getValue, isTransient, propertyIterator, setAlwaysTransient, setTypeInfo, setValue, shallowClone
 
Methods inherited from class dsto.dfc.databeans.AbstractDataBean
setValue, setValue, setValue, setValue, setValue, setValue, setValue
 
Methods inherited from class dsto.dfc.databeans.AbstractDataObject
addFirstPropertyListener, addPropertyListener, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface dsto.dfc.databeans.PropertyListener
propertyValueChanged
 
Methods inherited from interface dsto.dfc.util.Disposable
dispose
 
Methods inherited from interface dsto.dfc.databeans.IDataBean
getBeanValue, getBooleanValue, getCharValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getObjectValue, getStringValue, setValue, setValue, setValue, setValue, setValue, setValue
 
Methods inherited from interface dsto.dfc.databeans.IDataObject
addPropertyListener, getPropertyListeners, removePropertyListener, setValue
 

Constructor Detail

MultiValuePropertyFilterSet

public MultiValuePropertyFilterSet(IDataObject source,
                                   String property)
Method Detail

addFiltersFor

protected void addFiltersFor(Object value)
Description copied from class: AbstractPropertyFilterSet
Add filters for a given property value.

Specified by:
addFiltersFor in class AbstractPropertyFilterSet

addFilterFor

protected void addFilterFor(Object value)

removeFiltersFor

protected void removeFiltersFor(Object value)
Description copied from class: AbstractPropertyFilterSet
Remove filters for a given property value.

Specified by:
removeFiltersFor in class AbstractPropertyFilterSet

updateFilters

protected void updateFilters(PropertyPath path,
                             Object oldValue,
                             Object newValue)
Description copied from class: AbstractPropertyFilterSet
Update filters for a given property value when the value itself has changed (i.e. generated a property change event).

Specified by:
updateFilters in class AbstractPropertyFilterSet
Parameters:
path - The propery path that changed.
oldValue - The old value at path.
newValue - The new value at path.


Copyright © 2008 Commonwealth of Australia