Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » TableItem Constructor
TableItem Constructor [message #463344] Mon, 05 February 2007 03:18 Go to next message
Eclipse UserFriend
Hello;

TableItem have a constructor that TableItem(Table parentTable, int style,
int index);

I cant understand 3. parementer (index paremeter). Why do it use.?

I cant understand on javadoc of tableitem.

Thankyou
Re: TableItem Constructor [message #463352 is a reply to message #463344] Thu, 08 February 2007 13:51 Go to previous messageGo to next message
Eclipse UserFriend
This is the index where the item is added in the table.

Say you have a table with this structure:

Item 1
Item 2
Item 3

Now you want to insert the a new item in between 1 and 2. So you call:
new TableItem(table,SWT.NONE,1);

Tom


Cenk Dundar schrieb:
> Hello;
>
> TableItem have a constructor that TableItem(Table parentTable, int style,
> int index);
>
> I cant understand 3. parementer (index paremeter). Why do it use.?
>
> I cant understand on javadoc of tableitem.
>
> Thankyou
>
>
Re: TableItem Constructor [message #463354 is a reply to message #463352] Thu, 08 February 2007 13:52 Go to previous message
Eclipse UserFriend
Hi,

By the way if you have trouble with directly using SWT you can switch
over to JFace-Viewers who provide MVC for SWT-Controls.

Tom

Tom Schindl schrieb:
> This is the index where the item is added in the table.
>
> Say you have a table with this structure:
>
> Item 1
> Item 2
> Item 3
>
> Now you want to insert the a new item in between 1 and 2. So you call:
> new TableItem(table,SWT.NONE,1);
>
> Tom
>
>
> Cenk Dundar schrieb:
>> Hello;
>>
>> TableItem have a constructor that TableItem(Table parentTable, int
>> style, int index);
>>
>> I cant understand 3. parementer (index paremeter). Why do it use.?
>>
>> I cant understand on javadoc of tableitem.
>>
>> Thankyou
>>
Previous Topic:Overriding pref page name
Next Topic:Cross Platform Export Problem
Goto Forum:
  


Current Time: Tue Jul 15 11:43:31 EDT 2025

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

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

Back to the top