Class TreeViewerSWTFactory


  • public final class TreeViewerSWTFactory
    extends java.lang.Object
    This factory allows to create TreeViewers.
    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 a TreeViewer with the default behavior.
      static org.eclipse.jface.viewers.TreeViewer createTreeViewer​(org.eclipse.swt.widgets.Composite parent, java.lang.Object input, TreeViewerCustomization buildBehaviour)
      Creates a TreeViewer 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 the TreeViewer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 the TreeViewer. This will return a TreeViewerSWTBuilder which allows to customize certain aspects.
        Parameters:
        composite - the parent composite
        input - 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 a TreeViewer with the default behavior.
        Parameters:
        parent - the parent composite
        input - 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 a 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.
        Parameters:
        parent - the parent composite
        input - the input object
        buildBehaviour - the custom behavior
        Returns:
        the tree viewer