TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.tools.internal
Class DTableCreator

java.lang.Object
  extended by org.eclipse.tptp.platform.report.tools.internal.DTableCreator

Deprecated. As of TPTP 4.5.0, use the TPTP Business Intelligence and Reporting Tools (BIRT) reporting infrastructure (org.eclipse.tptp.platform.report.birt).

public class DTableCreator
extends java.lang.Object

This class provides a tool to create a DTable and its content by giving data from several sources: array, list and SQL

See Also:
DTable

Field Summary
static int ALL_LEFT
          Deprecated. All columns are aligned to the left side
static int ALL_RIGHT
          Deprecated. All columns are aligned to the right side
static int FIRST_LEFT_OTHERS_RIGHT
          Deprecated. All columns except the first column are aligned to right (the first is aligned to the left side)
 
Constructor Summary
DTableCreator()
          Deprecated.  
 
Method Summary
static DTable FreeAlignmentLinedTable(IDTableContentProvider data, java.lang.String[] header, DStyle headerStyle, DStyle[] rowStyles, int[] colAlign)
          Deprecated.  
static DTable LinedTableWithAlignment(IDTableContentProvider data, java.lang.String[] header, DStyle headerStyle, DStyle rowPaired, DStyle rowUnPaired, int colAlign)
          Deprecated.  
static DTable SimpleTable(IDTableContentProvider data, DStyle cellStyle)
          Deprecated.  
static DTable TableWithHeader(IDTableContentProvider data, java.lang.String[] header, DStyle headerStyle, DStyle cellStyle)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIRST_LEFT_OTHERS_RIGHT

public static final int FIRST_LEFT_OTHERS_RIGHT
Deprecated. 
All columns except the first column are aligned to right (the first is aligned to the left side)

See Also:
#FreeAlignmentLinedTable(IDTableContentProvider, String[], DStyle, DStyle, DStyle, int), Constant Field Values

ALL_LEFT

public static final int ALL_LEFT
Deprecated. 
All columns are aligned to the left side

See Also:
#FreeAlignmentLinedTable(IDTableContentProvider, String[], DStyle, DStyle, DStyle, int), Constant Field Values

ALL_RIGHT

public static final int ALL_RIGHT
Deprecated. 
All columns are aligned to the right side

See Also:
#FreeAlignmentLinedTable(IDTableContentProvider, String[], DStyle, DStyle, DStyle, int), Constant Field Values
Constructor Detail

DTableCreator

public DTableCreator()
Deprecated. 
Method Detail

SimpleTable

public static DTable SimpleTable(IDTableContentProvider data,
                                 DStyle cellStyle)
Deprecated. 
Parameters:
cellStyle - define the style for all the cell which has been created by the method. its value can be null
Returns:
a DTable filled with the data. A style tableStyle can be associated to the cell which has been created by the method.

TableWithHeader

public static DTable TableWithHeader(IDTableContentProvider data,
                                     java.lang.String[] header,
                                     DStyle headerStyle,
                                     DStyle cellStyle)
Deprecated. 
Returns:
a DTable filled with the data and add an header. A style tableStyle can be associated to the cell which has been created by the method. Each string of the array header is used to label the columns.
See Also:
SimpleTable(IDTableContentProvider, DStyle)

LinedTableWithAlignment

public static DTable LinedTableWithAlignment(IDTableContentProvider data,
                                             java.lang.String[] header,
                                             DStyle headerStyle,
                                             DStyle rowPaired,
                                             DStyle rowUnPaired,
                                             int colAlign)
Deprecated. 
Returns:
a DTable filled with the data. An header can be added to the table. Each string of the arrat is used to label the columns. This method allows you to set a different style for the header and a style for the paired and unpaired row. It allows to set an alignment type for the content in the cell of a column with the parameter colAlign. The values are:
  • ALIGN_COL_FIRST_LEFT_OTHER_RIGHT
  • ALIGN_COL_ALL_LEFT
  • ALIGN_COL_ALL_RIGHT
See Also:
#TableWithHeader(IDTableContentProvider, String[], DStyle)

FreeAlignmentLinedTable

public static DTable FreeAlignmentLinedTable(IDTableContentProvider data,
                                             java.lang.String[] header,
                                             DStyle headerStyle,
                                             DStyle[] rowStyles,
                                             int[] colAlign)
Deprecated. 
Parameters:
colAlign - is an array of IDAlignment values
Returns:
a DTable filled with the data, whith an header and a style for the header and an alignment for each column.
See Also:
IDAlignment

TPTP 4.5.0 Platform Project
Internal API Specification