Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Disposing off the GridEditor
Disposing off the GridEditor [message #585713] Thu, 25 October 2007 10:55
Ramya is currently offline RamyaFriend
Messages: 3
Registered: July 2009
Junior Member

I am adding a GridEditor to each cell of the Grid whenever that particular
cell is clicked as in the code...

expectedPeaksGrid.addMouseListener(new MouseAdapter()
Text textControl;

GridItem item1;

public void mouseDown(MouseEvent r)
if (expectedPeaksGrid.getCellSelectionCount() != 0)
Point p1 = expectedPeaksGrid.getCellSelection()[0];

gridEditor = new GridEditor(expectedPeaksGrid);
textControl = new Text(expectedPeaksGrid, SWT.NONE);
textControl.setText(" ");
gridEditor.grabHorizontal = true;
gridEditor.horizontalAlignment = SWT.FILL;
gridEditor.setEditor(textControl, expectedPeaksGrid
.getItem(p1.y), p1.x);


Now I want this grideditor to be disposed as soon as the focus shifts from
the cell that is being edited..

Can anybody suggest how to accomplish this ..

Previous Topic:[CompositeTable] Non-Native Re sizable Header
Next Topic:Grid : When Headers meet Footers
Goto Forum:

Current Time: Thu Nov 26 19:59:15 GMT 2015

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

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