Hi Torsten
You can have renderers in a table header but it is not possible to have editors
there.
Instead you would need to use your own table header that would include the usual
table header plus a pane containing the filter fields. You would need to
implement an extension for this because the filter fields must adapt their width
and position to the table columns. So in a subclass of UITable.BasicTable you
would need to install your special header:
JPanel columnHeaderView = new JPanel(new BorderLayout());
columnHeaderView.add(getTableHeader());
columnHeaderView.add(filterFieldsPane, BorderLayout.SOUTH);
scrollPane.setColumnHeaderView(columnHeaderView);
A ColumnModelListener must then be installed to listen to changes of the width
and position of columns to adapt the width and position of the fields
accordingly.
I hope this helps.
Cheers
Rolf
**************************************
Rolf Pfenninger
Canoo Engineering AG
Kirschgartenstrasse 7
CH-4051 Basel
Tel +41 61 228 9444
Fax +41 61 228 9449
mailto:[EMAIL PROTECTED]
http://www.canoo.com
ULC - Rich Clients for J2EE
http://www.canoo.com/ulc
**************************************
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Hofmann,
> Torsten
> Sent: Mittwoch, 13. Dezember 2006 11:44
> To: [email protected]
> Subject: [ULC-developer] Change Header for ULCTable
>
>
> Hello
>
> Is it possible to change the HeaderRenderer from ULCLabel to ULCTextField.
> I try to use this for example for a filtering table. So i want to
> have in the header a ULCTextField. Is this possible?
>
> How could i change the headerComponent?
>
> Regards
>
> Torsten Hofmann
> Dipl. - Informatiker (FH)
> IT Consultant Business Integration
>
> Würth Phoenix GmbH
> Drillberg 6
> D-97980 Bad Mergentheim
>
> Phone: +49 7931 91 6284
> Fax: +49 7931 91 7284
> E-Mail: [EMAIL PROTECTED]
> Website: www.wuerth-phoenix.de
>
> _______________________________________________
> ULC-developer mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/ulc-developer
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer