public abstract class DelegatingListProperty extends ListProperty
Modifier | Constructor and Description |
---|---|
protected |
DelegatingListProperty() |
protected |
DelegatingListProperty(Object elementType) |
Modifier and Type | Method and Description |
---|---|
protected abstract IListProperty |
doGetDelegate(Object source)
Returns the property to delegate to for the specified source object.
|
protected List |
doGetList(Object source)
Returns a List with the current contents of the source's list property
|
protected void |
doSetList(Object source,
List list)
Updates the property on the source with the specified change.
|
protected void |
doUpdateList(Object source,
ListDiff diff)
Updates the property on the source with the specified change
|
IListProperty |
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 |
IObservableList |
observe(Object source)
Returns an observable list observing this list property on the given
property source
|
IObservableList |
observe(Realm realm,
Object source)
Returns an observable list observing this list property on the given
property source
|
getList, listFactory, listFactory, observeDetail, setList, updateList, values
protected DelegatingListProperty()
protected DelegatingListProperty(Object elementType)
public final IListProperty getDelegate(Object source)
source
- the property source (may be null)protected abstract IListProperty doGetDelegate(Object source)
source
- the property sourcepublic Object getElementType()
IListProperty
null
if untypednull
if untypedprotected List doGetList(Object source)
ListProperty
doGetList
in class ListProperty
source
- the property sourceprotected void doSetList(Object source, List list)
ListProperty
doSetList
in class ListProperty
source
- the property sourcelist
- the new listprotected void doUpdateList(Object source, ListDiff diff)
ListProperty
doUpdateList
in class ListProperty
source
- the property sourcediff
- a diff describing the changepublic IObservableList observe(Object source)
IListProperty
observe
in interface IListProperty
observe
in class ListProperty
source
- the property sourcepublic IObservableList observe(Realm realm, Object source)
IListProperty
realm
- the observable's realmsource
- the property source
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.