Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » I wanna change my ComboBoxCellEditor's items for every row in the table.
I wanna change my ComboBoxCellEditor's items for every row in the table. [message #445786] Thu, 11 November 2004 10:52 Go to next message
Eclipse UserFriend
Originally posted by: reffim.yahoo.co.kr

I have several rows and each row has different selectable items.
I wanna set ComboBoxCellEditor, but I have no idea about how to do.
If you have an idea, please let me know.

Thanks.
Re: I wanna change my ComboBoxCellEditor's items for every row in the table. [message #445791 is a reply to message #445786] Thu, 11 November 2004 13:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: micasim.gmx.de

On Thu, 11 Nov 2004 19:52:28 +0900, Austine <reffim@yahoo.co.kr> wrote:

> I have several rows and each row has different selectable items.
> I wanna set ComboBoxCellEditor, but I have no idea about how to do.
> If you have an idea, please let me know.
>
> Thanks.
>
>

Hi Austine,

When the user clicks on the cell to open the editor, that row is selected,
i.e., a SelectionChangedEvent is emitted.
So you might add a SelectionChangedListener to your TableViewer that
either changes the active ComboBoxCellEditor or reminds the selection, so
your ComboBoxCellEditor can switch when invoked. Guess you get the idea.

Hope this helps,
Michael
Re: I wanna change my ComboBoxCellEditor's items for every row in the table. [message #445923 is a reply to message #445791] Fri, 12 November 2004 04:35 Go to previous message
Eclipse UserFriend
Originally posted by: reffim.yahoo.co.kr

Thanks for your help, Michael.
I'll try.


"Michael Simons" <micasim@gmx.de> wrote in message
news:opshaxrvxefhg950@news.eclipse.platform.swt...
> On Thu, 11 Nov 2004 19:52:28 +0900, Austine <reffim@yahoo.co.kr> wrote:
>
>> I have several rows and each row has different selectable items.
>> I wanna set ComboBoxCellEditor, but I have no idea about how to do.
>> If you have an idea, please let me know.
>>
>> Thanks.
>>
>>
>
> Hi Austine,
>
> When the user clicks on the cell to open the editor, that row is selected,
> i.e., a SelectionChangedEvent is emitted.
> So you might add a SelectionChangedListener to your TableViewer that
> either changes the active ComboBoxCellEditor or reminds the selection, so
> your ComboBoxCellEditor can switch when invoked. Guess you get the idea.
>
> Hope this helps,
> Michael
Previous Topic:AWT Fonts in SWT
Next Topic:Changing the order of children layouted in a SashForm
Goto Forum:
  


Current Time: Fri Mar 29 08:26:50 GMT 2024

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

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

Back to the top