Skip to main content


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 UserFriend
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 GrossFriend
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 GrossFriend
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: Wed Apr 24 14:37:01 GMT 2024

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

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

Back to the top