Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » possible to change the location of a currently added tableItem in a swt table
possible to change the location of a currently added tableItem in a swt table [message #445235] Fri, 29 October 2004 12:12 Go to next message
Michael Seele is currently offline Michael SeeleFriend
Messages: 124
Registered: July 2009
Senior Member
hi,
is it possible to change the location of a tableItem in a swt table to
another position?

example:

tableItem old location: 10
move to 5
tableItem new location: 5
Re: possible to change the location of a currently added tableItem in a swt table [message #445244 is a reply to message #445235] Fri, 29 October 2004 14:25 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Dispose the old item and create a new one at the new location.

"Michael Seele" <mseele@guh-software.de> wrote in message
news:cltc2v$8lh$1@eclipse.org...
> hi,
> is it possible to change the location of a tableItem in a swt table to
> another position?
>
> example:
>
> tableItem old location: 10
> move to 5
> tableItem new location: 5
>
>
Re: possible to change the location of a currently added tableItem in a swt tabl [message #445245 is a reply to message #445244] Fri, 29 October 2004 14:28 Go to previous messageGo to next message
Michael Seele is currently offline Michael SeeleFriend
Messages: 124
Registered: July 2009
Senior Member
is there no better alternative? because your suggest is not very fast!

Veronika Irvine wrote:

> Dispose the old item and create a new one at the new location.

> "Michael Seele" <mseele@guh-software.de> wrote in message
> news:cltc2v$8lh$1@eclipse.org...
> > hi,
> > is it possible to change the location of a tableItem in a swt table to
> > another position?
> >
> > example:
> >
> > tableItem old location: 10
> > move to 5
> > tableItem new location: 5
> >
> >
Re: possible to change the location of a currently added tableItem in a swt tabl [message #445252 is a reply to message #445245] Fri, 29 October 2004 17:23 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Please give a benchmark showing a performance problem. If you are dealing
with a very large table then perhaps you should be using a virtual table:

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

"Michael Seele" <mseele@guh-software.de> wrote in message
news:cltk1u$ots$1@eclipse.org...
> is there no better alternative? because your suggest is not very fast!
>
> Veronika Irvine wrote:
>
>> Dispose the old item and create a new one at the new location.
>
>> "Michael Seele" <mseele@guh-software.de> wrote in message
>> news:cltc2v$8lh$1@eclipse.org...
>> > hi,
>> > is it possible to change the location of a tableItem in a swt table to
>> > another position?
>> >
>> > example:
>> >
>> > tableItem old location: 10
>> > move to 5
>> > tableItem new location: 5
>> >
>> >
>
>
Previous Topic:Label mnemonics if Control's following are Composites
Next Topic:Combo box doesn't take objects?
Goto Forum:
  


Current Time: Thu Apr 25 23:47:42 GMT 2024

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

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

Back to the top