Skip to main content


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 13:03 Go to next message
Marco Feldmann is currently offline Marco FeldmannFriend
Messages: 26
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 258 times)
  • Attachment: table1.png
    (Size: 1.97KB, Downloaded 141 times)
  • Attachment: table2.png
    (Size: 3.20KB, Downloaded 130 times)
  • Attachment: table3.png
    (Size: 3.36KB, Downloaded 133 times)
Re: column pack on virtual table [message #1066568 is a reply to message #1066404] Wed, 03 July 2013 08:16 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
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 11:28 Go to previous messageGo to next message
Marco Feldmann is currently offline Marco FeldmannFriend
Messages: 26
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 08:28 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
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 08:11 Go to previous messageGo to next message
Marco Feldmann is currently offline Marco FeldmannFriend
Messages: 26
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 10:06 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
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:Listening to changes in Text caret position/selection
Next Topic:Need example to deploy a RAP 2.1 app on Tomcat server
Goto Forum:
  


Current Time: Fri Mar 29 02:17:39 GMT 2024

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

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

Back to the top