com.tssap.util.ui.pane
Class PaneFactory

java.lang.Object
  |
  +--com.tssap.util.ui.pane.PaneFactory

public class PaneFactory
extends java.lang.Object

Central class used to create initial pane.

Note that panes can only be instantiated by using this factory class, not by constructor calls.


Method Summary
static IGridLayoutPane createGridLayoutPane(org.eclipse.swt.widgets.Composite pParent, int pNumOfColumns)
          Creates a grid layout pane.
static IGridLayoutPane createGridLayoutPane(org.eclipse.swt.widgets.Composite pParent, int pNumOfColumns, IWidgetFactory pWidgetFactory)
          Creates a grid layout pane containing specially built widgets.
static IGridLayoutPane createGridLayoutPaneEqualCols(org.eclipse.swt.widgets.Composite pParent, int pNumOfColumns)
          Creates a grid layout pane where all columns have equal size.
static IGridLayoutPane createGridLayoutPaneEqualCols(org.eclipse.swt.widgets.Composite pParent, int pNumOfColumns, IWidgetFactory pWidgetFactory)
          Creates a grid layout pane containing specially built widgets where all columns have equal size.
static IGridLayoutPane createGridLayoutPaneWithTitle(org.eclipse.swt.widgets.Composite pParent, java.lang.String pTitle, int pNumOfColumns)
          Creates a grid layout pane which has border and title.
static IGridLayoutPane createGridLayoutPaneWithTitle(org.eclipse.swt.widgets.Composite pParent, java.lang.String pTitle, int pNumOfColumns, IWidgetFactory pWidgetFactory)
          Creates a grid layout pane containing specially built widgets which has border and title.
static IGridLayoutPane createGridLayoutPaneWithTitleEqualCols(org.eclipse.swt.widgets.Composite pParent, java.lang.String pTitle, int pNumOfColumns)
          Creates a grid layout pane which has border and title and all columns have equal size.
static IGridLayoutPane createGridLayoutPaneWithTitleEqualCols(org.eclipse.swt.widgets.Composite pParent, java.lang.String pTitle, int pNumOfColumns, IWidgetFactory pWidgetFactory)
          Creates a grid layout pane containing specially built widgets with border and title and all columns have equal size.
static ISashPane createHorizontalSashPane(org.eclipse.swt.widgets.Composite pParent)
          Creates a horizontal sash pane. Sash panes are compound panes where the subcomponents are divided by sashes (either horizontal or vertical).
static ISashPane createHorizontalSashPane(org.eclipse.swt.widgets.Composite pParent, IWidgetFactory pWidgetFactory)
          Creates a horizontal sash pane containing specially built widgets.
static ISimplePane createSimplePane(org.eclipse.swt.widgets.Composite pParent)
          Creates a simple pane.
static ISimplePane createSimplePane(org.eclipse.swt.widgets.Composite pParent, IWidgetFactory pWidgetFactory)
          Creates a simple pane containing specially built widgets.
static ISimplePane createSimplePane(org.eclipse.swt.widgets.Composite pParent, java.lang.String pTitle)
          Creates a simple pane with a titled border.
static ISimplePane createSimplePane(org.eclipse.swt.widgets.Composite pParent, java.lang.String pTitle, IWidgetFactory pWidgetFactory)
          Creates a simple pane with a titled border containing specially built widgets.
static ITabbedPane createTabbedPane(org.eclipse.swt.widgets.Composite pParent)
          Creates a tabbed pane.
static ITabbedPane createTabbedPane(org.eclipse.swt.widgets.Composite pParent, IWidgetFactory pWidgetFactory)
          Creates a tabbed pane containing specially built widgets.
static ISashPane createVerticalSashPane(org.eclipse.swt.widgets.Composite pParent)
          Creates a vertical sash pane.
static ISashPane createVerticalSashPane(org.eclipse.swt.widgets.Composite pParent, IWidgetFactory pWidgetFactory)
          Creates a vertical sash pane containing specially built widgets.
static IGridLayoutPane establishGridLayoutPaneContainer(org.eclipse.swt.widgets.Composite pParent, IGridLayoutPaneContainer pContainer)
          Method establishGridLayoutPaneContainer.
