Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to add check option in cell of table (not in first column)
How to add check option in cell of table (not in first column) [message #465194] Thu, 08 December 2005 02:44 Go to next message
Johnson is currently offline JohnsonFriend
Messages: 13
Registered: July 2009
Junior Member
I need to add a check option in 3rd or 4th column.
In Table, it creates a check option in the 1st column by adding SWT.CHECK

table = new Table(parent, SWT.CHECK | SWT.SINGLE | SWT.FULL_SELECTION)

I can not find the way to add check option in any column other 1st column.
Is it possible? How to do that?

Thanks!!
Re: How to add check option in cell of table (not in first column) [message #465214 is a reply to message #465194] Thu, 08 December 2005 09:15 Go to previous messageGo to next message
Lorenz Maierhofer is currently offline Lorenz MaierhoferFriend
Messages: 88
Registered: July 2009
Member
I don't think the native table supports this.

Check out KTable that allows you to do such things:
http://sourceforge.net/projects/ktable/

Johnson wrote:
> I need to add a check option in 3rd or 4th column.
> In Table, it creates a check option in the 1st column by adding SWT.CHECK
>
> table = new Table(parent, SWT.CHECK | SWT.SINGLE | SWT.FULL_SELECTION)
>
> I can not find the way to add check option in any column other 1st column.
> Is it possible? How to do that?
>
> Thanks!!
>
>
>
Re: How to add check option in cell of table (not in first column) [message #465217 is a reply to message #465194] Thu, 08 December 2005 13:55 Go to previous messageGo to next message
steve lane is currently offline steve laneFriend
Messages: 24
Registered: July 2009
Junior Member
In your label provider, return "" from the getColumnText for those
columns and put code into your getColumnImage method to return one of two
images for the chosen columns. One image is a square, the other a
checked square. it works, ive done this myself on 2 columns and made them
editable too.
Re: How to add check option in cell of table (not in first column) [message #465313 is a reply to message #465194] Thu, 08 December 2005 21:37 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
The TableViewer supports check box in other columns by using the image
field. See CheckBoxCellEditor in JFace.

"Johnson" <ljshuenn@realtek.com.tw> wrote in message
news:dn86m3$8ef$1@news.eclipse.org...
>I need to add a check option in 3rd or 4th column.
> In Table, it creates a check option in the 1st column by adding SWT.CHECK
>
> table = new Table(parent, SWT.CHECK | SWT.SINGLE | SWT.FULL_SELECTION)
>
> I can not find the way to add check option in any column other 1st column.
> Is it possible? How to do that?
>
> Thanks!!
>
>
>
Previous Topic:addListner to a extended Class
Next Topic:PalmOs Porting
Goto Forum:
  


Current Time: Fri Apr 19 11:03:43 GMT 2024

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

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

Back to the top