Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Truncated table header texts
Truncated table header texts [message #89481] Fri, 23 May 2008 06:50 Go to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
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
Previous Topic:Label.computeSize
Next Topic:How to catch ENTER on a button
Goto Forum:
  


Current Time: Sat Apr 27 00:12:08 GMT 2024

Powered by FUDForum. Page generated in 0.03849 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top