public interface ISetProperty extends IProperty
SetProperty
,
SimpleSetProperty
Modifier and Type | Method and Description |
---|---|
Object |
getElementType()
Returns the type of the elements in the collection or
null
if untyped |
Set |
getSet(Object source)
Returns an unmodifiable Set with the current contents of the source's set
property
|
IObservableSet |
observe(Object source)
Returns an observable set observing this set property on the given
property source
|
IObservableSet |
observe(Realm realm,
Object source)
Returns an observable set observing this set property on the given
property source
|
IObservableSet |
observeDetail(IObservableValue master)
Returns an observable set on the master observable's realm which tracks
this property of the current value of
master . |
IObservableFactory |
setFactory()
Returns a factory for creating observable sets tracking this property of
a particular property source.
|
IObservableFactory |
setFactory(Realm realm)
Returns a factory for creating observable sets in the given realm,
tracking this property of a particular property source.
|
void |
setSet(Object source,
Set set)
Updates the property on the source with the specified change.
|
void |
updateSet(Object source,
SetDiff diff)
Updates the property on the source with the specified change.
|
IMapProperty |
values(IValueProperty detailValues)
Returns the nested combination of this property and the specified detail
value property.
|
Object getElementType()
null
if untypednull
if untypedSet getSet(Object source)
source
- the property source (may be null)void setSet(Object source, Set set)
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 IObservableSet
than through the property directly.
source
- the property source (may be null)set
- the new setvoid updateSet(Object source, SetDiff 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 IObservableSet
than through the property directly.
source
- the property source (may be null)diff
- a diff describing the changeIObservableSet observe(Object source)
source
- the property sourceIObservableSet observe(Realm realm, Object source)
realm
- the observable's realmsource
- the property sourceIObservableFactory setFactory()
IObservableFactory setFactory(Realm realm)
realm
- the realmIObservableSet observeDetail(IObservableValue master)
master
.master
- the master observablemaster
.IMapProperty values(IValueProperty detailValues)
IObservableMap.put(Object, Object)
and
Map.putAll(java.util.Map)
methods. In the latter case,
this property does not put entries for keys not already in the master key
set. Modifications made through the returned property are delegated to
the detail property, using the corresponding set element from the master
property as the source.detailValues
- the detail property
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.