|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.displaytag.export.BaseExportView
public abstract class BaseExportView
Base abstract class for simple export views.
A class that extends BaseExportView simply need to provide delimiters for rows and columns.
| Constructor Summary | |
|---|---|
BaseExportView()
|
|
| Method Summary | |
|---|---|
void |
doExport(java.io.Writer out)
Returns the exported content as a String. |
protected java.lang.String |
doHeaders()
Write table header. |
protected abstract java.lang.String |
escapeColumnValue(java.lang.Object value)
can be implemented to escape values for different output. |
protected abstract boolean |
getAlwaysAppendCellEnd()
always append cell end string? |
protected abstract boolean |
getAlwaysAppendRowEnd()
always append row end string? |
protected abstract java.lang.String |
getCellEnd()
String to add after a cell. |
protected java.lang.String |
getCellStart()
String to add before a cell. |
protected java.lang.String |
getDocumentEnd()
String to add to the end of document. |
protected java.lang.String |
getDocumentStart()
String to add to the top of document. |
protected java.lang.String |
getRowEnd()
String to add after a row. |
protected java.lang.String |
getRowStart()
String to add before a row. |
boolean |
outputPage()
If true exported data will be included in the html page. |
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 |
| Methods inherited from interface org.displaytag.export.ExportView |
|---|
getMimeType |
| Constructor Detail |
|---|
public BaseExportView()
| 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(org.displaytag.model.TableModel, boolean, boolean, boolean)protected java.lang.String getRowStart()
protected java.lang.String getRowEnd()
protected java.lang.String getCellStart()
protected abstract java.lang.String getCellEnd()
protected java.lang.String getDocumentStart()
protected java.lang.String getDocumentEnd()
protected abstract boolean getAlwaysAppendCellEnd()
protected abstract boolean getAlwaysAppendRowEnd()
protected abstract java.lang.String escapeColumnValue(java.lang.Object value)
value - original column value
protected java.lang.String doHeaders()
public void doExport(java.io.Writer out)
throws java.io.IOException,
javax.servlet.jsp.JspException
TextExportView
doExport in interface TextExportViewout - output writer
java.io.IOException - for exceptions in accessing the output stream
javax.servlet.jsp.JspException - for other exceptions during exportTextExportView.doExport(java.io.Writer)public boolean outputPage()
TextExportViewtrue exported data will be included in the html page. actually not evaluated. Included
for future enhancements
outputPage in interface TextExportViewtrue if exported data should be included in the html pageTextExportView.outputPage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||