Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Nebula Grid Column move question
Nebula Grid Column move question [message #65554] Wed, 15 July 2009 08:04 Go to next message
Eclipse UserFriend
Originally posted by: m.kasid.gmail.com

Hi,

I am working on an application where I want to track movements of Grid
columns. I have a list of model objects representing columns in Grid. When
the user moves a column, I want to re-arrange the list appropriately. Any
idea how this could be done?

Also, is there a way to insert/remove a column at runtime on user request?
The column insertion can be done in-between other columns.

--
Thanks,

Mustufa
Re: Nebula Grid Column move question [message #65638 is a reply to message #65554] Wed, 15 July 2009 11:20 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Mustufa Kasidwala schrieb:
> Hi,
>
> I am working on an application where I want to track movements of Grid
> columns. I have a list of model objects representing columns in Grid. When
> the user moves a column, I want to re-arrange the list appropriately. Any
> idea how this could be done?
>

Without having looked at the code you would normally add a
ControlListener to the GridColumn and later on you can query the new
column arrangement through Grid.getColumnOrder() which is a mapping
between the creation index of the column and its current position.

> Also, is there a way to insert/remove a column at runtime on user request?
> The column insertion can be done in-between other columns.
>

Remove: GridColumn#dispose()
Insert: GridColumn#new(parent, style, index)


Tom
Re: Nebula Grid Column move question [message #595658 is a reply to message #65554] Wed, 15 July 2009 11:20 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Mustufa Kasidwala schrieb:
> Hi,
>
> I am working on an application where I want to track movements of Grid
> columns. I have a list of model objects representing columns in Grid. When
> the user moves a column, I want to re-arrange the list appropriately. Any
> idea how this could be done?
>

Without having looked at the code you would normally add a
ControlListener to the GridColumn and later on you can query the new
column arrangement through Grid.getColumnOrder() which is a mapping
between the creation index of the column and its current position.

> Also, is there a way to insert/remove a column at runtime on user request?
> The column insertion can be done in-between other columns.
>

Remove: GridColumn#dispose()
Insert: GridColumn#new(parent, style, index)


Tom
Previous Topic:Nebula Grid Column move question
Next Topic:Nebula Grid in RCP application
Goto Forum:
  


Current Time: Fri Mar 29 13:01:28 GMT 2024

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

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

Back to the top