public final class TreeViewerSWTFactory extends Object
TreeViewers
.Modifier and Type | Method and Description |
---|---|
static org.eclipse.jface.viewers.TreeViewer |
createTreeViewer(org.eclipse.swt.widgets.Composite parent,
Object input)
Creates a
TreeViewer with the default behavior. |
static org.eclipse.jface.viewers.TreeViewer |
createTreeViewer(org.eclipse.swt.widgets.Composite parent,
Object input,
TreeViewerCustomization buildBehaviour)
Creates a
TreeViewer with a customized behavior. |
static TreeViewerSWTBuilder |
fillDefaults(org.eclipse.swt.widgets.Composite composite,
Object input)
Use this method if you want to customize any behavior of the
TreeViewer . |
public static TreeViewerSWTBuilder fillDefaults(org.eclipse.swt.widgets.Composite composite, Object input)
TreeViewer
. This will return
a TreeViewerSWTBuilder
which allows to customize certain aspects.composite
- the parent compositeinput
- the input objectpublic static org.eclipse.jface.viewers.TreeViewer createTreeViewer(org.eclipse.swt.widgets.Composite parent, Object input)
TreeViewer
with the default behavior.parent
- the parent compositeinput
- the input objectpublic static org.eclipse.jface.viewers.TreeViewer createTreeViewer(org.eclipse.swt.widgets.Composite parent, Object input, TreeViewerCustomization buildBehaviour)
TreeViewer
with a customized behavior. Please note that there is also the
fillDefaults(Composite, Object)
method which allows to customize single aspects of the default
behavior without having to provider a full implementation of TreeViewerCustomization
.parent
- the parent compositeinput
- the input objectbuildBehaviour
- the custom behaviorCopyright © 2019. All rights reserved.