Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
Thanks. I will try.
Previous Topic:row resizing according to text inside
Next Topic:Suggestion regarding ColumnHideShowLayer.saveState()
Goto Forum:
  


Current Time: Wed Jul 23 07:38:47 EDT 2025

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

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

Back to the top