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 forViewerproperties. 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 Constructor Description ViewerValueProperty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IObservableValue<T>observe(Realm realm, S source)Returns an observable value observing this value property on the given property sourceIViewerObservableValue<T>observe(Viewer viewer)Returns anIViewerObservableValueobserving this value property on the given viewerIObservableValue<T>observe(S source)Returns an observable value observing this value property on the given property source.IViewerObservableValue<T>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, 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
-
-
-
-
Method Detail
-
observe
public IObservableValue<T> observe(S source)
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
public IObservableValue<T> observe(Realm realm, S source)
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
public IViewerObservableValue<T> observe(Viewer viewer)
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
public IViewerObservableValue<T> observeDelayed(int delay, Viewer viewer)
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.
-
-