|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.databinding.property.set.SetProperty
public abstract class SetProperty
Abstract implementation of ISetProperty
| Constructor Summary | |
|---|---|
SetProperty()
|
|
| Method Summary | |
|---|---|
protected Set |
doGetSet(Object source)
Returns a Set with the current contents of the source's set property |
protected void |
doSetSet(Object source,
Set set)
Updates the property on the source with the specified change. |
protected void |
doUpdateSet(Object source,
SetDiff diff)
Updates the property on the source with the specified change. |
Set |
getSet(Object source)
By default, this method returns Collections.EMPTY_SET in
case the source object is null. |
IObservableSet |
observe(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. |
| 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.set.ISetProperty |
|---|
getElementType, observe |
| Constructor Detail |
|---|
public SetProperty()
| Method Detail |
|---|
public Set getSet(Object source)
Collections.EMPTY_SET in
case the source object is null. Otherwise, this method
delegates to doGetSet(Object).
Clients may override this method if they e.g. want to return a specific
default set in case the source object is null.
getSet in interface ISetPropertysource - the property source (may be null)
doGetSet(Object)protected Set doGetSet(Object source)
source - the property source
public final void setSet(Object source,
Set set)
ISetProperty
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.
setSet in interface ISetPropertysource - the property source (may be null)set - the new set
protected void doSetSet(Object source,
Set set)
source - the property sourceset - the new set
public final void updateSet(Object source,
SetDiff diff)
ISetProperty
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.
updateSet in interface ISetPropertysource - the property source (may be null)diff - a diff describing the change
protected void doUpdateSet(Object source,
SetDiff diff)
source - the property sourcediff - a diff describing the changepublic IObservableSet observe(Object source)
ISetProperty
observe in interface ISetPropertysource - the property source
public IObservableFactory setFactory()
ISetProperty
setFactory in interface ISetPropertypublic IObservableFactory setFactory(Realm realm)
ISetProperty
setFactory in interface ISetPropertyrealm - the realm
public IObservableSet observeDetail(IObservableValue master)
ISetPropertymaster.
observeDetail in interface ISetPropertymaster - the master observable
master.public final IMapProperty values(IValueProperty detailValues)
ISetPropertyIObservableMap.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.
values in interface ISetPropertydetailValues - the detail property
|
Eclipse Platform Release 3.7 |
|||||||||
| 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, 2011. All rights reserved.