Class ViewerValueProperty<S,T>
java.lang.Object
org.eclipse.core.databinding.property.value.ValueProperty<S,T>
org.eclipse.core.databinding.property.value.SimpleValueProperty<S,T>
org.eclipse.jface.databinding.viewers.ViewerValueProperty<S,T>
- Type Parameters:
S
- type of the source objectT
- type of the value of the property
- All Implemented Interfaces:
IProperty
,IValueProperty<S,
,T> IViewerValueProperty<S,
T>
public abstract class ViewerValueProperty<S,T>
extends SimpleValueProperty<S,T>
implements IViewerValueProperty<S,T>
Abstract value property implementation for
Viewer
properties. This
class implements some basic behavior that viewer properties are generally
expected to have, namely:
- Calling
observe(Object)
should create the observable on the display realm of the viewer's control, rather than the current default realm - All
observe()
methods should return anIViewerObservableValue
- Since:
- 1.3
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns an observable value observing this value property on the given property sourceReturns anIViewerObservableValue
observing this value property on the given viewerReturns an observable value observing this value property on the given property source.observeDelayed
(int delay, Viewer viewer) Returns anIViewerObservableValue
observing this value property on the given viewer, which delays notification of value changes until at leastdelay
milliseconds have elapsed since that last change event, or until a FocusOut event is received from the viewer's control (whichever happens first).Methods inherited from class org.eclipse.core.databinding.property.value.SimpleValueProperty
adaptListener, doGetValue, doSetValue, observeDetail, observeDetail, observeDetail
Methods inherited from class org.eclipse.core.databinding.property.value.ValueProperty
getValue, list, map, observeDetail, set, setValue, value, valueFactory, valueFactory
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.value.IValueProperty
getValue, getValueType, list, map, observeDetail, observeDetail, observeDetail, observeDetail, set, setValue, value, valueFactory, valueFactory
-
Constructor Details
-
ViewerValueProperty
public ViewerValueProperty()
-
-
Method Details
-
observe
Description copied from interface:IValueProperty
Returns an observable value observing this value property on the given property source.- Specified by:
observe
in interfaceIValueProperty<S,
T> - Specified by:
observe
in interfaceIViewerValueProperty<S,
T> - Overrides:
observe
in classValueProperty<S,
T> - Parameters:
source
- the property source- Returns:
- an observable value observing this value property on the given property source
-
observe
Description copied from interface:IValueProperty
Returns an observable value observing this value property on the given property source- Specified by:
observe
in interfaceIValueProperty<S,
T> - Overrides:
observe
in classSimpleValueProperty<S,
T> - Parameters:
realm
- the observable's realmsource
- the property source- Returns:
- an observable value observing this value property on the given property source
-
observe
Description copied from interface:IViewerValueProperty
Returns anIViewerObservableValue
observing this value property on the given viewer- Specified by:
observe
in interfaceIViewerValueProperty<S,
T> - Parameters:
viewer
- the source viewer- Returns:
- an observable value observing this value property on the given viewer
-
observeDelayed
Description copied from interface:IViewerValueProperty
Returns anIViewerObservableValue
observing this value property on the given viewer, which delays notification of value changes until at leastdelay
milliseconds have elapsed since that last change event, or until a FocusOut event is received from the viewer's control (whichever happens first).This method is equivalent to
ViewersObservables.observeDelayedValue(delay, observe(viewer))
.- Specified by:
observeDelayed
in interfaceIViewerValueProperty<S,
T> - Parameters:
delay
- the delay in milliseconds.viewer
- the source viewer- Returns:
- an observable value observing this value property on the given
viewer, and which delays change notifications for
delay
milliseconds.
-