|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.displaytag.export.DefaultItextExportView
public abstract class DefaultItextExportView
Exporter using iText: subclasses export to any of the iText document types, such as PDF and RTF.
| Constructor Summary | |
|---|---|
DefaultItextExportView()
|
|
| Method Summary | |
|---|---|
void |
doExport(java.io.OutputStream out)
Returns the exported content as a String. |
java.lang.String |
getMimeType()
MimeType to return. |
protected abstract void |
initItextWriter(com.lowagie.text.Document document,
java.io.OutputStream out)
Initializes the iText writer used by export view to write iText document, such as PDF or RTF iText writer. |
void |
setParameters(TableModel tableModel,
boolean exportFullList,
boolean includeHeader,
boolean decorateValues)
initialize the parameters needed for export. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultItextExportView()
| Method Detail |
|---|
public void setParameters(TableModel tableModel,
boolean exportFullList,
boolean includeHeader,
boolean decorateValues)
ExportViewdoExport()
and getMimeType(). Classes implementing ExportView should reset any instance field previously set
when this method is called, in order to support instance reusing.
setParameters in interface ExportViewtableModel - TableModel to renderexportFullList - boolean export full list?includeHeader - should header be included in export?decorateValues - should output be decorated?ExportView.setParameters(TableModel, boolean, boolean, boolean)public java.lang.String getMimeType()
ExportView
getMimeType in interface ExportViewMeant to be overwritten by subclasses.
public void doExport(java.io.OutputStream out)
throws javax.servlet.jsp.JspException
BinaryExportView
doExport in interface BinaryExportViewout - output writer
javax.servlet.jsp.JspException - for other exceptions during exportBinaryExportView.doExport(OutputStream)
protected abstract void initItextWriter(com.lowagie.text.Document document,
java.io.OutputStream out)
throws com.lowagie.text.DocumentException
document - The iText document to be written.out - The output stream to which the document is written.
com.lowagie.text.DocumentException - If something goes wrong during initialization.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||