static IGridLayoutPane establishGridLayoutPaneContainer(org.eclipse.swt.widgets.Composite pParent, IGridLayoutPaneContainer pContainer, IWidgetFactory pWidgetFactory)
          Method establishGridLayoutPaneContainer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createSimplePane

public static ISimplePane createSimplePane(org.eclipse.swt.widgets.Composite pParent)
Creates a simple pane.

Simple panes are used to do something which is not possible with means of toolkit methods.

Parameters:
pParent - composite used as parent for the pane composite
Returns:
created pane

createSimplePane

public static ISimplePane createSimplePane(org.eclipse.swt.widgets.Composite pParent,
                                           IWidgetFactory pWidgetFactory)
Creates a simple pane containing specially built widgets.
Parameters:
pParent - composite used as parent for the pane composite
pWidgetFactory - widget factory used to build the real widgets
Returns:
created pane

createSimplePane

public static ISimplePane createSimplePane(org.eclipse.swt.widgets.Composite pParent,
                                           java.lang.String pTitle)
Creates a simple pane with a titled border.

Simple panes are used to do something which is not possible with means of toolkit methods.

Parameters:
pParent - composite used as parent for the pane composite
pTitle - title shown in border
Returns:
created pane

createSimplePane

public static ISimplePane createSimplePane(org.eclipse.swt.widgets.Composite pParent,
                                           java.lang.String pTitle,
                                           IWidgetFactory pWidgetFactory)
Creates a simple pane with a titled border containing specially built widgets.
Parameters:
pParent - composite used as parent for the pane composite
pTitle - title shown in border
pWidgetFactory - widget factory used to build the real widgets
Returns:
created pane

createGridLayoutPane

public static IGridLayoutPane createGridLayoutPane(org.eclipse.swt.widgets.Composite pParent,
                                                   int pNumOfColumns)
Creates a grid layout pane.

Grid layout panes are the central pane type used to built up complex panes. Grid cells can be filled with almost all native widget types, viewers and even with other pane types.

Parameters:
pParent - composite used as parent for the pane composite
pNumOfColumns - number of columns
Returns:
created pane

createGridLayoutPane

public static IGridLayoutPane createGridLayoutPane(org.eclipse.swt.widgets.Composite pParent,
                                                   int pNumOfColumns,
                                                   IWidgetFactory pWidgetFactory)
Creates a grid layout pane containing specially built widgets.
Parameters:
pParent - composite used as parent for the pane composite
pNumOfColumns - number of columns
pWidgetFactory - widget factory used to build the real widgets
Returns:
created pane

createGridLayoutPaneEqualCols

public static IGridLayoutPane createGridLayoutPaneEqualCols(org.eclipse.swt.widgets.Composite pParent,
                                                            int pNumOfColumns)
Creates a grid layout pane where all columns have equal size.
Parameters:
pParent - composite used as parent for the pane composite
pNumOfColumns - number of columns
Returns:
created pane

createGridLayoutPaneEqualCols

public static IGridLayoutPane createGridLayoutPaneEqualCols(org.eclipse.swt.widgets.Composite pParent,
                                                            int pNumOfColumns,
                                                            IWidgetFactory pWidgetFactory)
Creates a grid layout pane containing specially built widgets where all columns have equal size.
Parameters:
pParent - composite used as parent for the pane composite
pNumOfColumns - number of columns
pWidgetFactory - widget factory used to build the real widgets
Returns:
created pane

createGridLayoutPaneWithTitle

public static IGridLayoutPane createGridLayoutPaneWithTitle(org.eclipse.swt.widgets.Composite pParent,
                                                            java.lang.String pTitle,
                                                            int pNumOfColumns)
Creates a grid layout pane which has border and title.
Parameters:
pParent - composite used as parent for the pane composite
pTitle - title shown in border
pNumOfColumns - number of columns
Returns:
created pane

createGridLayoutPaneWithTitle

public static IGridLayoutPane createGridLayoutPaneWithTitle(org.eclipse.swt.widgets.Composite pParent,
                                                            java.lang.String pTitle,
                                                            int pNumOfColumns,
                                                            IWidgetFactory pWidgetFactory)
