Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How can I make a table with a number of specified rows?
How can I make a table with a number of specified rows? [message #447266] Sat, 11 December 2004 02:51 Go to next message
Alex Le is currently offline Alex LeFriend
Messages: 649
Registered: July 2009
Senior Member
Thanks.
Re: How can I make a table with a number of specified rows? [message #447273 is a reply to message #447266] Sun, 12 December 2004 18:56 Go to previous messageGo to next message
Henrik Skovgaard is currently offline Henrik SkovgaardFriend
Messages: 84
Registered: July 2009
Member
A row is a "TableItem", so just create x TableItems on your table.

"AL" <unbonnevie@yahoo.com> wrote in message
news:cpdn65$fo$1@www.eclipse.org...
> Thanks.
>
Re: How can I make a table with a number of specified rows? [message #447303 is a reply to message #447273] Mon, 13 December 2004 13:26 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
If the number of rows is quite large, you can use a virtual table. With a
virtual table you set the number of items with Table.setItemCount(int) and
there is a callback to request the data for each item when the item becomes
visible. See:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet144.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

"Henrik Skovgaard" <hsk@reklamedata.dk.no.spam> wrote in message
news:cpi496$grf$1@www.eclipse.org...
>A row is a "TableItem", so just create x TableItems on your table.
>
> "AL" <unbonnevie@yahoo.com> wrote in message
> news:cpdn65$fo$1@www.eclipse.org...
>> Thanks.
>>
>
>
Re: How can I make a table with a number of specified rows? [message #447366 is a reply to message #447303] Mon, 13 December 2004 19:26 Go to previous messageGo to next message
Alex Le is currently offline Alex LeFriend
Messages: 649
Registered: July 2009
Senior Member
Hi,
Thanks very much for the tips. I tried the below out, but still it does
not work, even after I've made sure to use SWT.VIRTUAL when creating my
table. Possibly, it has to do with the default size of the shell that
the table resides in?

Thanks.

Veronika Irvine wrote:

> If the number of rows is quite large, you can use a virtual table. With a
> virtual table you set the number of items with Table.setItemCount(int) and
> there is a callback to request the data for each item when the item becomes
> visible. See:
>
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet144.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup
>
> "Henrik Skovgaard" <hsk@reklamedata.dk.no.spam> wrote in message
> news:cpi496$grf$1@www.eclipse.org...
>
>>A row is a "TableItem", so just create x TableItems on your table.
>>
>>"AL" <unbonnevie@yahoo.com> wrote in message
>>news:cpdn65$fo$1@www.eclipse.org...
>>
>>>Thanks.
>>>
>>
>>
>
>
Re: How can I make a table with a number of specified rows? [message #447567 is a reply to message #447366] Tue, 14 December 2004 21:00 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Post some code to show how you are laying out the table.

"AL" <unbonnevie@yahoo.com> wrote in message
news:cpkq6r$2el$1@www.eclipse.org...
> Hi,
> Thanks very much for the tips. I tried the below out, but still it does
> not work, even after I've made sure to use SWT.VIRTUAL when creating my
> table. Possibly, it has to do with the default size of the shell that the
> table resides in?
>
> Thanks.
>
> Veronika Irvine wrote:
>
>> If the number of rows is quite large, you can use a virtual table. With a
>> virtual table you set the number of items with Table.setItemCount(int)
>> and there is a callback to request the data for each item when the item
>> becomes visible. See:
>>
>> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet144.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup
>>
>> "Henrik Skovgaard" <hsk@reklamedata.dk.no.spam> wrote in message
>> news:cpi496$grf$1@www.eclipse.org...
>>
>>>A row is a "TableItem", so just create x TableItems on your table.
>>>
>>>"AL" <unbonnevie@yahoo.com> wrote in message
>>>news:cpdn65$fo$1@www.eclipse.org...
>>>
>>>>Thanks.
>>>>
>>>
>>>
>>
>>
>
Re: How can I make a table with a number of specified rows? [message #447578 is a reply to message #447567] Wed, 15 December 2004 01:06 Go to previous message
Alex Le is currently offline Alex LeFriend
Messages: 649
Registered: July 2009
Senior Member
Thanks again for the response...I forgot to the handleEvent
part...Anyway, the code snippet from the below URL would help me. :-)


Veronika Irvine wrote:
> Post some code to show how you are laying out the table.
>
> "AL" <unbonnevie@yahoo.com> wrote in message
> news:cpkq6r$2el$1@www.eclipse.org...
>
>>Hi,
>>Thanks very much for the tips. I tried the below out, but still it does
>>not work, even after I've made sure to use SWT.VIRTUAL when creating my
>>table. Possibly, it has to do with the default size of the shell that the
>>table resides in?
>>
>>Thanks.
>>
>>Veronika Irvine wrote:
>>
>>
>>>If the number of rows is quite large, you can use a virtual table. With a
>>>virtual table you set the number of items with Table.setItemCount(int)
>>>and there is a callback to request the data for each item when the item
>>>becomes visible. See:
>>>
>>> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet144.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup
>>>
>>>"Henrik Skovgaard" <hsk@reklamedata.dk.no.spam> wrote in message
>>>news:cpi496$grf$1@www.eclipse.org...
>>>
>>>
>>>>A row is a "TableItem", so just create x TableItems on your table.
>>>>
>>>>"AL" <unbonnevie@yahoo.com> wrote in message
>>>>news:cpdn65$fo$1@www.eclipse.org...
>>>>
>>>>
>>>>>Thanks.
>>>>>
>>>>
>>>>
>>>
>
>
Previous Topic:Changing the border on a Group
Next Topic:Is there some visual design tool smaller than VE
Goto Forum:
  


Current Time: Thu Apr 25 10:11:34 GMT 2024

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

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

Back to the top