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 add the extra row you need.
> Do you
> have any SumDecorator already done?
>
> Thanks!
>
> Mael Caldas
>
>
>
> On 9/11/06, Mael Caldas <[EMAIL PROTECTED]> wrote:
>>
>> 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 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 values with a String parameter. I
>> > > want to
>> > > get the last row of the table with a sum of all data on each column.
>> > Does
>> > > anybody know how to do this in a simple way?
>> > >
>> > > Thank's!
>> > >
>> > > Mael Caldas
>> > >
>> >
>> >
>> > --
>> > Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
>> > Tapestry / Tacos developer
>> > Open Source / J2EE Consulting
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>


-- 
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to