Eclipse Platform
Release 3.5

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

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

public abstract class ListProperty
extends Object
implements IListProperty

Abstract implementation of IListProperty.

Since:
1.2

Constructor Summary
ListProperty()
           
 
Method Summary
 IObservableFactory listFactory()
          Returns a factory for creating observable lists tracking this property of a particular property source.
 IObservableFactory listFactory(Realm realm)
          Returns a factory for creating observable lists in the given realm, tracking this property of a particular property source.
 IObservableList observe(Object source)
          Returns an observable list observing this list property on the given property source
 IObservableList observeDetail(IObservableValue master)
          Returns an observable list on the master observable's realm which tracks this property of the current value of master.
 IListProperty values(IValueProperty detailValue)
          Returns the nested combination of this property and the specified detail value property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.databinding.property.list.IListProperty
getElementType, observe
 

Constructor Detail

ListProperty

public ListProperty()
Method Detail

observe

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

Specified by:
observe in interface IListProperty
Parameters:
source - the property source
Returns:
an observable list observing this list property on the given property source

listFactory

public IObservableFactory listFactory()
Description copied from interface: IListProperty
Returns a factory for creating observable lists tracking this property of a particular property source.

Specified by:
listFactory in interface IListProperty
Returns:
a factory for creating observable lists tracking this property of a particular property source.

listFactory

public IObservableFactory listFactory(Realm realm)
Description copied from interface: IListProperty
Returns a factory for creating observable lists in the given realm, tracking this property of a particular property source.

Specified by:
listFactory in interface IListProperty
Parameters:
realm - the realm
Returns:
a factory for creating observable lists in the given realm, tracking this property of a particular property source.

observeDetail

public IObservableList observeDetail(IObservableValue master)
Description copied from interface: IListProperty
Returns an observable list on the master observable's realm which tracks this property of the current value of master.

Specified by:
observeDetail in interface IListProperty
Parameters:
master - the master observable
Returns:
an observable list on the given realm which tracks this property of the current value of master.

values

public final IListProperty values(IValueProperty detailValue)
Description copied from interface: IListProperty
Returns the nested combination of this property and the specified detail value property. Note that because this property is a projection of value properties over a list, the only modification supported is through the IObservableList.set(int, Object) method. Modifications made through the returned property are delegated to the detail property, using the corresponding list element from the master property as the source.

Specified by:
values in interface IListProperty
Parameters:
detailValue - the detail property
Returns:
the nested combination of the master list and detail value properties

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

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