Re: Contrib Table Summarize

2006-09-12 Thread andyhot
Mael Caldas wrote: > If I implement the decorator pattern by myself, how can I let the row > only > on the last position, even if the user change the sorter collumn? You're right. If you need sorting, you can't do it this way. You'll probably have to create your own IBasicTableModel and make it a

Re: Contrib Table Summarize

2006-09-11 Thread Mael Caldas
If I implement the decorator pattern by myself, how can I let the row only on the last position, even if the user change the sorter collumn? Do you have any SumDecorator already done? Thanks! Mael Caldas On 9/11/06, Mael Caldas <[EMAIL PROTECTED]> wrote: SumDecorator, decorator pattern? I d

Re: Contrib Table Summarize

2006-09-11 Thread Mael Caldas
SumDecorator, decorator pattern? I didn't see anything about that in any documentation... Can you give-me some example or a link? Thank you, Mael Caldas On 9/1/06, andyhot <[EMAIL PROTECTED]> wrote: cotrib:Table can't do anything by itself but I'd use the decorator pattern... public Collect

Re: Contrib Table Summarize

2006-09-01 Thread andyhot
cotrib:Table can't do anything by itself but I'd use the decorator pattern... public Collection getData() { return new SumDecorator( getRealData() ); } Mael Caldas wrote: > Hi, > > I'm using the contrib Table component, iterating over a Collection of Row > Objects, and setting the collumns value