Class ViewerSupport
java.lang.Object
org.eclipse.jface.databinding.viewers.ViewerSupport
Helper methods for binding observables to a
StructuredViewer
or
AbstractTableViewer
.- Since:
- 1.3
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E> void
bind
(AbstractTreeViewer viewer, E input, IListProperty<? super E, ? extends E> childrenProperty, IValueProperty<? super E, ?> labelProperty) Binds the viewer to the specified input, using the specified children property to generate child nodes, and the specified label property to generate labels.static <E> void
bind
(AbstractTreeViewer viewer, E input, IListProperty<? super E, ? extends E> childrenProperty, IValueProperty<? super E, ?>... labelProperties) Binds the viewer to the specified input, using the specified children property to generate child nodes, and the specified label properties to generate labels.static <E> void
bind
(AbstractTreeViewer viewer, E input, ISetProperty<? super E, ? extends E> childrenProperty, IValueProperty<? super E, ?> labelProperty) Binds the viewer to the specified input, using the specified children property to generate child nodes, and the specified label property to generate labels.static <E> void
bind
(AbstractTreeViewer viewer, E input, ISetProperty<? super E, ? extends E> childrenProperty, IValueProperty<? super E, ?>... labelProperties) Binds the viewer to the specified input, using the specified children property to generate child nodes, and the specified label properties to generate labels.static <E> void
bind
(StructuredViewer viewer, IObservableList<E> input, IValueProperty<? super E, ?> labelProperty) Binds the viewer to the specified input, using the specified label property to generate labels.static <E> void
bind
(StructuredViewer viewer, IObservableList<E> input, IValueProperty<? super E, ?>... labelProperties) Binds the viewer to the specified input, using the specified label properties to generate labels.static <E> void
bind
(StructuredViewer viewer, IObservableSet<E> input, IValueProperty<? super E, ?> labelProperty) Binds the viewer to the specified input, using the specified label property to generate labels.static <E> void
bind
(StructuredViewer viewer, IObservableSet<E> input, IValueProperty<? super E, ?>... labelProperties) Binds the viewer to the specified input, using the specified label properties to generate labels.
-
Constructor Details
-
ViewerSupport
public ViewerSupport()
-
-
Method Details
-
bind
public static <E> void bind(StructuredViewer viewer, IObservableList<E> input, IValueProperty<? super E, ?> labelProperty) Binds the viewer to the specified input, using the specified label property to generate labels.- Parameters:
viewer
- the viewer to set upinput
- the input to set on the viewerlabelProperty
- the property to use for labels
-
bind
@SafeVarargs public static <E> void bind(StructuredViewer viewer, IObservableList<E> input, IValueProperty<? super E, ?>... labelProperties) Binds the viewer to the specified input, using the specified label properties to generate labels.- Parameters:
viewer
- the viewer to set upinput
- the input to set on the viewerlabelProperties
- the respective properties to use for labels in each of the viewer's columns
-
bind
public static <E> void bind(StructuredViewer viewer, IObservableSet<E> input, IValueProperty<? super E, ?> labelProperty) Binds the viewer to the specified input, using the specified label property to generate labels.- Parameters:
viewer
- the viewer to set upinput
- the input to set on the viewerlabelProperty
- the property to use for labels
-
bind
@SafeVarargs public static <E> void bind(StructuredViewer viewer, IObservableSet<E> input, IValueProperty<? super E, ?>... labelProperties) Binds the viewer to the specified input, using the specified label properties to generate labels.- Parameters:
viewer
- the viewer to set upinput
- the input to set on the viewerlabelProperties
- the respective properties to use for labels in each of the viewer's columns
-
bind
public static <E> void bind(AbstractTreeViewer viewer, E input, IListProperty<? super E, ? extends E> childrenProperty, IValueProperty<? super E, ?> labelProperty) Binds the viewer to the specified input, using the specified children property to generate child nodes, and the specified label property to generate labels.- Parameters:
viewer
- the tree viewer to set upinput
- the input to set on the viewerchildrenProperty
- the property to use as the children of an elementlabelProperty
- the property to use for labels
-
bind
@SafeVarargs public static <E> void bind(AbstractTreeViewer viewer, E input, IListProperty<? super E, ? extends E> childrenProperty, IValueProperty<? super E, ?>... labelProperties) Binds the viewer to the specified input, using the specified children property to generate child nodes, and the specified label properties to generate labels.- Parameters:
viewer
- the tree viewer to set upinput
- the input to set on the viewerchildrenProperty
- the property to use as the children of an elementlabelProperties
- the respective properties to use for labels in each of the viewer's columns
-
bind
public static <E> void bind(AbstractTreeViewer viewer, E input, ISetProperty<? super E, ? extends E> childrenProperty, IValueProperty<? super E, ?> labelProperty) Binds the viewer to the specified input, using the specified children property to generate child nodes, and the specified label property to generate labels.- Parameters:
viewer
- the tree viewer to set upinput
- the input to set on the viewerchildrenProperty
- the property to use as the children of an elementlabelProperty
- the property to use for labels
-
bind
@SafeVarargs public static <E> void bind(AbstractTreeViewer viewer, E input, ISetProperty<? super E, ? extends E> childrenProperty, IValueProperty<? super E, ?>... labelProperties) Binds the viewer to the specified input, using the specified children property to generate child nodes, and the specified label properties to generate labels.- Parameters:
viewer
- the tree viewer to set upinput
- the input to set on the viewerchildrenProperty
- the property to use as the children of an elementlabelProperties
- the respective properties to use for labels in each of the viewer's columns
-