Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Checkbox on table header
Checkbox on table header [message #525624] Wed, 07 April 2010 04:49 Go to next message
Eclipse UserFriend
Hi,

How can we add a checkbox on table header?

--
Thanks and Regards

Mustufa Kasidwala
Re: Checkbox on table header [message #525639 is a reply to message #525624] Wed, 07 April 2010 06:05 Go to previous message
Eclipse UserFriend
On 07.04.2010 10:49, Mustufa Kasidwala wrote:
> How can we add a checkbox on table header?

You have to assign an image that looks like a checkbox.
See e.g. in the snippet

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.s nippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippet s/viewers/Snippet061FakedNativeCellEditor.java?view=markup

how this can be done ("makeShot"). You will have to program the
image-switch on selection on your own. Note that the above quoted
example does use the image for a label provider. You cannot do
this, but you have to assign the image to the TableColumn instead.
This means you will also have to register the selection listener
to that TableColumn.

HTH & Greetings from Bremen,

Daniel Krügler
Previous Topic:Layout size adjusted to its controls prefered size
Next Topic:Browser and MHTML
Goto Forum:
  


Current Time: Mon Jul 07 00:18:16 EDT 2025

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

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

Back to the top