S
- type of the source objectE
- type of the elements in the setpublic class UnionSetProperty<S,E> extends SetProperty<S,E>
Constructor and Description |
---|
UnionSetProperty(ISetProperty<S,E>[] properties) |
UnionSetProperty(ISetProperty<S,E>[] properties,
Object elementType) |
Modifier and Type | Method and Description |
---|---|
protected Set<E> |
doGetSet(S source)
Returns a Set with the current contents of the source's set property
|
protected void |
doSetSet(S source,
Set<E> set)
Updates the property on the source with the specified change.
|
protected void |
doUpdateSet(S source,
SetDiff<E> 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<E> |
observe(Realm realm,
S source)
Returns an observable set observing this set property on the given
property source
|
getSet, observe, observeDetail, setFactory, setFactory, setSet, updateSet, values
public UnionSetProperty(ISetProperty<S,E>[] properties)
properties
- public UnionSetProperty(ISetProperty<S,E>[] properties, Object elementType)
properties
- elementType
- public Object getElementType()
ISetProperty
null
if untypednull
if untypedprotected Set<E> doGetSet(S source)
SetProperty
doGetSet
in class SetProperty<S,E>
source
- the property sourceprotected void doSetSet(S source, Set<E> set)
SetProperty
doSetSet
in class SetProperty<S,E>
source
- the property sourceset
- the new setprotected void doUpdateSet(S source, SetDiff<E> diff)
SetProperty
doUpdateSet
in class SetProperty<S,E>
source
- the property sourcediff
- a diff describing the changepublic IObservableSet<E> observe(Realm realm, S source)
ISetProperty
realm
- the observable's realmsource
- the property source
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.