public class TableReportElement extends Object implements ReportElement
| Modifier and Type | Field and Description |
|---|---|
protected int |
border |
protected Hashtable |
data |
protected int |
fontSize |
protected String |
htmlCode |
protected String |
identificator |
protected Layer |
layout |
protected Vector |
sorterColumns |
protected int |
tableCellpadding |
protected int |
tableCellspacing |
protected TextAttributes |
tableTextAttr |
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, HEADERID, PIEID, SUMMARYID, TITLEID| Constructor and Description |
|---|
TableReportElement(String id,
int width,
int height,
boolean pixels,
Hashtable tableValues)
Builds a table with the appropriate number of rows and columns and with
the specified indentifier
|
TableReportElement(String id,
int width,
int height,
boolean pixels,
Hashtable tableValues,
int fontSize) |
TableReportElement(String id,
int width,
int height,
boolean pixels,
Hashtable tableValues,
Vector sortColumns,
int fontSize) |
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
void |
insert(ReportFrame reportFrame,
boolean multipage)
Method that inserts the correct HTML code in report.
|
void |
insert(ReportFrame informe,
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(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
|
protected String htmlCode
protected String identificator
protected Hashtable data
protected int border
protected int fontSize
protected int tableCellspacing
protected int tableCellpadding
protected Layer layout
protected TextAttributes tableTextAttr
protected Vector sorterColumns
public TableReportElement(String id, int width, int height, boolean pixels, Hashtable tableValues)
id - width - height - pixels - tableValues - public TableReportElement(String id, int width, int height, boolean pixels, Hashtable tableValues, int fontSize)
public void sumColumns(String[] columnTitles)
columnTitles - public void setBorder(boolean bUseBorder)
bUseBorder - public void setCellpadding(int cellpadding)
public void setCellspacing(int cellspacing)
public void insert(ReportFrame reportFrame, boolean multipage) throws Error
ReportElementinsert in interface ReportElementreportFrame - The report framemultipage - condition to know when report is multipage or notErrorpublic void insert(ReportFrame informe, String identifier, boolean multipage)
ReportElementinsert in interface ReportElementinforme - The report frameidentifier - Position in template where element must be insertedmultipage - Condition to know when report is multipage or notpublic String getId()
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.