Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » column pack on virtual table(pack on virtual table dosen't work)
column pack on virtual table [message #1066404] Tue, 02 July 2013 09:03 Go to next message
Marco Feldmann is currently offline Marco Feldmann
Messages: 21
Registered: March 2013
Junior Member
Hello,
the pack for table column dosen't work correctly by using virtual table. When the table isn't virtual the pack works fine.

I've attached a test view that illustrate the problem.

Have anyone a solution?

Thanks Marco.
  • Attachment: View.java
    (Size: 2.13KB, Downloaded 46 times)
  • Attachment: table1.png
    (Size: 1.97KB, Downloaded 27 times)
  • Attachment: table2.png
    (Size: 3.20KB, Downloaded 27 times)
  • Attachment: table3.png
    (Size: 3.36KB, Downloaded 24 times)
Re: column pack on virtual table [message #1066568 is a reply to message #1066404] Wed, 03 July 2013 04:16 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
Registered: July 2009
Senior Member

Marco,

your code behaves just the same with SWT/JFace.

The idea of a VIRTUAL table is is to resolve item contents when they
become visible. At the time you call pack(), the longer item texts
further down are not yet resolved and cannot be considered.

Ralf

--
Ralf Sternberg

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: column pack on virtual table [message #1066790 is a reply to message #1066404] Thu, 04 July 2013 07:28 Go to previous messageGo to next message
Marco Feldmann is currently offline Marco Feldmann
Messages: 21
Registered: March 2013
Junior Member
Hello Ralf,
thank you for your answer. Is it possible to trigger pack() when new data was loaded or do you have a solution for my problem?

Thanks marco.
Re: column pack on virtual table [message #1066946 is a reply to message #1066790] Fri, 05 July 2013 04:28 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
Registered: July 2009
Senior Member

You can call pack at any time, but since the server needs to request
text measurements for all items from the client, I wouldn't recommend to
call it too often.

Actually, I've never seen an application that packs columns at runtime.
Most applications do that once for the initial data or define sensible
defaults. Maybe you could call pack at startup and then increase the
columns by a reasonable factor to make room for bigger values?

Regards,
Ralf

--
Ralf Sternberg

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: column pack on virtual table [message #1067906 is a reply to message #1066946] Thu, 11 July 2013 04:11 Go to previous messageGo to next message
Marco Feldmann is currently offline Marco Feldmann
Messages: 21
Registered: March 2013
Junior Member
Hello Ralf,
thank you for answer.

To call pack and then to increase the width isn't a solution for out problem. We have a lot of dynamic table with columns that can hold up to 255 characters. I don't now the data and if the values are realy 255 characters. The problem is the the column don't show that the size is to small. Other framework show in this case a "..." label at the end.

Marco
Re: column pack on virtual table [message #1069169 is a reply to message #1067906] Mon, 15 July 2013 06:06 Go to previous message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
Registered: July 2009
Senior Member

> Other framework show in this case a "..." label at the end.

Feel free to open an enhancement request!

Ralf

--
Ralf Sternberg

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:How to change the alignment image/text in a ToolItem?
Next Topic:use Nebula Grid, table.setData (RWT.FIXED_COLUMNS, 2), does not work
Goto Forum:
  


Current Time: Thu Jul 31 21:52:51 EDT 2014

Powered by FUDForum. Page generated in 0.02108 seconds