org.displaytag.sample.decorators
public class: ItextTotalWrapper [javadoc |
source]
java.lang.Object
org.displaytag.decorator.Decorator
org.displaytag.decorator.TableDecorator
org.displaytag.sample.decorators.TotalWrapperTemplate
org.displaytag.sample.decorators.ItextTotalWrapper
All Implemented Interfaces:
ItextDecorator
Same idea implemented in ItextTableWriter applied to decorators.
| Methods from org.displaytag.decorator.TableDecorator: |
|---|
|
addRowClass, addRowId, displayGroupedValue, endOfGroup, evaluate, finish, finishRow, getCurrentRowObject, getListIndex, getViewIndex, initRow, isLastRow, startOfGroup, startRow |
| Method from org.displaytag.sample.decorators.ItextTotalWrapper Detail: |
public void setFont(Font font) {
this.font = font;
}
Set the font required to render the totals line. |
public void setTable(Table table) {
this.table = table;
}
Set the table required to render the totals line. |
public String startRow() {
this.table.setDefaultCellBorder(Rectangle.BOTTOM);
return null;
}
Writes cell border at bottom of cell. |
protected void writeCityTotal(String city,
double total) {
this.writeTotal(city, total);
}
Writes the city total line. |
protected void writeGrandTotal(double total) {
this.writeTotal("Grand", total);
}
Writes the table grand total |