Class TreeViewerSWTFactory
- java.lang.Object
-
- org.eclipse.emfforms.spi.swt.treemasterdetail.TreeViewerSWTFactory
-
public final class TreeViewerSWTFactory extends java.lang.Object
This factory allows to createTreeViewers
.- Since:
- 1.8
- Author:
- Johannes Faltermeier
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.jface.viewers.TreeViewer
createTreeViewer(org.eclipse.swt.widgets.Composite parent, java.lang.Object input)
Creates aTreeViewer
with the default behavior.static org.eclipse.jface.viewers.TreeViewer
createTreeViewer(org.eclipse.swt.widgets.Composite parent, java.lang.Object input, TreeViewerCustomization buildBehaviour)
Creates aTreeViewer
with a customized behavior.static TreeViewerSWTBuilder
fillDefaults(org.eclipse.swt.widgets.Composite composite, java.lang.Object input)
Use this method if you want to customize any behavior of theTreeViewer
.
-
-
-
Method Detail
-
fillDefaults
public static TreeViewerSWTBuilder fillDefaults(org.eclipse.swt.widgets.Composite composite, java.lang.Object input)
Use this method if you want to customize any behavior of theTreeViewer
. This will return aTreeViewerSWTBuilder
which allows to customize certain aspects.- Parameters:
composite
- the parent compositeinput
- the input object- Returns:
- the builder
-
createTreeViewer
public static org.eclipse.jface.viewers.TreeViewer createTreeViewer(org.eclipse.swt.widgets.Composite parent, java.lang.Object input)
Creates aTreeViewer
with the default behavior.- Parameters:
parent
- the parent compositeinput
- the input object- Returns:
- the tree viewer
-
createTreeViewer
public static org.eclipse.jface.viewers.TreeViewer createTreeViewer(org.eclipse.swt.widgets.Composite parent, java.lang.Object input, TreeViewerCustomization buildBehaviour)
Creates aTreeViewer
with a customized behavior. Please note that there is also thefillDefaults(Composite, Object)
method which allows to customize single aspects of the default behavior without having to provider a full implementation ofTreeViewerCustomization
.- Parameters:
parent
- the parent compositeinput
- the input objectbuildBehaviour
- the custom behavior- Returns:
- the tree viewer
-
-