click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Schellink (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CLK-362) Column.setTotalizer(true) - render the Column totals
Date Fri, 05 Feb 2010 14:24:28 GMT

     [ https://issues.apache.org/jira/browse/CLK-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bob Schellink resolved CLK-362.
-------------------------------

    Resolution: Fixed

Seems this feature is implemented in trunk. If not please reopen it for against future release.

> Column.setTotalizer(true) - render the Column totals
> ----------------------------------------------------
>
>                 Key: CLK-362
>                 URL: https://issues.apache.org/jira/browse/CLK-362
>             Project: Click
>          Issue Type: New Feature
>    Affects Versions: 1.5 M2
>            Reporter: Ricardo R. Lecheta
>            Assignee: Malcolm Edgar
>             Fix For: 2.1.0
>
>         Attachments: click-page.properties, Column.java, Person.java, Table.java, teste.htm,
TestePage.java
>
>
> A very useful feature is to automatically sum the total of some numeric columns.
> I attached my implementation of this. It´s working in production of some application
for me.
> To use it jut call column.setTotalizer(true);
> c = new Column("valor1");
> c.setTotalizer(true);
> table1.addColumn(c);
> ------------------
> How it works:
> - In the Column.renderTableData if the colum is totalizer, it is gonna sum the values.
> - The table nows if some column is totalizer, so if there are one or more... it will
render more one row under the table.
> - The important methods are: Column.sum(Object row) and Table.renderTotalRows
> looking forward to see this in 1.5M2,
> thank you

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message