Eclipse Platform
Release 3.6

org.eclipse.core.databinding.property.set
Class UnionSetProperty

java.lang.Object
  extended by org.eclipse.core.databinding.property.set.SetProperty
      extended by org.eclipse.core.databinding.property.set.UnionSetProperty
All Implemented Interfaces:
IProperty, ISetProperty

public class UnionSetProperty
extends SetProperty

A set property for observing the union of multiple set properties a combined set.

Since:
1.2

Constructor Summary
UnionSetProperty(ISetProperty[] properties)
           
UnionSetProperty(ISetProperty[] properties, Object elementType)
           
 
Method Summary
protected  Set doGetSet(Object source)
          Returns a Set with the current contents of the source's set property
protected  void doSetSet(Object source, Set set)
          Updates the property on the source with the specified change.
protected  void doUpdateSet(Object source, SetDiff diff)
          Updates the property on the source with the specified change.
 Object getElementType()
          Returns the type of the elements in the collection or null if untyped
 IObservableSet observe(Realm realm, Object source)
          Returns an observable set observing this set property on the given property source
 
Methods inherited from class org.eclipse.core.databinding.property.set.SetProperty
getSet, observe, observeDetail, setFactory, setFactory, setSet, updateSet, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnionSetProperty

public UnionSetProperty(ISetProperty[] properties)
Parameters:
properties -

UnionSetProperty

public UnionSetProperty(ISetProperty[] properties,
                        Object elementType)
Parameters:
properties -
elementType -
Method Detail

getElementType

public Object getElementType()
Description copied from interface: ISetProperty
Returns the type of the elements in the collection or null if untyped

Returns:
the type of the elements in the collection or null if untyped

doGetSet

protected Set doGetSet(Object source)
Description copied from class: SetProperty
Returns a Set with the current contents of the source's set property

Overrides:
doGetSet in class SetProperty
Parameters:
source - the property source
Returns:
a Set with the current contents of the source's set property

doSetSet

protected void doSetSet(Object source,
                        Set set)
Description copied from class: SetProperty
Updates the property on the source with the specified change.

Overrides:
doSetSet in class SetProperty
Parameters:
source - the property source
set - the new set

doUpdateSet

protected void doUpdateSet(Object source,
                           SetDiff diff)
Description copied from class: SetProperty
Updates the property on the source with the specified change.

Overrides:
doUpdateSet in class SetProperty
Parameters:
source - the property source
diff - a diff describing the change

observe

public IObservableSet observe(Realm realm,
                              Object source)
Description copied from interface: ISetProperty
Returns an observable set observing this set property on the given property source

Parameters:
realm - the observable's realm
source - the property source
Returns:
an observable set observing this set property on the given property source

Eclipse Platform
Release 3.6

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.