Class DelegatingSetProperty<S,E>
java.lang.Object
org.eclipse.core.databinding.property.set.SetProperty<S,E>
org.eclipse.core.databinding.property.set.DelegatingSetProperty<S,E>
- Type Parameters:
S- type of the source objectE- type of the elements in the set
- All Implemented Interfaces:
IProperty,ISetProperty<S,E>
- Since:
- 1.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ISetProperty<S, E> doGetDelegate(S source) Returns the property to delegate to for the specified source object.Returns a Set with the current contents of the source's set propertyprotected voidUpdates the property on the source with the specified change.protected voiddoUpdateSet(S source, SetDiff<E> diff) Updates the property on the source with the specified change.protected final ISetProperty<S, E> getDelegate(S source) Returns the property to delegate to for the specified source object.Returns the type of the elements in the collection ornullif untypedReturns an observable set observing this set property on the given property sourceReturns an observable set observing this set property on the given property sourceMethods inherited from class org.eclipse.core.databinding.property.set.SetProperty
getSet, observeDetail, setFactory, setFactory, setSet, updateSet, values
-
Constructor Details
-
DelegatingSetProperty
protected DelegatingSetProperty() -
DelegatingSetProperty
-
-
Method Details
-
getDelegate
Returns the property to delegate to for the specified source object. Repeated calls to this method with the same source object returns the same delegate instance.- Parameters:
source- the property source (may be null)- Returns:
- the property to delegate to for the specified source object.
-
doGetDelegate
Returns the property to delegate to for the specified source object. Implementers must ensure that repeated calls to this method with the same source object returns the same delegate instance.- Parameters:
source- the property source- Returns:
- the property to delegate to for the specified source object.
-
getElementType
Description copied from interface:ISetPropertyReturns the type of the elements in the collection ornullif untyped- Returns:
- the type of the elements in the collection or
nullif untyped
-
doGetSet
Description copied from class:SetPropertyReturns a Set with the current contents of the source's set property- Overrides:
doGetSetin classSetProperty<S,E> - Parameters:
source- the property source- Returns:
- a Set with the current contents of the source's set property
-
doSetSet
Description copied from class:SetPropertyUpdates the property on the source with the specified change.- Overrides:
doSetSetin classSetProperty<S,E> - Parameters:
source- the property sourceset- the new set
-
doUpdateSet
Description copied from class:SetPropertyUpdates the property on the source with the specified change.- Overrides:
doUpdateSetin classSetProperty<S,E> - Parameters:
source- the property sourcediff- a diff describing the change
-
observe
Description copied from interface:ISetPropertyReturns an observable set observing this set property on the given property source- Specified by:
observein interfaceISetProperty<S,E> - Overrides:
observein classSetProperty<S,E> - Parameters:
source- the property source- Returns:
- an observable set observing this set property on the given property source
-
observe
Description copied from interface:ISetPropertyReturns an observable set observing this set property on the given property source- Parameters:
realm- the observable's realmsource- the property source- Returns:
- an observable set observing this set property on the given property source
-