Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » want two TreeCheckBoxPainters in a single cell
want two TreeCheckBoxPainters in a single cell [message #1016417] Wed, 06 March 2013 11:58 Go to next message
karishma Agarwal is currently offline karishma AgarwalFriend
Messages: 28
Registered: June 2011
Junior Member
Hi,

Is it possible to have two TreeCheckBoxPainters in a single cell? Because I think that we can register only one CheckBoxCellEditor with a particular label. Otherwise how will we differentiate between the two CheckBoxCellEditors ,that which one is getting used for which TreeCheckBoxPainter?

Thanks,
Karishma.
Re: want two TreeCheckBoxPainters in a single cell [message #1016423 is a reply to message #1016417] Wed, 06 March 2013 12:08 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Hi,

do you mean if NatTable supports something like a checkbox group editor?

This is currently not available. You can of course create a custom editor that supports this. In this case you need some mechanisms that provides determination of which icon was clicked.

Greez,
Dirk
Re: want two TreeCheckBoxPainters in a single cell [message #1016436 is a reply to message #1016423] Wed, 06 March 2013 13:03 Go to previous messageGo to next message
karishma Agarwal is currently offline karishma AgarwalFriend
Messages: 28
Registered: June 2011
Junior Member
Right. But how could I provide the determination of which icon got clicked. Can you suggest some way.

Thanks.
Re: want two TreeCheckBoxPainters in a single cell [message #1016437 is a reply to message #1016436] Wed, 06 March 2013 13:10 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Well it is some advanced stuff.

You can have a look at CellPainterMouseEventMatcher. You need to create an extended one that is able to determine or at least inform the checkbox group editor where the click occured.

Sorry, I can't tell you any more on this specific stuff without digging much deeper into it.
Re: want two TreeCheckBoxPainters in a single cell [message #1016438 is a reply to message #1016437] Wed, 06 March 2013 13:11 Go to previous message
karishma Agarwal is currently offline karishma AgarwalFriend
Messages: 28
Registered: June 2011
Junior Member
Thanks. I will try.
Previous Topic:row resizing according to text inside
Next Topic:Suggestion regarding ColumnHideShowLayer.saveState()
Goto Forum:
  


Current Time: Sat Apr 20 04:06:35 GMT 2024

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

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

Back to the top