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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns an observable value observing this value property on the given property sourceReturns anIViewerObservableValueobserving 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 anIViewerObservableValueobserving this value property on the given viewer, which delays notification of value changes until at leastdelaymilliseconds 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, observeDetailMethods inherited from class org.eclipse.core.databinding.property.value.ValueProperty
getValue, list, map, observeDetail, set, setValue, value, valueFactory, valueFactoryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:IValuePropertyReturns an observable value observing this value property on the given property source.- Specified by:
observein interfaceIValueProperty<S,T> - Specified by:
observein interfaceIViewerValueProperty<S,T> - Overrides:
observein 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:IValuePropertyReturns an observable value observing this value property on the given property source- Specified by:
observein interfaceIValueProperty<S,T> - Overrides:
observein 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:IViewerValuePropertyReturns anIViewerObservableValueobserving this value property on the given viewer- Specified by:
observein 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:IViewerValuePropertyReturns anIViewerObservableValueobserving this value property on the given viewer, which delays notification of value changes until at leastdelaymilliseconds 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:
observeDelayedin 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
delaymilliseconds.
-