Class MultiListProperty<S,E>
java.lang.Object
org.eclipse.core.databinding.property.list.ListProperty<S,E>
org.eclipse.core.databinding.property.list.MultiListProperty<S,E>
- Type Parameters:
S
- type of the source objectE
- type of the elements in the list
- All Implemented Interfaces:
IProperty
,IListProperty<S,
E>
A list property for observing multiple list properties in sequence in a
combined list.
- Since:
- 1.2
-
Constructor Summary
ConstructorDescriptionMultiListProperty
(IListProperty<S, E>... properties) Constructs a MultiListProperty for observing the specified list properties in sequenceMultiListProperty
(IListProperty<S, E>[] properties, Object elementType) Constructs a MultiListProperty for observing the specified list properties in sequence. -
Method Summary
Modifier and TypeMethodDescriptionReturns a List with the current contents of the source's list propertyprotected void
doUpdateList
(S source, ListDiff<E> diff) Updates the property on the source with the specified changeReturns the type of the elements in the collection ornull
if untypedReturns an observable list observing this list property on the given property sourceMethods inherited from class org.eclipse.core.databinding.property.list.ListProperty
doSetList, getList, listFactory, listFactory, observe, observeDetail, setList, updateList, values
-
Constructor Details
-
MultiListProperty
Constructs a MultiListProperty for observing the specified list properties in sequence- Parameters:
properties
- the list properties
-
MultiListProperty
Constructs a MultiListProperty for observing the specified list properties in sequence.- Parameters:
properties
- the list propertieselementType
- the element type of the MultiListProperty
-
-
Method Details
-
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
-
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- Parameters:
realm
- the observable's realmsource
- the property source- Returns:
- an observable list observing this list property on the given property source
-