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