it.eng.spagobi.engines.worksheet.exporter
Class DataSourceTablePDFExporter
java.lang.Object
it.eng.spagobi.engines.worksheet.exporter.DataSourceTablePDFExporter
public class DataSourceTablePDFExporter
- extends java.lang.Object
Field Summary |
static org.apache.log4j.Logger |
logger
|
Constructor Summary |
DataSourceTablePDFExporter(it.eng.spagobi.tools.dataset.common.datastore.IDataStore dataStore,
java.text.DecimalFormat numberFormat,
java.lang.String userDateFormat)
|
Method Summary |
void |
buildTableContent(it.eng.spagobi.tools.dataset.common.datastore.IDataStore dataStore,
PdfPTable table)
Build the content of the table |
PdfPTable |
buildTableHeader(it.eng.spagobi.tools.dataset.common.datastore.IDataStore dataStore)
Builds the header of the table.. |
void |
export(com.lowagie.text.Document pdfDocument)
Create the object table and put it in the
pdf document |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public static transient org.apache.log4j.Logger logger
DataSourceTablePDFExporter
public DataSourceTablePDFExporter(it.eng.spagobi.tools.dataset.common.datastore.IDataStore dataStore,
java.text.DecimalFormat numberFormat,
java.lang.String userDateFormat)
export
public void export(com.lowagie.text.Document pdfDocument)
throws com.lowagie.text.BadElementException,
com.lowagie.text.DocumentException
- Create the object table and put it in the
pdf document
- Parameters:
pdfDocument
- the destination document
- Throws:
com.lowagie.text.BadElementException
com.lowagie.text.DocumentException
buildTableHeader
public PdfPTable buildTableHeader(it.eng.spagobi.tools.dataset.common.datastore.IDataStore dataStore)
throws com.lowagie.text.BadElementException
- Builds the header of the table..
It creates also the object table..
- Parameters:
dataStore
-
- Returns:
- the table object
- Throws:
com.lowagie.text.BadElementException
buildTableContent
public void buildTableContent(it.eng.spagobi.tools.dataset.common.datastore.IDataStore dataStore,
PdfPTable table)
throws com.lowagie.text.BadElementException
- Build the content of the table
- Parameters:
dataStore
- table
- the table with the headers
- Throws:
com.lowagie.text.BadElementException