net.mlw.vlh.web.tag.support
Class ExcelDisplayProvider

java.lang.Object
  extended bynet.mlw.vlh.web.tag.support.ExcelDisplayProvider
All Implemented Interfaces:
DisplayProvider

public class ExcelDisplayProvider
extends Object
implements DisplayProvider

Version:
$Revision: 1.4 $ $Date: 2005/11/23 14:37:14 $
Author:
Matthew L. Wilson, Andrej Zachar

Constructor Summary
ExcelDisplayProvider()
           
 
Method Summary
 boolean doesIncludeBodyContent()
           
 String emphase(String text, String emphasisPattern, String style)
          Get the HTML that emphase text.
 String getCellPostProcess()
           
 String getCellPreProcess(Attributes attributes)
           
 String getHeaderCellPostProcess()
          Get the HTML that comes after the column text.
 String getHeaderCellPreProcess(ColumnInfo columnInfo, ValueListInfo info)
          Get the HTML that comes before the column text.
 String getHeaderLabel(ColumnInfo columnInfo, TableInfo tableInfo, ValueListInfo info, Map includeParameters)
          Formats the text to be displayed as the header by waraping it in a link if sorting is enabled.
 String getHeaderRowPostProcess()
          Get the HTML that comes before the column text.
 String getHeaderRowPreProcess()
          Get the HTML that comes before the column text.
 String getMimeType()
           
 String getNestedHeaderPostProcess()
           
 String getNestedHeaderPreProcess(ColumnInfo columnInfo, ValueListInfo info)
           
 String getRowPostProcess()
           
 String getRowPreProcess(Attributes attributes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExcelDisplayProvider

public ExcelDisplayProvider()
Method Detail

getMimeType

public String getMimeType()
Specified by:
getMimeType in interface DisplayProvider
See Also:
AbstractHTMLDisplayProvider.getMimeType()

getHeaderRowPreProcess

public String getHeaderRowPreProcess()
Description copied from interface: DisplayProvider
Get the HTML that comes before the column text.

Specified by:
getHeaderRowPreProcess in interface DisplayProvider
Returns:
The HTML that comes before the column text.
See Also:
AbstractHTMLDisplayProvider.getHeaderRowPreProcess()

getHeaderCellPreProcess

public String getHeaderCellPreProcess(ColumnInfo columnInfo,
                                      ValueListInfo info)
Description copied from interface: DisplayProvider
Get the HTML that comes before the column text.

Specified by:
getHeaderCellPreProcess in interface DisplayProvider
Returns:
The HTML that comes before the column text.
See Also:
net.mlw.vlh.web.tag.support.HtmlDisplayProvider#getHeaderCellPreProcess()

getHeaderLabel

public String getHeaderLabel(ColumnInfo columnInfo,
                             TableInfo tableInfo,
                             ValueListInfo info,
                             Map includeParameters)
Description copied from interface: DisplayProvider
Formats the text to be displayed as the header by waraping it in a link if sorting is enabled.

Specified by:
getHeaderLabel in interface DisplayProvider
Parameters:
columnInfo - The ColumnInfo.
tableInfo - The TableInfo.
info - The ValueListInfo.
Returns:
The formated HTML.
See Also:
net.mlw.vlh.web.tag.support.HtmlDisplayProvider#getHeaderLabel(net.mlw.vlh.web.tag.ColumnInfo, net.mlw.vlh.web.tag.TableInfo, net.mlw.vlh.ValueListInfo)

getHeaderCellPostProcess

public String getHeaderCellPostProcess()
Description copied from interface: DisplayProvider
Get the HTML that comes after the column text.

Specified by:
getHeaderCellPostProcess in interface DisplayProvider
Returns:
The HTML that comes after the column text.
See Also:
HtmlDisplayProvider.getHeaderCellPostProcess()

getHeaderRowPostProcess

public String getHeaderRowPostProcess()
Description copied from interface: DisplayProvider
Get the HTML that comes before the column text.

Specified by:
getHeaderRowPostProcess in interface DisplayProvider
Returns:
The HTML that comes before the column text.
See Also:
AbstractHTMLDisplayProvider.getHeaderRowPostProcess()

getRowPreProcess

public String getRowPreProcess(Attributes attributes)
Specified by:
getRowPreProcess in interface DisplayProvider
See Also:
net.mlw.vlh.web.tag.support.HtmlDisplayProvider#getRowPreProcess(net.mlw.util.web.tag.Attributes)

getCellPreProcess

public String getCellPreProcess(Attributes attributes)
Specified by:
getCellPreProcess in interface DisplayProvider
See Also:
net.mlw.vlh.web.tag.support.HtmlDisplayProvider#getCellPreProcess(net.mlw.util.web.tag.Attributes)

getCellPostProcess

public String getCellPostProcess()
Specified by:
getCellPostProcess in interface DisplayProvider
See Also:
HtmlDisplayProvider.getCellPostProcess()

getRowPostProcess

public String getRowPostProcess()
Specified by:
getRowPostProcess in interface DisplayProvider
See Also:
AbstractHTMLDisplayProvider.getRowPostProcess()

doesIncludeBodyContent

public boolean doesIncludeBodyContent()
Specified by:
doesIncludeBodyContent in interface DisplayProvider

emphase

public String emphase(String text,
                      String emphasisPattern,
                      String style)
Description copied from interface: DisplayProvider
Get the HTML that emphase text.

Specified by:
emphase in interface DisplayProvider
Parameters:
style - CSS className for the span tag.
text - a String that represent source text to search the emphasis pattern.
emphasisPattern - a String that will be emphased in text.
Returns:
String Text with emphasised pattern.
See Also:
net.mlw.vlh.web.tag.support.DisplayProvider#emphase(java.lang.String, java.lang.String)

getNestedHeaderPreProcess

public String getNestedHeaderPreProcess(ColumnInfo columnInfo,
                                        ValueListInfo info)
Specified by:
getNestedHeaderPreProcess in interface DisplayProvider

getNestedHeaderPostProcess

public String getNestedHeaderPostProcess()
Specified by:
getNestedHeaderPostProcess in interface DisplayProvider


Copyright © 2003-2006 mlavilson. All Rights Reserved.