Home » displaytag-1.1.1-src » org » displaytag » sample » decorators » [javadoc | source]
abstract public class: TotalWrapperTemplate [javadoc | source]

Direct Known Subclasses:
    HssfTotalWrapper, HtmlTotalWrapper, ItextTotalWrapper

Same idea implemented in TableWriterTemplate applied to decorators.
Fields inherited from org.displaytag.decorator.Decorator:
Method from org.displaytag.sample.decorators.TotalWrapperTemplate Summary:
finishRow,   getStringBuffer,   writeCityTotal,   writeGrandTotal
Methods from org.displaytag.decorator.TableDecorator:
addRowClass,   addRowId,   displayGroupedValue,   endOfGroup,   evaluate,   finish,   finishRow,   getCurrentRowObject,   getListIndex,   getViewIndex,   initRow,   isLastRow,   startOfGroup,   startRow
Methods from org.displaytag.decorator.Decorator:
finish,   getDecoratedObject,   getPageContext,   hasGetterFor,   init,   init,   searchGetterFor
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.displaytag.sample.decorators.TotalWrapperTemplate Detail:
 public final String finishRow() 
    After every row completes we evaluate to see if we should be drawing a new total line and summing the results from the previous group.
 protected StringBuffer getStringBuffer() 
    Obtain the StringBuffer used to build the totals line.
 abstract protected  void writeCityTotal(String city,
    double total)
    Render the city total in the appropriate format.
 abstract protected  void writeGrandTotal(double total)
    Render the grand total in the appropriate format.