Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » New RichText support in Tables
New RichText support in Tables [message #816488] Thu, 08 March 2012 23:05 Go to next message
Chris Fairhall is currently offline Chris FairhallFriend
Messages: 102
Registered: February 2011
Senior Member
Before I log an enhancement bug is it at all feasible to have different heights for TableItems in a Table?

The RWT.CUSTOM_ITEM_HEIGHT works fine in setting the height for all Items, but if one TableItem has text that has two lines and the one below it only has one line there's a lot of empty space.

Is there a way for text size determination to automatically set row heights? Is it possible to call setData on a TableItem and have that change the height of the row that displays it?
Re: New RichText support in Tables [message #816721 is a reply to message #816488] Fri, 09 March 2012 07:24 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 1872
Registered: July 2009
Senior Member
Hi Chris,
sorry, but this is not possible. There is a public method (API) in the
Tree/Table -> getItemHeight which returns a single value :-). Providing
a different items height will break the API and SWT compatibility.
Best,
Ivan

On 3/9/2012 1:05 AM, Chris Mising name wrote:
> Before I log an enhancement bug is it at all feasible to have
> different heights for TableItems in a Table?
>
> The RWT.CUSTOM_ITEM_HEIGHT works fine in setting the height for all
> Items, but if one TableItem has text that has two lines and the one
> below it only has one line there's a lot of empty space.
> Is there a way for text size determination to automatically set row
> heights? Is it possible to call setData on a TableItem and have that
> change the height of the row that displays it?

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Access Methods of Plugin
Next Topic:Accessing SessionSingleton from thread
Goto Forum:
  


Current Time: Fri Dec 19 06:34:51 GMT 2014

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

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