Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Checkbox GridColumn Event Handling (How to check which column is clicked on Grid?)
Checkbox GridColumn Event Handling [message #921454] Mon, 24 September 2012 02:07 Go to previous message
Ashish Rawat is currently offline Ashish Rawat
Messages: 8
Registered: June 2012
Junior Member
Hi,

I am trying to develop a GUI which has a Grid with 10 to 15 columns.
First column is a label, then a column group of 4-5 columns and then another column group of 4 columns and last column is with Text Editor.

The two column groups contains the columns of check boxes with some text associated with checkbox.
Now I am trying to check which checkbox is clicked in the Grid, based on that i have to do some handling.

To implement this kind of GUI, I am implementing the selection listener on Grid. I can find out whether the check box is clicked or not through following code:


public void widgetSelected(SelectionEvent e) {
if(e.detail == SWT.CHECK)
{
System.out.println("~~~~~~~~~~ CheckBox CLICKED ~~~~~~~~~~~");
}
}


After getting this message printed on my console, i am unable to find out which check box is clicked. Also I am using column spanning in column groups.

Please help me out ASAP.

Thanks in advance.

Regards,
Ashish Rawat

[Updated on: Mon, 24 September 2012 04:03]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:GridVisibleRange and GridVisibleRangeSuppor
Next Topic:Representation of details to the seconds level
Goto Forum:
  


Current Time: Thu May 23 14:33:09 EDT 2013

Powered by FUDForum. Page generated in 0.01609 seconds