Home » displaytag-1.1.1-src » org » displaytag » decorator » [javadoc | source]
org.displaytag.decorator
public class: TotalTableDecorator [javadoc | source]
java.lang.Object
   org.displaytag.decorator.Decorator
      org.displaytag.decorator.TableDecorator
         org.displaytag.decorator.TotalTableDecorator
A table decorator which adds rows with totals (for column with the "total" attribute set) and subtotals (grouping by the column with a group="1" attribute).
Fields inherited from org.displaytag.decorator.Decorator:
tableModel
Method from org.displaytag.decorator.TotalTableDecorator Summary:
createTotalRow,   finishRow,   init,   setSubtotalLabel,   setTotalLabel,   startRow
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.decorator.TotalTableDecorator Detail:
 protected String createTotalRow(boolean grandTotal) 
 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.
 public  void init(PageContext context,
    Object decorated,
    TableModel tableModel) 
 public  void setSubtotalLabel(String subtotalLabel) 
    Setter for subtotalLabel.
 public  void setTotalLabel(String totalLabel) 
    Setter for totalLabel.
 public String startRow()