XViewerFilteredTreepublic class FilteredTreeComposite
extends org.eclipse.swt.widgets.Composite
PatternFilter| Constructor | Description |
|---|---|
FilteredTreeComposite(org.eclipse.swt.widgets.Composite parent,
int treeStyle,
PatternFilter filter) |
Create a new instance of the receiver.
|
| Modifier and Type | Method | Description |
|---|---|---|
static org.eclipse.swt.graphics.Font |
getBoldFont(java.lang.Object element,
FilteredTreeComposite tree,
PatternFilter filter) |
Return a bold font if the given element matches the given pattern.
|
org.eclipse.swt.widgets.Text |
getFilterControl() |
Get the filter text for the receiver, if it was created.
|
PatternFilter |
getPatternFilter() |
Returns the pattern filter used by this tree.
|
org.eclipse.jface.viewers.TreeViewer |
getViewer() |
Get the tree viewer of the receiver.
|
void |
setBackground(org.eclipse.swt.graphics.Color background) |
Set the background for the widgets that support the filter text area.
|
void |
setInitialText(java.lang.String text) |
Set the text that will be shown until the first focus.
|
changed, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabListaddControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, updateequals, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic FilteredTreeComposite(org.eclipse.swt.widgets.Composite parent,
int treeStyle,
PatternFilter filter)
parent - the parent CompositetreeStyle - the style bits for the Treefilter - the filter to be usedpublic void setBackground(org.eclipse.swt.graphics.Color background)
setBackground in class org.eclipse.swt.widgets.Controlbackground - background Color to setpublic final PatternFilter getPatternFilter()
null.public org.eclipse.jface.viewers.TreeViewer getViewer()
public org.eclipse.swt.widgets.Text getFilterControl()
null.public void setInitialText(java.lang.String text)
text - initial text to appear in text fieldpublic static org.eclipse.swt.graphics.Font getBoldFont(java.lang.Object element,
FilteredTreeComposite tree,
PatternFilter filter)
element - element for which a match should be determinedtree - FilteredTree in which the element residesfilter - PatternFilter which determines a match