Truncated table header texts [message #89481] |
Fri, 23 May 2008 06:50 |
|
Hi all,
Table header texts that are too long will be truncated on 1st display,
user has to resize the columns to make them visible. I've created bug
#233614 for this along with screenshot both in RAP & RCP.
Also, how do you make table columns occupy the entire horizontal table
area ?
Best Regards,
Setya
|
|
|
Re: Truncated table header texts [message #89561 is a reply to message #89481] |
Fri, 23 May 2008 10:30 |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
Setya,
regarding the table column texts, please see my comment on the bug.
In order to stretch a column horizontally, you could try something
like this:
column.setWidth( table.getClientArea().width );
Cheers,
Rüdiger
Setya wrote:
> Hi all,
>
> Table header texts that are too long will be truncated on 1st display,
> user has to resize the columns to make them visible. I've created bug
> #233614 for this along with screenshot both in RAP & RCP.
>
> Also, how do you make table columns occupy the entire horizontal table
> area ?
>
> Best Regards,
>
> Setya
>
>
|
|
|
Re: Truncated table header texts [message #89575 is a reply to message #89561] |
Fri, 23 May 2008 11:48 |
|
Rüdiger,
> In order to stretch a column horizontally, you could try something
> like this:
> column.setWidth( table.getClientArea().width );
Thanks for your help above.
Your snippet assume that I only have 1 column in the table, what if I have
more ? I need similiar behavior like in Swing's JTable which by using
setAutoResizeMode we can arrange all the table's columns to stretch
proportionally to fill the entire table horizontal width.
Regards,
Setya
|
|
|
Re: Truncated table header texts [message #89604 is a reply to message #89575] |
Fri, 23 May 2008 11:57 |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
Setya,
maybe you can achieve similar by using JFace TableColumnLayout with
ColumnWeightData.
Cheers,
Rüdiger
Setya wrote:
> Rüdiger,
>
>> In order to stretch a column horizontally, you could try something
>> like this:
>> column.setWidth( table.getClientArea().width );
>
> Thanks for your help above.
>
> Your snippet assume that I only have 1 column in the table, what if I
> have more ? I need similiar behavior like in Swing's JTable which by
> using setAutoResizeMode we can arrange all the table's columns to
> stretch proportionally to fill the entire table horizontal width.
>
> Regards,
>
> Setya
>
|
|
|
Re: Truncated table header texts [message #89645 is a reply to message #89604] |
Fri, 23 May 2008 13:17 |
|
Rüdiger,
> maybe you can achieve similar by using JFace TableColumnLayout with
> ColumnWeightData.
This indeed is the solution. But I think the layout usage forces us to
leak the concern of layouting which should happen in separate UI class.
When using this layout we have to assign the ColumnWeightData for each
column and in my case the number of columns is unknown during layouting
and is determined by business rules which takes place in controller.
Regards,
Setya
|
|
|
Powered by
FUDForum. Page generated in 0.03849 seconds