org.displaytag.export
Class ExcelView

java.lang.Object
  extended by org.displaytag.export.BaseExportView
      extended by org.displaytag.export.ExcelView
All Implemented Interfaces:
ExportView, TextExportView

public class ExcelView
extends BaseExportView

Export view for excel exporting.

Version:
$Revision: 1081 $ ($Author: fgiust $)
Author:
Fabrizio Giustina

Constructor Summary
ExcelView()
           
 
Method Summary
protected  java.lang.String escapeColumnValue(java.lang.Object value)
          Escaping for excel format.
protected  boolean getAlwaysAppendCellEnd()
          always append cell end string?
protected  boolean getAlwaysAppendRowEnd()
          always append row end string?
protected  java.lang.String getCellEnd()
          String to add after a cell.
 java.lang.String getMimeType()
          MimeType to return.
protected  java.lang.String getRowEnd()
          String to add after a row.
 void setParameters(TableModel tableModel, boolean exportFullList, boolean includeHeader, boolean decorateValues)
          initialize the parameters needed for export.
 
Methods inherited from class org.displaytag.export.BaseExportView
doExport, doHeaders, getCellStart, getDocumentEnd, getDocumentStart, getRowStart, outputPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExcelView

public ExcelView()
Method Detail

setParameters

public void setParameters(TableModel tableModel,
                          boolean exportFullList,
                          boolean includeHeader,
                          boolean decorateValues)
Description copied from interface: ExportView
initialize the parameters needed for export. The method is guarantee be called before doExport() and getMimeType(). Classes implementing ExportView should reset any instance field previously set when this method is called, in order to support instance reusing.

Specified by:
setParameters in interface ExportView
Overrides:
setParameters in class BaseExportView
Parameters:
tableModel - TableModel to render
exportFullList - boolean export full list?
includeHeader - should header be included in export?
decorateValues - should output be decorated?
See Also:
BaseExportView.setParameters(TableModel, boolean, boolean, boolean)

getMimeType

public java.lang.String getMimeType()
Description copied from interface: ExportView
MimeType to return.

Returns:
"application/vnd.ms-excel"
See Also:
ExportView.getMimeType()

getRowEnd

protected java.lang.String getRowEnd()
Description copied from class: BaseExportView
String to add after a row.

Overrides:
getRowEnd in class BaseExportView
Returns:
String
See Also:
BaseExportView.getRowEnd()

getCellEnd

protected java.lang.String getCellEnd()
Description copied from class: BaseExportView
String to add after a cell.

Specified by:
getCellEnd in class BaseExportView
Returns:
String
See Also:
BaseExportView.getCellEnd()

getAlwaysAppendCellEnd

protected boolean getAlwaysAppendCellEnd()
Description copied from class: BaseExportView
always append cell end string?

Specified by:
getAlwaysAppendCellEnd in class BaseExportView
Returns:
false
See Also:
BaseExportView.getAlwaysAppendCellEnd()

getAlwaysAppendRowEnd

protected boolean getAlwaysAppendRowEnd()
Description copied from class: BaseExportView
always append row end string?

Specified by:
getAlwaysAppendRowEnd in class BaseExportView
Returns:
false
See Also:
BaseExportView.getAlwaysAppendRowEnd()

escapeColumnValue

protected java.lang.String escapeColumnValue(java.lang.Object value)
Escaping for excel format.

Specified by:
escapeColumnValue in class BaseExportView
Parameters:
value - original column value
Returns:
escaped column value
See Also:
BaseExportView.escapeColumnValue(java.lang.Object)


Copyright © 2002-2007 the Displaytag team. All Rights Reserved.