Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Virtual Table page size.
Virtual Table page size. [message #103207] Wed, 27 August 2008 07:43 Go to next message
Eclipse UserFriend
Hi,

I'm using a TableViewer with a VIRTUAL table, currently everything works
fine, just when I scroll down the "..." appear stating that the next
batch of data is loading.

My question is, can I define a "page" size so I can force that the
viewer loads more than the visible number of records?

Thanks

Tiago
Re: Virtual Table page size. [message #103217 is a reply to message #103207] Wed, 27 August 2008 08:44 Go to previous messageGo to next message
Eclipse UserFriend
Hi Tiago,

you can set a "virtual" size at first using setItemCount(), e.g. 100. If
you get close to this item count in LazyContentProvider#updateElement(),
you can then increase the itemCount by your page size, e.g. to 200.

Is this what you mean?

Regards,
Stefan.


Tiago schrieb:
> Hi,
>
> I'm using a TableViewer with a VIRTUAL table, currently everything works
> fine, just when I scroll down the "..." appear stating that the next
> batch of data is loading.
>
> My question is, can I define a "page" size so I can force that the
> viewer loads more than the visible number of records?
>
> Thanks
>
> Tiago
Re: Virtual Table page size. [message #103254 is a reply to message #103217] Thu, 28 August 2008 05:39 Go to previous messageGo to next message
Eclipse UserFriend
Hi Stefan,

Something like that, can you give me a small example?

Thanks.

Tiago

Stefan Roeck wrote:
> Hi Tiago,
>
> you can set a "virtual" size at first using setItemCount(), e.g. 100. If
> you get close to this item count in LazyContentProvider#updateElement(),
> you can then increase the itemCount by your page size, e.g. to 200.
>
> Is this what you mean?
>
> Regards,
> Stefan.
>
>
> Tiago schrieb:
>> Hi,
>>
>> I'm using a TableViewer with a VIRTUAL table, currently everything
>> works fine, just when I scroll down the "..." appear stating that the
>> next batch of data is loading.
>>
>> My question is, can I define a "page" size so I can force that the
>> viewer loads more than the visible number of records?
>>
>> Thanks
>>
>> Tiago
Re: Virtual Table page size. [message #103277 is a reply to message #103254] Thu, 28 August 2008 09:06 Go to previous messageGo to next message
Eclipse UserFriend
Hi Tiago,

you can find an example attached to RAP-Bug 241049 in bugzilla:
https://bugs.eclipse.org/bugs/attachment.cgi?id=107576

There is a model which grows when the user scrolls down near to the end
of the list.

Regards,
Stefan.

Tiago schrieb:
> Hi Stefan,
>
> Something like that, can you give me a small example?
>
> Thanks.
>
> Tiago
>
> Stefan Roeck wrote:
>> Hi Tiago,
>>
>> you can set a "virtual" size at first using setItemCount(), e.g. 100.
>> If you get close to this item count in
>> LazyContentProvider#updateElement(), you can then increase the
>> itemCount by your page size, e.g. to 200.
>>
>> Is this what you mean?
>>
>> Regards,
>> Stefan.
>>
>>
>> Tiago schrieb:
>>> Hi,
>>>
>>> I'm using a TableViewer with a VIRTUAL table, currently everything
>>> works fine, just when I scroll down the "..." appear stating that the
>>> next batch of data is loading.
>>>
>>> My question is, can I define a "page" size so I can force that the
>>> viewer loads more than the visible number of records?
>>>
>>> Thanks
>>>
>>> Tiago
Re: Virtual Table page size. [message #103450 is a reply to message #103277] Fri, 29 August 2008 05:37 Go to previous message
Eclipse UserFriend
That's exactly what I want. Thanks a lot.

Tiago

Stefan Roeck wrote:
> Hi Tiago,
>
> you can find an example attached to RAP-Bug 241049 in bugzilla:
> https://bugs.eclipse.org/bugs/attachment.cgi?id=107576
>
> There is a model which grows when the user scrolls down near to the end
> of the list.
>
> Regards,
> Stefan.
>
> Tiago schrieb:
>> Hi Stefan,
>>
>> Something like that, can you give me a small example?
>>
>> Thanks.
>>
>> Tiago
>>
>> Stefan Roeck wrote:
>>> Hi Tiago,
>>>
>>> you can set a "virtual" size at first using setItemCount(), e.g. 100.
>>> If you get close to this item count in
>>> LazyContentProvider#updateElement(), you can then increase the
>>> itemCount by your page size, e.g. to 200.
>>>
>>> Is this what you mean?
>>>
>>> Regards,
>>> Stefan.
>>>
>>>
>>> Tiago schrieb:
>>>> Hi,
>>>>
>>>> I'm using a TableViewer with a VIRTUAL table, currently everything
>>>> works fine, just when I scroll down the "..." appear stating that
>>>> the next batch of data is loading.
>>>>
>>>> My question is, can I define a "page" size so I can force that the
>>>> viewer loads more than the visible number of records?
>>>>
>>>> Thanks
>>>>
>>>> Tiago
Previous Topic:Window Unload Event
Next Topic:size of a StandaloneView
Goto Forum:
  


Current Time: Tue Jul 15 15:12:56 EDT 2025

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

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

Back to the top