S
- type of the source objectE
- type of the elements in the setpublic abstract class DelegatingSetProperty<S,E> extends SetProperty<S,E>
Modifier | Constructor and Description |
---|---|
protected |
DelegatingSetProperty() |
protected |
DelegatingSetProperty(Object elementType) |
Modifier and Type | Method and Description |
---|---|
protected abstract ISetProperty<S,E> |
doGetDelegate(S source)
Returns the property to delegate to for the specified source object.
|
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.
|
protected ISetProperty<S,E> |
getDelegate(S source)
Returns the property to delegate to for the specified source object.
|
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
|
IObservableSet<E> |
observe(S source)
Returns an observable set observing this set property on the given
property source
|
getSet, observeDetail, setFactory, setFactory, setSet, updateSet, values
protected DelegatingSetProperty()
protected DelegatingSetProperty(Object elementType)
protected final ISetProperty<S,E> getDelegate(S source)
source
- the property source (may be null)protected abstract ISetProperty<S,E> doGetDelegate(S source)
source
- the property sourcepublic 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(S source)
ISetProperty
observe
in interface ISetProperty<S,E>
observe
in class SetProperty<S,E>
source
- the property sourcepublic 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.