Creates a grid layout pane containing specially built widgets which has border and title.
Parameters:
pParent - composite used as parent for the pane composite
pTitle - title shown in border
pNumOfColumns - number of columns
pWidgetFactory - widget factory implementation used to build the real widgets
Returns:
created pane

createGridLayoutPaneWithTitleEqualCols

public static IGridLayoutPane createGridLayoutPaneWithTitleEqualCols(org.eclipse.swt.widgets.Composite pParent,
                                                                     java.lang.String pTitle,
                                                                     int pNumOfColumns)
Creates a grid layout pane which has border and title and all columns have equal size.
Parameters:
pParent - composite used as parent for the pane composite
pTitle - title shown in border
pNumOfColumns - number of columns
Returns:
created pane

createGridLayoutPaneWithTitleEqualCols

public static IGridLayoutPane createGridLayoutPaneWithTitleEqualCols(org.eclipse.swt.widgets.Composite pParent,
                                                                     java.lang.String pTitle,
                                                                     int pNumOfColumns,
                                                                     IWidgetFactory pWidgetFactory)
Creates a grid layout pane containing specially built widgets with border and title and all columns have equal size.
Parameters:
pParent - composite used as parent for the pane composite
pTitle - title shown in border
pNumOfColumns - number of columns
pWidgetFactory - widget factory used to build the real widgets
Returns:
created pane

createTabbedPane

public static ITabbedPane createTabbedPane(org.eclipse.swt.widgets.Composite pParent)
Creates a tabbed pane.

Tabbed panes are useful when ui functionality can be clearly divided in separate parts. Each part is assigned an own area (tab) with specific title.

Parameters:
pParent - composite used as parent for the pane composite
Returns:
created pane

createTabbedPane

public static ITabbedPane createTabbedPane(org.eclipse.swt.widgets.Composite pParent,
                                           IWidgetFactory pWidgetFactory)
Creates a tabbed pane containing specially built widgets.
Parameters:
pParent - composite used as parent for the pane composite
pWidgetFactory - widget factory used to build the real widgets
Returns:
created pane

createHorizontalSashPane

public static ISashPane createHorizontalSashPane(org.eclipse.swt.widgets.Composite pParent)
Creates a horizontal sash pane.

Sash panes are compound panes where the subcomponents are divided by sashes (either horizontal or vertical).

Parameters:
pParent - composite used as parent for the pane composite
Returns:
created pane

createHorizontalSashPane

public static ISashPane createHorizontalSashPane(org.eclipse.swt.widgets.Composite pParent,
                                                 IWidgetFactory pWidgetFactory)
Creates a horizontal sash pane containing specially built widgets.
Parameters:
pParent - composite used as parent for the pane composite
pWidgetFactory - widget factory used to build the real widgets
Returns:
created pane

createVerticalSashPane

public static ISashPane createVerticalSashPane(org.eclipse.swt.widgets.Composite pParent)
Creates a vertical sash pane.
Parameters:
pParent - composite used as parent for the pane composite
Returns:
created pane

createVerticalSashPane

public static ISashPane createVerticalSashPane(org.eclipse.swt.widgets.Composite pParent,
                                               IWidgetFactory pWidgetFactory)
Creates a vertical sash pane containing specially built widgets.
Parameters:
pParent - composite used as parent for the pane composite
pWidgetFactory - widget factory used to build the real widgets
Returns:
created pane

establishGridLayoutPaneContainer

public static IGridLayoutPane establishGridLayoutPaneContainer(org.eclipse.swt.widgets.Composite pParent,
                                                               IGridLayoutPaneContainer pContainer,
                                                               IWidgetFactory pWidgetFactory)
Method establishGridLayoutPaneContainer.
Parameters:
pParent -  
pContainer -  
pWidgetFactory -  

establishGridLayoutPaneContainer

public static IGridLayoutPane establishGridLayoutPaneContainer(org.eclipse.swt.widgets.Composite pParent,
                                                               IGridLayoutPaneContainer pContainer)
Method establishGridLayoutPaneContainer.
Parameters:
pParent -  
pContainer -  


Copyright © 2005 SAP AG. All Rights Reserved.