Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT multiline table with rows of different sizes
SWT multiline table with rows of different sizes [message #897234] Mon, 23 July 2012 06:20 Go to next message
Eclipse UserFriend
Hi all,

I have used one of the multiline samples in the web to create a SWT multiline table. I use a TableViewer with a label provider subclassed from OwnerDrawLabelProvider.

Everything worked ok until I have tried to have cells of different heights as the table have problems in painting and selection.

I have been googling for a while and I have found a post back in 2005 where it was said that this feature was not supported.

Could anyone tell me if it is currently supported?

Thanks in advance

Lluís
Re: SWT multiline table with rows of different sizes [message #897249 is a reply to message #897234] Mon, 23 July 2012 08:02 Go to previous messageGo to next message
Eclipse UserFriend
Hi Lluis,

have you looked at the Snippet006TableMultiLineCells JFace snippet? It has row's height based on the text content.
http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/viewers/Snippet006TableMultiLineCells.java?view=markup
Re: SWT multiline table with rows of different sizes [message #897255 is a reply to message #897234] Mon, 23 July 2012 08:28 Go to previous messageGo to next message
Eclipse UserFriend
This restriction still applies - you need to use a custom drawn control
like Nebula-Grid or NatTable.

Tom

Am 23.07.12 12:20, schrieb Lluis Barbal:
> Hi all,
>
> I have used one of the multiline samples in the web to create a SWT
> multiline table. I use a TableViewer with a label provider subclassed
> from OwnerDrawLabelProvider.
>
> Everything worked ok until I have tried to have cells of different
> heights as the table have problems in painting and selection.
>
> I have been googling for a while and I have found a post back in 2005
> where it was said that this feature was not supported.
>
> Could anyone tell me if it is currently supported?
>
> Thanks in advance
>
> Lluís
>
Re: SWT multiline table with rows of different sizes [message #897258 is a reply to message #897255] Mon, 23 July 2012 08:39 Go to previous messageGo to next message
Eclipse UserFriend
Hi all,

First of all, thank you all for your fast replies; is nice to have people trying to help you when you have a problem.

Ok. I will have a look at them.

Lluís
Re: SWT multiline table with rows of different sizes [message #897311 is a reply to message #897258] Mon, 23 July 2012 10:46 Go to previous messageGo to next message
Eclipse UserFriend
Well, I thought you would like to have each row of different height.

In case you would like to have each single cell different height, it's impossible as Thomas said.
Re: SWT multiline table with rows of different sizes [message #897444 is a reply to message #897311] Tue, 24 July 2012 03:43 Go to previous messageGo to next message
Eclipse UserFriend
Hi Jan,

Ooooops, my mistake. YOU ARE RIGHT, I meant rows, not cells.

Anyway, the sample I used was similar to the one that you are pointing and it didn't work with different ROW heights. Are you sure different ROW heights are supported?

By the way, is it possible to use add editing cappabilities to the cells?

Thanks and sorry for the misunderstanding.

Lluís
Re: SWT multiline table with rows of different sizes [message #897473 is a reply to message #897444] Tue, 24 July 2012 04:48 Go to previous messageGo to next message
Eclipse UserFriend
No SWT-Tables in SWT-Tables all rows have to have the sameheight.

Tom

Am 24.07.12 09:43, schrieb Lluis Barbal:
> Hi Jan,
>
> Ooooops, my mistake. YOU ARE RIGHT, I meant rows, not cells.
>
> Anyway, the sample I used was similar to the one that you are pointing
> and it didn't work with different ROW heights. Are you sure different
> ROW heights are supported?
>
> By the way, is it possible to use add editing cappabilities to the cells?
>
> Thanks and sorry for the misunderstanding.
>
> Lluís
Re: SWT multiline table with rows of different sizes [message #897481 is a reply to message #897473] Tue, 24 July 2012 05:14 Go to previous messageGo to next message
Eclipse UserFriend
Oh, I can see it now. All the rows have really the same height.

They are first low, but when you start scrolling down, they ALL suddenly get bigger. That confused me.

So I have to apologize to you for giving you a false hope, Tom is right.
Re: SWT multiline table with rows of different sizes [message #899021 is a reply to message #897481] Mon, 30 July 2012 04:11 Go to previous message
Eclipse UserFriend
Jan, Thomas,

Thanks for your comments. I will have a look at Nebula-Grid or NatTable.

Lluís
Previous Topic:drag & drop: source and target are the same
Next Topic:Java<-->JavaScript - window.external
Goto Forum:
  


Current Time: Mon Jul 07 15:55:40 EDT 2025

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

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

Back to the top