public class Reporter
extends java.lang.Object
| Constructor | Description |
|---|---|
Reporter(java.io.OutputStream out,
de.willuhn.util.ProgressMonitor monitor,
java.lang.String title,
java.lang.String subtitle,
int maxRecords) |
ct.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(com.itextpdf.text.Paragraph p) |
Fuegt einen neuen Absatz hinzu.
|
void |
addColumn(com.itextpdf.text.pdf.PdfPCell cell) |
Fuegt eine neue Spalte hinzu.
|
void |
addHeaderColumn(java.lang.String text,
int align,
int width,
com.itextpdf.text.BaseColor color) |
Fuegt der Tabelle einen neuen Spaltenkopf hinzu.
|
void |
close() |
Schliesst den Report.
|
void |
createHeader() |
Erzeugt den Tabellen-Header.
|
com.itextpdf.text.pdf.PdfPCell |
getDetailCell(double value) |
Erzeugt eine Zelle fuer die uebergebene Zahl.
|
com.itextpdf.text.pdf.PdfPCell |
getDetailCell(java.lang.Double value) |
Erzeugt eine Zelle der Tabelle.
|
com.itextpdf.text.pdf.PdfPCell |
getDetailCell(java.lang.String text,
int align) |
Erzeugt eine Zelle der Tabelle.
|
com.itextpdf.text.pdf.PdfPCell |
getDetailCell(java.lang.String text,
int align,
com.itextpdf.text.BaseColor backgroundcolor) |
Erzeugt eine Zelle der Tabelle.
|
com.itextpdf.text.pdf.PdfPCell |
getDetailCell(java.lang.String text,
int align,
com.itextpdf.text.BaseColor backgroundColor,
com.itextpdf.text.BaseColor textColor,
int fontStyle) |
Erzeugt eine Zelle der Tabelle.
|
java.lang.String |
notNull(java.lang.String text) |
Gibt einen Leerstring aus, falls der Text null ist.
|
void |
setNextRecord() |
Rueckt den Monitor weiter.
|
public Reporter(java.io.OutputStream out,
de.willuhn.util.ProgressMonitor monitor,
java.lang.String title,
java.lang.String subtitle,
int maxRecords)
throws com.itextpdf.text.DocumentException
out - monitor - title - subtitle - maxRecords - com.itextpdf.text.DocumentExceptionpublic void add(com.itextpdf.text.Paragraph p)
throws com.itextpdf.text.DocumentException
p - com.itextpdf.text.DocumentExceptionpublic void addHeaderColumn(java.lang.String text,
int align,
int width,
com.itextpdf.text.BaseColor color)
text - align - width - color - public void addColumn(com.itextpdf.text.pdf.PdfPCell cell)
cell - public void setNextRecord()
public void createHeader()
throws com.itextpdf.text.DocumentException
com.itextpdf.text.DocumentExceptionpublic void close()
throws java.io.IOException,
com.itextpdf.text.DocumentException
java.io.IOExceptioncom.itextpdf.text.DocumentExceptionpublic com.itextpdf.text.pdf.PdfPCell getDetailCell(java.lang.String text,
int align,
com.itextpdf.text.BaseColor backgroundcolor)
text - der anzuzeigende Text.align - die Ausrichtung.backgroundcolor - die Hintergundfarbe.public com.itextpdf.text.pdf.PdfPCell getDetailCell(java.lang.String text,
int align)
text - der anzuzeigende Text.align - die Ausrichtung.public com.itextpdf.text.pdf.PdfPCell getDetailCell(java.lang.String text,
int align,
com.itextpdf.text.BaseColor backgroundColor,
com.itextpdf.text.BaseColor textColor,
int fontStyle)
text - der anzuzeigende Text.align - die Ausrichtung.backgroundColor - die Hintergundfarbe.textColor - die Textfarbe.fontStyle - der Schrift-Style.public com.itextpdf.text.pdf.PdfPCell getDetailCell(java.lang.Double value)
value - die Zahl.public com.itextpdf.text.pdf.PdfPCell getDetailCell(double value)
value - die Zahl.public java.lang.String notNull(java.lang.String text)
text - der Text.