Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » TableItem Constructor
TableItem Constructor [message #463344] Mon, 05 February 2007 08:18 Go to next message
cenk Mising name is currently offline cenk Mising nameFriend
Messages: 159
Registered: July 2009
Senior Member
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 18:51 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 18:52 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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: Mon Oct 14 01:40:01 GMT 2024

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

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

Back to the top