T
- the type of the Viewer. This must extend a StructuredViewer
public abstract class AbstractFilteredSelectionComposite<T extends org.eclipse.jface.viewers.StructuredViewer> extends Object implements CompositeProvider
CompositeProvider
provides Composite containing a Text
widget and a viewer.
The contents of the viewer can be filtered by typing a text into the Text widget.Constructor and Description |
---|
AbstractFilteredSelectionComposite()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
collapsViewer()
Subclasses can redefine the collaps behavior of the viewer.
|
org.eclipse.swt.widgets.Composite |
createUI(org.eclipse.swt.widgets.Composite parent)
This method creates a UI bundled into a
Composite that can be used anywhere. |
protected abstract T |
createViewer(org.eclipse.swt.widgets.Composite composite)
Creates a
StructuredViewer on top of the provided Composite . |
protected void |
expandViewer()
Subclasses can redefine the expand behavior of the viewer.
|
protected abstract ECPViewerFilter |
getFilter()
Returns a Filter to use.
|
Object[] |
getSelection()
Returns the selected objects.
|
T |
getViewer()
Returns the used
StructuredViewer . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose
public AbstractFilteredSelectionComposite()
public org.eclipse.swt.widgets.Composite createUI(org.eclipse.swt.widgets.Composite parent)
Composite
that can be used anywhere.createUI
in interface CompositeProvider
parent
- the parent Composite
Composite
protected void expandViewer()
protected void collapsViewer()
public T getViewer()
StructuredViewer
.public Object[] getSelection()
protected abstract T createViewer(org.eclipse.swt.widgets.Composite composite)
StructuredViewer
on top of the provided Composite
. The result is the created
StructuredViewer
.composite
- the Composite
to create the viewer onStructuredViewer
protected abstract ECPViewerFilter getFilter()
ECPViewerFilter
to useCopyright © 2019. All rights reserved.