|CellEditor [message #230085]
||Wed, 31 January 2007 15:01
Originally posted by: aleksandr_kravets.iwaysoftware.com|
I implemented CellEditor and DirectEditManager for
RequestConstants.REQ_OPEN in my EditPart. I am looking for a way to make
SWT.CR event save the changes and close the cell editor instead of
performing using carriage return function(right now I need to click
outside of the cell editor for it close). Also, I want to check if the
text in the cell editor is 0 and not allow saving of it and keeping cell
editor open. Any suggestions on this? What listeners do I need to use?
|Re: CellEditor [message #773720 is a reply to message #230085]
||Mon, 02 January 2012 11:23
| Divey Jain
Registered: January 2012
I implemented celleditor with ICellModifier.
I am using combo in one of the cells in the table.
The cell no. is 2 in the row.
What i have done is that, on entering some value in this second combo cell,
i am calling two methods to fill/populate left and right cells.
Now, i want to get a list of values in the combo on entering some text and hitting enter(SWT.CR)
and then i want to select a value from that list to call those two methods.
The scenario fails because on editing a cell and hitting enter, it calls modify method of ICellModifier,
which immediately calls the populate method in the modify method and instead of getting the whole list and selecting from it,
there is only a single value selected in combo box and left & right cells gets populated.
Any suggestions on this?
How can i use enter key event to avoid such a situation..
[Updated on: Mon, 02 January 2012 11:25]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01814 seconds