|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.databinding.property.list.ListProperty
public abstract class ListProperty
Abstract implementation of IListProperty.
Constructor Summary | |
---|---|
ListProperty()
|
Method Summary | |
---|---|
protected List |
doGetList(Object source)
Returns a List with the current contents of the source's list property |
protected void |
doSetList(Object source,
List list)
Updates the property on the source with the specified change. |
protected void |
doUpdateList(Object source,
ListDiff diff)
Updates the property on the source with the specified change |
List |
getList(Object source)
Returns an unmodifiable List with the current contents of the source's list property |
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 . |
void |
setList(Object source,
List list)
Updates the property on the source with the specified change Note: This method is made available to facilitate basic property access. |
void |
updateList(Object source,
ListDiff diff)
Updates the property on the source with the specified change Note: This method is made available to facilitate basic property access. |
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 |
---|
public ListProperty()
Method Detail |
---|
public final List getList(Object source)
IListProperty
getList
in interface IListProperty
source
- the property source (may be null)
protected List doGetList(Object source)
source
- the property source
public final void setList(Object source, List list)
IListProperty
Note: This method is made available to facilitate basic property
access. However if the property source lacks property change
notification, then observables on the source object may not be notified
of the change. In most cases it is preferable to modify the source
through an IObservableList
than through the property directly.
setList
in interface IListProperty
source
- the property source (may be null)list
- the new listprotected void doSetList(Object source, List list)
source
- the property sourcelist
- the new listpublic final void updateList(Object source, ListDiff diff)
IListProperty
Note: This method is made available to facilitate basic property
access. However if the property source lacks property change
notification, then observables on the source object may not be notified
of the change. In most cases it is preferable to modify the source
through an IObservableList
than through the property directly.
updateList
in interface IListProperty
source
- the property source (may be null)diff
- a diff describing the changeprotected void doUpdateList(Object source, ListDiff diff)
source
- the property sourcediff
- a diff describing the changepublic IObservableList observe(Object source)
IListProperty
observe
in interface IListProperty
source
- the property source
public IObservableFactory listFactory()
IListProperty
listFactory
in interface IListProperty
public IObservableFactory listFactory(Realm realm)
IListProperty
listFactory
in interface IListProperty
realm
- the realm
public IObservableList observeDetail(IObservableValue master)
IListProperty
master
.
observeDetail
in interface IListProperty
master
- the master observable
master
.public final IListProperty values(IValueProperty detailValue)
IListProperty
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.
values
in interface IListProperty
detailValue
- the detail property
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.