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 06:58 Go to next message
karishma Agarwal is currently offline karishma Agarwal
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 07:08 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1236
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 08:03 Go to previous messageGo to next message
karishma Agarwal is currently offline karishma Agarwal
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 08:10 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1236
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 08:11 Go to previous message
karishma Agarwal is currently offline karishma Agarwal
Messages: 28
Registered: June 2011
Junior Member
Thanks. I will try.
Previous Topic:How to listen for cell edit?
Next Topic:Suggestion regarding ColumnHideShowLayer.saveState()
Goto Forum:
  


Current Time: Fri Aug 01 20:24:04 EDT 2014

Powered by FUDForum. Page generated in 0.03663 seconds