com.ontimize.printing
Class TableReportElement
java.lang.Object
com.ontimize.printing.TableReportElement
- All Implemented Interfaces:
- ReportElement
- public class TableReportElement
- extends java.lang.Object
- implements ReportElement
|
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 |
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
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)
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 framemultipage - 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 frameidentifier - Position in template where element must be insertedmultipage - Condition to know when report is multipage or not
getId
public java.lang.String getId()