Eclipse Platform
Release 3.6

org.eclipse.core.databinding.property.list
Class MultiListProperty

java.lang.Object
  extended by org.eclipse.core.databinding.property.list.ListProperty
      extended by org.eclipse.core.databinding.property.list.MultiListProperty
All Implemented Interfaces:
IProperty, IListProperty

public class MultiListProperty
extends ListProperty

A list property for observing multiple list properties in sequence in a combined list.

Since:
1.2

Constructor Summary
MultiListProperty(IListProperty[] properties)
          Constructs a MultiListProperty for observing the specified list properties in sequence
MultiListProperty(IListProperty[] properties, Object elementType)
          Constructs a MultiListProperty for observing the specified list properties in sequence.
 
Method Summary
protected  List doGetList(Object source)
          Returns a List with the current contents of the source's list property
protected  void doUpdateList(Object source, ListDiff diff)
          Updates the property on the source with the specified change
 Object getElementType()
          Returns the type of the elements in the collection or null if untyped
 IObservableList observe(Realm realm, Object source)
          Returns an observable list observing this list property on the given property source
 
Methods inherited from class org.eclipse.core.databinding.property.list.ListProperty
doSetList, getList, listFactory, listFactory, observe, observeDetail, setList, updateList, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiListProperty

public MultiListProperty(IListProperty[] properties)
Constructs a MultiListProperty for observing the specified list properties in sequence

Parameters:
properties - the list properties

MultiListProperty

public MultiListProperty(IListProperty[] properties,
                         Object elementType)
Constructs a MultiListProperty for observing the specified list properties in sequence.

Parameters:
properties - the list properties
elementType - the element type of the MultiListProperty
Method Detail

getElementType

public Object getElementType()
Description copied from interface: IListProperty
Returns the type of the elements in the collection or null if untyped

Returns:
the type of the elements in the collection or null if untyped

doGetList

protected List doGetList(Object source)
Description copied from class: ListProperty
Returns a List with the current contents of the source's list property

Overrides:
doGetList in class ListProperty
Parameters:
source - the property source
Returns:
a List with the current contents of the source's list property

doUpdateList

protected void doUpdateList(Object source,
                            ListDiff diff)
Description copied from class: ListProperty
Updates the property on the source with the specified change

Overrides:
doUpdateList in class ListProperty
Parameters:
source - the property source
diff - a diff describing the change

observe

public IObservableList observe(Realm realm,
                               Object source)
Description copied from interface: IListProperty
Returns an observable list observing this list property on the given property source

Parameters:
realm - the observable's realm
source - the property source
Returns:
an observable list observing this list property on the given property source

Eclipse Platform
Release 3.6

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.