[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.nebula] Re: Nebula Grid Column move question

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