Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Updating only visible rows
Updating only visible rows [message #824496] Mon, 19 March 2012 14:39 Go to next message
Eclipse UserFriend
Eclipse offers to use SWT.VIRTUAL when we want to display large sets of data in a TreeTable viewer. But this does not support sorting/filtering.

In my use case, I'm forced to use the standard tree table. So one option is to create model objects with a minimum set of column values. Of course the tree table will create items for this large set of data but all columns will NOT be filled out. I'd like to fill these columns only when they are scrolled into view (or made visible in the viewer).

Is there any hook that I can use? I'd like to get the visible objects in the viewer and make a bulk query to be database.

Thanks!
Re: Updating only visible rows [message #845872 is a reply to message #824496] Sun, 15 April 2012 09:52 Go to previous message
Eclipse UserFriend
Hi Rashmy,

This is what the virtual table already does. Of course you cannot use sorting
because the dataset is not known in advance. How can you sort a table which
is not in memory? This will also not work for your own implementation. You
have to deliver the data in a sorted way. e.g. by doing a order by in SQL.

The virtual tree content provider provides a way for filtering by using the
filter in your getelement method.

If you want to go the path you describe, I guess you can use some listener on
the tableitem. Paintlistener perhaps?

Regards,

Wim


> Eclipse offers to use SWT.VIRTUAL when we want to display large sets of
data in a TreeTable viewer. But this does not support sorting/filtering.
>
> In my use case, I'm forced to use the standard tree table. So one option is
to create model objects with a minimum set of column values. Of course the
tree table will create items for this large set of data but all columns will
NOT be filled out. I'd like to fill these columns only when they are scrolled
into view (or made visible in the viewer).
>
> Is there any hook that I can use? I'd like to get the visible objects in
the viewer and make a bulk query to be database.
>
> Thanks!
Previous Topic:Finish long running operations by triggered server update
Next Topic:View with ISaveablePart
Goto Forum:
  


Current Time: Tue Jul 08 12:45:04 EDT 2025

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

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

Back to the top