Class WidgetListProperty<S extends Widget,E>
- java.lang.Object
-
- org.eclipse.core.databinding.property.list.ListProperty<S,E>
-
- org.eclipse.core.databinding.property.list.SimpleListProperty<S,E>
-
- org.eclipse.jface.databinding.swt.WidgetListProperty<S,E>
-
- Type Parameters:
S
- type of the source objectE
- type of the elements in the list
- All Implemented Interfaces:
IProperty
,IListProperty<S,E>
,IWidgetListProperty<S,E>
public abstract class WidgetListProperty<S extends Widget,E> extends SimpleListProperty<S,E> implements IWidgetListProperty<S,E>
Abstract list property implementation forWidget
properties. This class implements some basic behavior that widget properties are generally expected to have, namely:- Calling
observe(Widget)
should create the observable on the display realm of the widget, rather than the current default realm - All
observe()
methods should return anISWTObservable
- Since:
- 1.3
-
-
Constructor Summary
Constructors Constructor Description WidgetListProperty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISWTObservableList<E>
observe(Realm realm, S source)
Returns an observable list observing this list property on the given property sourceISWTObservableList<E>
observe(S widget)
Returns an observable list observing this list property on the given property source-
Methods inherited from class org.eclipse.core.databinding.property.list.SimpleListProperty
adaptListener, doGetList, doSetList, doSetList, doUpdateList, setList
-
Methods inherited from class org.eclipse.core.databinding.property.list.ListProperty
getList, listFactory, listFactory, observeDetail, setList, updateList, values
-
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.list.IListProperty
getElementType, getList, listFactory, listFactory, observeDetail, setList, updateList, values
-
-
-
-
Method Detail
-
observe
public ISWTObservableList<E> observe(Realm realm, S source)
Description copied from interface:IListProperty
Returns an observable list observing this list property on the given property source- Specified by:
observe
in interfaceIListProperty<S extends Widget,E>
- Overrides:
observe
in classSimpleListProperty<S extends Widget,E>
- Parameters:
realm
- the observable's realmsource
- the property source- Returns:
- an observable list observing this list property on the given property source
- Since:
- 1.9
-
observe
public ISWTObservableList<E> observe(S widget)
Description copied from interface:IListProperty
Returns an observable list observing this list property on the given property source- Specified by:
observe
in interfaceIListProperty<S extends Widget,E>
- Specified by:
observe
in interfaceIWidgetListProperty<S extends Widget,E>
- Overrides:
observe
in classListProperty<S extends Widget,E>
- Parameters:
widget
- the property source- Returns:
- an observable list observing this list property on the given property source
-
-