Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TableViewer not lazy?? :-(
TableViewer not lazy?? :-( [message #448051] Wed, 29 December 2004 12:36 Go to next message
Oliver Schmidt is currently offline Oliver SchmidtFriend
Messages: 17
Registered: July 2009
Junior Member
TableViewer calls ITableLabelProvider.getColumnText for ALL elements of
the table, not caring if an element is visible or not, :-(
whereas TreeViewer calls LabelProvider.getText only, if it really needs
the label
(i.e. the parent node is expanded). :-)

Is there a way to display a very BIG table and get the row contents only
for the visible rows?

And maybe a related question:
Is there a way to refresh only a TableViewers colors?
(The content and labels donŽt change, only the background color).
Remark: IŽm using a ITableLabelProvider that implements IColorProvider.

Thanks for helping :-)
Re: TableViewer not lazy?? :-( [message #448054 is a reply to message #448051] Wed, 29 December 2004 16:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: micasim.gmx.de

On Wed, 29 Dec 2004 12:36:24 +0000 (UTC), Oliver Schmidt
<swt-@-schmidt-oliver.de> wrote:

> TableViewer calls ITableLabelProvider.getColumnText for ALL elements of
> the table, not caring if an element is visible or not, :-(
> whereas TreeViewer calls LabelProvider.getText only, if it really needs
> the label (i.e. the parent node is expanded). :-)
>
> Is there a way to display a very BIG table and get the row contents only
> for the visible rows?
>
> And maybe a related question:
> Is there a way to refresh only a TableViewers colors?
> (The content and labels donŽt change, only the background color).
> Remark: IŽm using a ITableLabelProvider that implements IColorProvider.
>
> Thanks for helping :-)
>


AFAIK, you can force this behaviour by specifying SWT.VIRTUAL as style
attribute to the Table(Composite,int) constructor.
Unfortunately I've not yet checked it.

hope this helps,
Michael
Re: TableViewer not lazy?? :-( [message #448066 is a reply to message #448054] Thu, 30 December 2004 08:44 Go to previous messageGo to next message
Oliver Schmidt is currently offline Oliver SchmidtFriend
Messages: 17
Registered: July 2009
Junior Member
Michael Simons wrote:
> AFAIK, you can force this behaviour by specifying SWT.VIRTUAL as style
> attribute to the Table(Composite,int) constructor.
> Unfortunately I've not yet checked it.
Thanks, Michael!
SWT.VIRTUAL led to the solution, but SWT.VIRTUAL works only, if you use
Table directly. JFace doesnŽt seem to support virtual tables yet.
I really wonder, why TableViewer was introduced, if it doesnŽt support
lazy mode...

And i missed another thread "<TableViewer> Browsing large data models"
with the same topic.
Re: TableViewer not lazy?? :-( [message #448072 is a reply to message #448066] Thu, 30 December 2004 13:29 Go to previous message
Eclipse UserFriend
Originally posted by: micasim.gmx.de

On Thu, 30 Dec 2004 08:44:36 +0000 (UTC), Oliver Schmidt
<swt-@-schmidt-oliver.de> wrote:

> Michael Simons wrote:
>> AFAIK, you can force this behaviour by specifying SWT.VIRTUAL as style
>> attribute to the Table(Composite,int) constructor.
>> Unfortunately I've not yet checked it.
> Thanks, Michael!
> SWT.VIRTUAL led to the solution, but SWT.VIRTUAL works only, if you use
> Table directly. JFace doesnŽt seem to support virtual tables yet.
> I really wonder, why TableViewer was introduced, if it doesnŽt support
> lazy mode...
>
> And i missed another thread "<TableViewer> Browsing large data models"
> with the same topic.
>

Hello Oliver,

Sorry, I didn't know that and thanks 'cause You saved me from introducing
VIRTUAL in my project (with quite a bit of tables/TableViewers) and being
frustated.
I agree with you that it's a gap, that there's no such option for
TableViewer. BTW for my project I'ld need a TreeViewer with lazy loading
even on a branch because there a branches with no more sub-branches but
with a lot of leaves, that can't all be displayed at once, but with
TreeViewer as is they are loaded all at once.
For You KTable from Alexander Kupzog might be an alternative:
http://www.kupzog.de/fkmk_uk/Programming/Downloads/downloads .html
If you are also interested in my little contributions (tried to improve
the MVC support but it's still work in progress), let me know.
In spite of this gap, I'm heavily using TableViewers in my project,
because when we started there was no alternative, if we wanted to support
MVC and so we did.

Regards,
Michael
Previous Topic:Setting the traverse order to be different to created order
Next Topic:Simple GridLayout problem
Goto Forum:
  


Current Time: Fri Nov 27 12:05:57 GMT 2020

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

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

Back to the top