JRubik v0.6

es.aeat.eett.plugins.action_pdf
Class PDFTable

java.lang.Object
  extended byes.aeat.eett.plugins.action_pdf.PDFTable

public class PDFTable
extends java.lang.Object

Author:
f00992

en: Exports a JTable to PDF format (TableModel t_model).

es: Esta clase exporta a PDF una JTable (TableModel t_model).


Field Summary
private  java.awt.Color b_c_HeaderEven
           
private  java.awt.Color b_c_HeaderNormal
           
private  java.awt.Color b_c_HeaderSpan
           
private  java.awt.Color b_c_TableEven
           
private  java.awt.Color b_c_TableNormal
           
private  ConfiPdf confiPdf
           
private  com.lowagie.text.Font f_headerCol
           
private  com.lowagie.text.Font f_headerRow
           
private  com.lowagie.text.Font f_table
           
private  java.lang.String nameFile
           
private  javax.swing.table.TableModel t_model
           
 
Constructor Summary
protected PDFTable(javax.swing.table.TableModel t_model, ConfiPdf confiPdf, java.lang.String nameFile)
           
 
Method Summary
private  com.lowagie.text.Document build()
           
static com.lowagie.text.Document build(javax.swing.table.TableModel t_model, ConfiPdf confiPdf)
          Este el el metodo principal que hay que llamar para crear un pdf.
static com.lowagie.text.Document build(javax.swing.table.TableModel t_model, ConfiPdf confiPdf, java.lang.String nameFile)
          Este el el metodo principal que hay que llamar para crear un pdf.
private  com.lowagie.text.Table buildTabla()
           
private  void printCellData(com.lowagie.text.Table datatable, java.lang.String s)
           
private  void printCellHeaderCol(com.lowagie.text.Table datatable, java.lang.String s, int nCol)
           
private  void setColorHeader(boolean colorear)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

t_model

private javax.swing.table.TableModel t_model

nameFile

private java.lang.String nameFile

f_headerCol

private com.lowagie.text.Font f_headerCol

f_headerRow

private com.lowagie.text.Font f_headerRow

f_table

private com.lowagie.text.Font f_table

b_c_HeaderEven

private java.awt.Color b_c_HeaderEven

b_c_HeaderNormal

private java.awt.Color b_c_HeaderNormal

b_c_HeaderSpan

private java.awt.Color b_c_HeaderSpan

b_c_TableEven

private java.awt.Color b_c_TableEven

b_c_TableNormal

private java.awt.Color b_c_TableNormal

confiPdf

private ConfiPdf confiPdf
Constructor Detail

PDFTable

protected PDFTable(javax.swing.table.TableModel t_model,
                   ConfiPdf confiPdf,
                   java.lang.String nameFile)
Parameters:
t_model -
confiPdf -
nameFile -
Method Detail

build

public static com.lowagie.text.Document build(javax.swing.table.TableModel t_model,
                                              ConfiPdf confiPdf)
                                       throws java.io.FileNotFoundException,
                                              com.lowagie.text.DocumentException
Este el el metodo principal que hay que llamar para crear un pdf.

Parameters:
t_model -
confiPdf -
Returns:
Document
Throws:
java.io.FileNotFoundException
com.lowagie.text.DocumentException

build

public static com.lowagie.text.Document build(javax.swing.table.TableModel t_model,
                                              ConfiPdf confiPdf,
                                              java.lang.String nameFile)
                                       throws java.io.FileNotFoundException,
                                              com.lowagie.text.DocumentException
Este el el metodo principal que hay que llamar para crear un pdf.

Parameters:
t_model -
confiPdf -
nameFile -
Returns:
the Document
Throws:
java.io.FileNotFoundException
com.lowagie.text.DocumentException

build

private com.lowagie.text.Document build()
                                 throws java.io.FileNotFoundException,
                                        com.lowagie.text.DocumentException
Throws:
java.io.FileNotFoundException
com.lowagie.text.DocumentException

buildTabla

private com.lowagie.text.Table buildTabla()
                                   throws com.lowagie.text.BadElementException
Throws:
com.lowagie.text.BadElementException

printCellHeaderCol

private void printCellHeaderCol(com.lowagie.text.Table datatable,
                                java.lang.String s,
                                int nCol)
                         throws com.lowagie.text.BadElementException
Throws:
com.lowagie.text.BadElementException

printCellData

private void printCellData(com.lowagie.text.Table datatable,
                           java.lang.String s)
                    throws com.lowagie.text.BadElementException
Throws:
com.lowagie.text.BadElementException

setColorHeader

private void setColorHeader(boolean colorear)

JRubik v0.6

JRubik v0.6