S - type of the source objectE - type of the elements in the listpublic abstract class SimpleListProperty<S,E> extends ListProperty<S,E>
Subclasses must implement these methods:
IListProperty.getElementType()
doGetList(Object)
doSetList(Object, List, ListDiff)
adaptListener(ISimplePropertyListener)
In addition, we recommended overriding Object.toString() to return a
description suitable for debugging purposes.
| Constructor and Description |
|---|
SimpleListProperty() |
| Modifier and Type | Method and Description |
|---|---|
abstract INativePropertyListener<S> |
adaptListener(ISimplePropertyListener<S,ListDiff<E>> listener)
Returns a listener capable of adding or removing itself as a listener on
a source object using the the source's "native" listener API.
|
protected abstract 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 abstract void |
doSetList(S source,
List<E> list,
ListDiff<E> diff)
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
|
IObservableList<E> |
observe(Realm realm,
S source)
Returns an observable list observing this list property on the given
property source
|
void |
setList(S source,
List<E> list,
ListDiff<E> diff)
Updates the property on the source with the specified change.
|
getList, listFactory, listFactory, observe, observeDetail, setList, updateList, valuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetElementTypepublic IObservableList<E> observe(Realm realm, S source)
IListPropertyrealm - the observable's realmsource - the property sourceprotected abstract List<E> doGetList(S source)
ListPropertydoGetList in class ListProperty<S,E>source - the property sourcepublic final void setList(S source, List<E> list, ListDiff<E> diff)
source - the property sourcelist - the new listdiff - a diff describing the changeprotected abstract void doSetList(S source, List<E> list, ListDiff<E> diff)
source - the property sourcelist - the new listdiff - a diff describing the changeprotected 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 abstract INativePropertyListener<S> adaptListener(ISimplePropertyListener<S,ListDiff<E>> listener)
This method returns null if the source object has no listener APIs for this property.
listener - the property listener to receive events
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.