Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Checkbox(Checkbox issue in table)
SWT Checkbox [message #950855] Sat, 20 October 2012 03:01 Go to next message
Prashant p is currently offline Prashant p
Messages: 57
Registered: October 2012
Member
Hi,

I am developing an application where we have table contaning checkbox in 1st column. These checkbox are row wise added through table item.In Column header i have one more checkbox which will do select all/deselect all.

My issue is i am not able to create select all event. Please help me how to achiew this.

Regards,
Prashant
Re: SWT Checkbox [message #954140 is a reply to message #950855] Mon, 22 October 2012 16:26 Go to previous message
Grant Gayed is currently offline Grant Gayed
Messages: 2148
Registered: July 2009
Senior Member
Hi Prashant,

There isn't a way to put a real control into a header, so the only way
to do something like this would be to put an image in the header that
hints that a click in the header will do a Check All (eg.- an image of a
checked checkbox), and add a SelectionListener to the column to detect a
click on its header.

Alternatively, it's not uncommon to have Check All/Uncheck All buttons
under a table like this.

Grant


On 10/20/2012 1:49 PM, Prashant p wrote:
> Hi,
>
> I am developing an application where we have table contaning checkbox in
> 1st column. These checkbox are row wise added through table item.In
> Column header i have one more checkbox which will do select all/deselect
> all.
>
> My issue is i am not able to create select all event. Please help me how
> to achiew this.
>
> Regards,
> Prashant
Previous Topic:Text setSelection Issue
Next Topic:Parent container of SWT Browser on XULRunner 10.0.2 is handling Enter and Escape key presses
Goto Forum:
  


Current Time: Mon Jul 28 00:34:57 EDT 2014

Powered by FUDForum. Page generated in 0.01604 seconds