Ontimize 5.2072EN

com.ontimize.printing
Class TableReportElement

java.lang.Object
  extended bycom.ontimize.printing.TableReportElement
All Implemented Interfaces:
ReportElement

public class TableReportElement
extends java.lang.Object
implements ReportElement


Field Summary
protected  int border
           
protected  java.util.Hashtable data
           
protected  int fontSize
           
protected  java.lang.String htmlCode
           
protected  java.lang.String identificator
           
protected  Layer layout
           
protected  java.util.Vector sorterColumns
           
protected  int tableCellpadding
           
protected  int tableCellspacing
           
protected  TextAttributes tableTextAttr
           
 
Fields inherited from interface com.ontimize.printing.ReportElement
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, HEADERID, PIEID, SUMMARYID, TITLEID
 
Constructor Summary
TableReportElement(java.lang.String id, int width, int height, boolean pixels, java.util.Hashtable tableValues)
          Builds a table with the appropriate number of rows and columns and with the specified indentifier
TableReportElement(java.lang.String id, int width, int height, boolean pixels, java.util.Hashtable tableValues, int fontSize)
           
TableReportElement(java.lang.String id, int width, int height, boolean pixels, java.util.Hashtable tableValues, java.util.Vector sortColumns, int fontSize)
           
 
Method Summary
 java.lang.String getId()
           
 void insert(ReportFrame reportFrame, boolean multipage)
          Method that inserts the correct HTML code in report.
 void insert(ReportFrame informe, java.lang.String identifier, boolean multipage)
          Method that inserts an element into a report based on a template design.
 void setBorder(boolean bUseBorder)
          Puts or removes a border the table border
 void setCellpadding(int cellpadding)
           
 void setCellspacing(int cellspacing)
           
 void sumColumns(java.lang.String[] columnTitles)
          Values in the specified column will be sum at the end of the page (if the table is in more than one page) and at the end of the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

htmlCode

protected java.lang.String htmlCode

identificator

protected java.lang.String identificator

data

protected java.util.Hashtable data

border

protected int border

fontSize

protected int fontSize

tableCellspacing

protected int tableCellspacing

tableCellpadding

protected int tableCellpadding

layout

protected Layer layout

tableTextAttr

protected TextAttributes tableTextAttr

sorterColumns

protected java.util.Vector sorterColumns
Constructor Detail

TableReportElement

public TableReportElement(java.lang.String id,
                          int width,
                          int height,
                          boolean pixels,
                          java.util.Hashtable tableValues)
Builds a table with the appropriate number of rows and columns and with the specified indentifier

Parameters:
id -
width -
height -
pixels -
tableValues -

TableReportElement

public TableReportElement(java.lang.String id,
                          int width,
                          int height,
                          boolean pixels,
                          java.util.Hashtable tableValues,
                          int fontSize)

TableReportElement

public TableReportElement(java.lang.String id,
                          int width,
                          int height,
                          boolean pixels,
                          java.util.Hashtable tableValues,
                          java.util.Vector sortColumns,
                          int fontSize)
Method Detail

sumColumns

public void sumColumns(java.lang.String[] columnTitles)
Values in the specified column will be sum at the end of the page (if the table is in more than one page) and at the end of the table

Parameters:
columnTitles -

setBorder

public void setBorder(boolean bUseBorder)
Puts or removes a border the table border

Parameters:
bUseBorder -

setCellpadding

public void setCellpadding(int cellpadding)

setCellspacing

public void setCellspacing(int cellspacing)

insert

public void insert(ReportFrame reportFrame,
                   boolean multipage)
            throws java.lang.Error
Description copied from interface: ReportElement
Method that inserts the correct HTML code in report.

Specified by:
insert in interface ReportElement
Parameters:
reportFrame - The report frame
multipage - condition to know when report is multipage or not
Throws:
java.lang.Error

insert

public void insert(ReportFrame informe,
                   java.lang.String identifier,
                   boolean multipage)
Description copied from interface: ReportElement
Method that inserts an element into a report based on a template design.

Specified by:
insert in interface ReportElement
Parameters:
informe - The report frame
identifier - Position in template where element must be inserted
multipage - Condition to know when report is multipage or not

getId

public java.lang.String getId()

Ontimize