|
Thanks.
I
don't know about ColumnDecorators in conjunction with if sorting is dome pre or
post ColumnDecorator application. I've found TableDecorators much more
useful to my application (the same datasets are shown in multiple
places).
The
comments that I'm adding are for sorting purposes only, and therefore are added
by the TableDecorator. My domain objects know nothing about comments (or
should they).
All
that being said, your last comment concerning that sorting should be applied
through architecture, not through trickery, is spot-on. A column
comparator interface should probably be created, along with a few default
implementations (e.g.: CaseInsensitiveComparitor). This interface could be
passed to ColumnDecorators and TableDecorators. Then, when the sorter
comes a long, it would use the comparator on the attributes of the beans that
make up the rows of the table
Just
my $0.02
JDG
--
Jay Glanville
Web Developer
(613) 725-2030 x393
|
Title: Message

