Class ViewerProperties
java.lang.Object
org.eclipse.jface.databinding.viewers.typed.ViewerProperties
A factory for creating properties of JFace
viewers.- Since:
- 1.9
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <S extends ICheckable,T>
IViewerSetProperty<S, T> checkedElements(Class<T> elementType) A version ofcheckedElements(Object)which casts the property to the argument element type.static <S extends ICheckable,E>
IViewerSetProperty<S, E> checkedElements(Object elementType) Returns a set property for observing the checked elements of aCheckboxTableViewer,CheckboxTreeViewerorICheckable.static <S extends StructuredViewer>
IViewerSetProperty<S, ViewerFilter> filters()Returns a value property for observing the filters of aStructuredViewer.static <S extends Viewer,E>
IViewerValueProperty<S, E> input()Returns a value property for observing the input of aViewer.static <S extends Viewer,T>
IViewerValueProperty<S, T> An alternative version ofinput()which casts the property to the argument element type.static <S extends ISelectionProvider,E>
IViewerListProperty<S, E> Returns a list property for observing the multiple post selection of anIPostSelectionProvider.static <S extends ISelectionProvider,T>
IViewerListProperty<S, T> multiplePostSelection(Class<T> elementType) An alternative version ofmultiplePostSelection()which casts the property to the argument element type.static <S extends ISelectionProvider,E>
IViewerListProperty<S, E> Returns a list property for observing the multiple selection of anISelectionProvider.static <S extends ISelectionProvider,T>
IViewerListProperty<S, T> multipleSelection(Class<T> elementType) An alternative version ofmultipleSelection()which casts the property to the argument element type.static <S extends ISelectionProvider,E>
IViewerValueProperty<S, E> Returns a value property for observing the single post selection of aIPostSelectionProvider.static <S extends ISelectionProvider,T>
IViewerValueProperty<S, T> singlePostSelection(Class<T> elementType) An alternative version ofsinglePostSelection()which casts the property to the argument element type.static <S extends ISelectionProvider,E>
IViewerValueProperty<S, E> Returns a value property for observing the single selection of aISelectionProvider.static <S extends ISelectionProvider,T>
IViewerValueProperty<S, T> singleSelection(Class<T> elementType) An alternative version ofsingleSelection()which casts the property to the argument element type.
-
Constructor Details
-
ViewerProperties
public ViewerProperties()
-
-
Method Details
-
checkedElements
Returns a set property for observing the checked elements of aCheckboxTableViewer,CheckboxTreeViewerorICheckable.- Parameters:
elementType- the element type of the returned property- Returns:
- a set property for observing the checked elements of a
CheckboxTableViewer,CheckboxTreeViewerorICheckable.
-
checkedElements
public static <S extends ICheckable,T> IViewerSetProperty<S,T> checkedElements(Class<T> elementType) A version ofcheckedElements(Object)which casts the property to the argument element type. (Note that the type arguments of the property might not be checked at runtime.)- Parameters:
elementType- the element type of the returned property- Returns:
- a set property for observing the checked elements of a
CheckboxTableViewer,CheckboxTreeViewerorICheckable. - Since:
- 1.9
-
filters
Returns a value property for observing the filters of aStructuredViewer.- Returns:
- a value property for observing the filters of a
StructuredViewer.
-
input
Returns a value property for observing the input of aViewer.- Returns:
- a value property for observing the input of a
Viewer.
-
input
An alternative version ofinput()which casts the property to the argument element type. (Note that the type arguments of the property might not be checked at runtime.)- Parameters:
inputType- the value type of the returned property- Returns:
- a value property for observing the input of a
Viewer. - Since:
- 1.9
-
multipleSelection
Returns a list property for observing the multiple selection of anISelectionProvider.- Returns:
- a list property for observing the multiple selection of an
ISelectionProvider.
-
multipleSelection
public static <S extends ISelectionProvider,T> IViewerListProperty<S,T> multipleSelection(Class<T> elementType) An alternative version ofmultipleSelection()which casts the property to the argument element type. (Note that the type arguments of the property might not be checked at runtime.)- Parameters:
elementType- the element type of the returned property- Returns:
- a list property for observing the multiple selection of an
ISelectionProvider. - Since:
- 1.9
-
multiplePostSelection
Returns a list property for observing the multiple post selection of anIPostSelectionProvider.- Returns:
- a list property for observing the multiple post selection
of an
IPostSelectionProvider. - Since:
- 1.4
-
multiplePostSelection
public static <S extends ISelectionProvider,T> IViewerListProperty<S,T> multiplePostSelection(Class<T> elementType) An alternative version ofmultiplePostSelection()which casts the property to the argument element type. (Note that the type arguments of the property might not be checked at runtime.)- Parameters:
elementType- the element type of the returned property- Returns:
- a list property for observing the multiple post selection of
an
IPostSelectionProvider. - Since:
- 1.9
-
singleSelection
Returns a value property for observing the single selection of aISelectionProvider.- Returns:
- a value property for observing the single selection of a
ISelectionProvider.
-
singleSelection
public static <S extends ISelectionProvider,T> IViewerValueProperty<S,T> singleSelection(Class<T> elementType) An alternative version ofsingleSelection()which casts the property to the argument element type. (Note that the type arguments of the property might not be checked at runtime.)- Parameters:
elementType- the element type of the returned property- Returns:
- a value property for observing the single selection of a
ISelectionProvider. - Since:
- 1.9
-
singlePostSelection
Returns a value property for observing the single post selection of aIPostSelectionProvider.- Returns:
- a value property for observing the single post selection
of a
IPostSelectionProvider. - Since:
- 1.4
-
singlePostSelection
public static <S extends ISelectionProvider,T> IViewerValueProperty<S,T> singlePostSelection(Class<T> elementType) An alternative version ofsinglePostSelection()which casts the property to the argument element type. (Note that the type arguments of the property might not be checked at runtime.)- Parameters:
elementType- the element type of the returned property- Returns:
- a value property for observing the single post selection of a
IPostSelectionProvider. - Since:
- 1.9
-