Nebula Grid Column move question [message #65554] |
Wed, 15 July 2009 04:04  |
Eclipse User |
|
|
|
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 07:20  |
Eclipse User |
|
|
|
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 07:20  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03025 seconds