Package org.displaytag.sample

Examples of org.displaytag.sample.ReportableListObject


    @SuppressWarnings("deprecation")
    @Override
    public final String finishRow()
    {
        int listindex = ((List<ReportableListObject>) getDecoratedObject()).indexOf(this.getCurrentRowObject());
        ReportableListObject reportableObject = (ReportableListObject) this.getCurrentRowObject();
        String nextCity = null;

        this.cityTotal += reportableObject.getAmount();
        this.grandTotal += reportableObject.getAmount();

        if (listindex != ((List<ReportableListObject>) getDecoratedObject()).size() - 1)
        {
            nextCity = (((List<ReportableListObject>) getDecoratedObject()).get(listindex + 1)).getCity();
        }

        this.buffer = new StringBuffer(1000);

        // City subtotals...
        if (!ObjectUtils.equals(nextCity, reportableObject.getCity()))
        {
            writeCityTotal(reportableObject.getCity(), this.cityTotal);
            this.cityTotal = 0;
        }

        // Grand totals...
        if (getViewIndex() == ((List<ReportableListObject>) getDecoratedObject()).size() - 1)
View Full Code Here

TOP

Related Classes of org.displaytag.sample.ReportableListObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.