public abstract class DelegatingSetProperty extends SetProperty
Modifier | Constructor and Description |
---|---|
protected |
DelegatingSetProperty() |
protected |
DelegatingSetProperty(Object elementType) |
Modifier and Type | Method and Description |
---|---|
protected abstract ISetProperty |
doGetDelegate(Object source)
Returns the property to delegate to for the specified source object.
|
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.
|
protected ISetProperty |
getDelegate(Object 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 |
observe(Object source)
Returns an observable set observing this set property on the given
property source
|
IObservableSet |
observe(Realm realm,
Object 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 getDelegate(Object source)
source
- the property source (may be null)protected abstract ISetProperty doGetDelegate(Object source)
source
- the property sourcepublic Object getElementType()
ISetProperty
null
if untypednull
if untypedprotected Set doGetSet(Object source)
SetProperty
doGetSet
in class SetProperty
source
- the property sourceprotected void doSetSet(Object source, Set set)
SetProperty
doSetSet
in class SetProperty
source
- the property sourceset
- the new setprotected void doUpdateSet(Object source, SetDiff diff)
SetProperty
doUpdateSet
in class SetProperty
source
- the property sourcediff
- a diff describing the changepublic IObservableSet observe(Object source)
ISetProperty
observe
in interface ISetProperty
observe
in class SetProperty
source
- the property sourcepublic IObservableSet observe(Realm realm, Object source)
ISetProperty
realm
- the observable's realmsource
- the property source
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.