Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Focus out Event in Grid
Focus out Event in Grid [message #42149] Fri, 26 October 2007 09:02 Go to next message
Eclipse User
Originally posted by: rams1983.yahoo.com

Hi

I am using a Grid and creating editors for each cell in the grid whenever
the cell is clicked.But when I click on a cell,edit its text and click on
something else , I want the editor's control in this cell to be disposed
and the text edited to be set to the underlying griditem.

For this ,may be I should implement a focus out listener on a cell or
something..
Can anybody suggest how I can do this

Thanks
Ramya
Re: Focus out Event in Grid [message #42323 is a reply to message #42149] Mon, 29 October 2007 17:03 Go to previous message
Chris Gross is currently offline Chris Gross
Messages: 253
Registered: July 2009
Senior Member
Please look at the following SWT snippet. It should be adaptable to the
Grid by changing the relevant class names.

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet124.java?view=co

Regards,
-Chris

Ramya wrote:
> Hi
> I am using a Grid and creating editors for each cell in the grid
> whenever the cell is clicked.But when I click on a cell,edit its text
> and click on something else , I want the editor's control in this cell
> to be disposed and the text edited to be set to the underlying griditem.
>
> For this ,may be I should implement a focus out listener on a cell or
> something..
> Can anybody suggest how I can do this
> Thanks Ramya
>
Re: Focus out Event in Grid [message #585905 is a reply to message #42149] Mon, 29 October 2007 17:03 Go to previous message
Chris Gross is currently offline Chris Gross
Messages: 471
Registered: July 2009
Senior Member
Please look at the following SWT snippet. It should be adaptable to the
Grid by changing the relevant class names.

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet124.java?view=co

Regards,
-Chris

Ramya wrote:
> Hi
> I am using a Grid and creating editors for each cell in the grid
> whenever the cell is clicked.But when I click on a cell,edit its text
> and click on something else , I want the editor's control in this cell
> to be disposed and the text edited to be set to the underlying griditem.
>
> For this ,may be I should implement a focus out listener on a cell or
> something..
> Can anybody suggest how I can do this
> Thanks Ramya
>
Previous Topic:How to provide tooltip text for images in grid view?
Next Topic:Disposing off the GridEditor
Goto Forum:
  


Current Time: Thu Oct 23 05:50:35 GMT 2014

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

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