click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph Schmidt (JIRA)" <>
Subject [jira] Commented: (CLK-298) Tables Should Allow Adjacent Columns To Be Tied Together For Sorting
Date Wed, 03 Mar 2010 13:42:27 GMT


Joseph Schmidt commented on CLK-298:

But can't be the above simply be done using a Table Decorator? Like:

but instead of having:
column = new Column("date");

column = new Column("time");
you would use something like:
column = new Column("both");
column.setDecorator(new Decorator() {
            public String render(Object row, Context context) {
                Customer customer = (Customer) row;
                String date = customer.getDateAsString();
                String time = customer.getTimeAsString();
                return date+"|"+time;

> Tables Should Allow Adjacent Columns To Be Tied Together For Sorting
> --------------------------------------------------------------------
>                 Key: CLK-298
>                 URL:
>             Project: Click
>          Issue Type: Improvement
>            Reporter: Joel Schmidt
>            Assignee: Malcolm Edgar
>            Priority: Minor
> It would be nice to be able to "tie" together adjacent column values together in a table
(e.g. date and time) for sorting purposes. Often a result set, which can otherwise be used
directly as a table model has values which should be combined for sorting purposes. Without
direct support for this in the Table class, the only way to achieve the result is defining
a view model solely for that purpose. At best this is a programming pain, and a worst unnecessarily

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

View raw message