public interface IListProperty extends IProperty
ListProperty
,
SimpleListProperty
Modifier and Type | Method and Description |
---|---|
Object |
getElementType()
Returns the type of the elements in the collection or
null
if untyped |
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 |
observe(Realm realm,
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.
|
Object getElementType()
null
if untypednull
if untypedList getList(Object source)
source
- the property source (may be null)void setList(Object source, List list)
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.
source
- the property source (may be null)list
- the new listvoid updateList(Object source, ListDiff diff)
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.
source
- the property source (may be null)diff
- a diff describing the changeIObservableList observe(Object source)
source
- the property sourceIObservableList observe(Realm realm, Object source)
realm
- the observable's realmsource
- the property sourceIObservableFactory listFactory()
IObservableFactory listFactory(Realm realm)
realm
- the realmIObservableList observeDetail(IObservableValue master)
master
.master
- the master observablemaster
.IListProperty values(IValueProperty detailValue)
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.detailValue
- the detail property
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.