Class DelegatingListProperty<S,E>
java.lang.Object
org.eclipse.core.databinding.property.list.ListProperty<S,E>
org.eclipse.core.databinding.property.list.DelegatingListProperty<S,E>
- Type Parameters:
S
- type of the source objectE
- type of the elements in the list
- All Implemented Interfaces:
IProperty
,IListProperty<S,
E>
- Since:
- 1.2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract IListProperty<S,
E> doGetDelegate
(S source) Returns the property to delegate to for the specified source object.Returns a List with the current contents of the source's list propertyprotected void
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 changefinal IListProperty<S,
E> getDelegate
(S source) Returns the property to delegate to for the specified source object.Returns the type of the elements in the collection ornull
if untypedReturns an observable list observing this list property on the given property sourceReturns an observable list observing this list property on the given property sourceMethods inherited from class org.eclipse.core.databinding.property.list.ListProperty
getList, listFactory, listFactory, observeDetail, setList, updateList, values
-
Constructor Details
-
DelegatingListProperty
protected DelegatingListProperty() -
DelegatingListProperty
-
-
Method Details
-
getDelegate
Returns the property to delegate to for the specified source object. Repeated calls to this method with the same source object returns the same delegate instance.- Parameters:
source
- the property source (may be null)- Returns:
- the property to delegate to for the specified source object.
-
doGetDelegate
Returns the property to delegate to for the specified source object. Implementers must ensure that repeated calls to this method with the same source object returns the same delegate instance.- Parameters:
source
- the property source- Returns:
- the property to delegate to for the specified source object.
-
getElementType
Description copied from interface:IListProperty
Returns the type of the elements in the collection ornull
if untyped- Returns:
- the type of the elements in the collection or
null
if untyped
-
doGetList
Description copied from class:ListProperty
Returns a List with the current contents of the source's list property- Overrides:
doGetList
in classListProperty<S,
E> - Parameters:
source
- the property source- Returns:
- a List with the current contents of the source's list property
-
doSetList
Description copied from class:ListProperty
Updates the property on the source with the specified change.- Overrides:
doSetList
in classListProperty<S,
E> - Parameters:
source
- the property sourcelist
- the new list
-
doUpdateList
Description copied from class:ListProperty
Updates the property on the source with the specified change- Overrides:
doUpdateList
in classListProperty<S,
E> - Parameters:
source
- the property sourcediff
- a diff describing the change
-
observe
Description copied from interface:IListProperty
Returns an observable list observing this list property on the given property source- Specified by:
observe
in interfaceIListProperty<S,
E> - Overrides:
observe
in classListProperty<S,
E> - Parameters:
source
- the property source- Returns:
- an observable list observing this list property on the given property source
-
observe
Description copied from interface:IListProperty
Returns an observable list observing this list property on the given property source- Parameters:
realm
- the observable's realmsource
- the property source- Returns:
- an observable list observing this list property on the given property source
-