Home » displaytag-1.1.1-src » org » displaytag » decorator » [javadoc | source]
org.displaytag.decorator
abstract public class: TableDecorator [javadoc | source]
java.lang.Object
   org.displaytag.decorator.Decorator
      org.displaytag.decorator.TableDecorator

Direct Known Subclasses:
    HssfTotalWrapper, HtmlTotalWrapper, TableDecoratorDate, TableDecoratorCssRow, Wrapper, TotalTableDecorator, TableDecoratorOne, MultilevelTotalTableDecorator, ItextTotalWrapper, ListIndexTableDecorator, TotalWrapperTemplate, TableDecoratorTwo

Fields inherited from org.displaytag.decorator.Decorator:
tableModel
Method from org.displaytag.decorator.TableDecorator Summary:
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.TableDecorator Detail:
 public String addRowClass() 
    Call back to add an additional row class to the current row.
 public String addRowId() 
    Call back to allow setting an "id" attribute on a row.
 public String displayGroupedValue(String cellValue,
    short groupingStatus,
    int columnNumber) 
    What value should I display in this cell? The default value for grouped columns is to not display any value if the cellValue has not changed on an interior iteration. Only invoked for columns that are grouped.
 public  void endOfGroup(String value,
    int groupThatHasEnded) 
    Called at the end of a group. Can be subclassed to provide specific data at the end of a row.
 protected Object evaluate(String propertyName) 
    Shortcut for evaluating properties in the current row object. Can be useful for implementing anonymous decorators in jsp pages without having to know/import the decorated object Class.
 public  void finish() 
    Called at the end of evaluation. Can be subclassed to eventully clean up data. Always remember to also call super.finish()!
 public String finishRow() 
    Called at the end of a row. Can be subclassed to provide specific data at the end of a row
 public final Object getCurrentRowObject() 
    Get the object representing the current row.
 public final int getListIndex() 
    Return the index in the full list (view index + offset). Note that the index returned if from the sorted list, and not from the original one.
 public final int getViewIndex() 
    Return the index in the displayed list.
 public final  void initRow(Object rowObject,
    int currentViewIndex,
    int currentListIndex) 
    Initialize the current row. Note this method is also called when sorting a table using a property supplied by the table decorator, so the method could be called multiple times during rendering. When used to initialize sorting the method is always called with 0, 0 as currentViewIndex and currentListIndex.
 public boolean isLastRow() 
 public  void startOfGroup(String value,
    int group) 
    Indicates that we are begining a new group.
 public String startRow() 
    Called at the beginning of a row. Can be subclassed to provide specific data at the beginning of a row