CheckBoxTree-addTreeSelectionListener is not working

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

CheckBoxTree-addTreeSelectionListener is not working

Postby mandar.j » Fri Jul 27, 2012 6:28 am

Hi,

I am trying to use CheckBoxTree to display a tree with checkbox. In that, when I try to add a listener to the items in CheckBoxTree, it works(event gets fired) only when I click on a tree node, but it doesn't work when I click a checkbox. Do we need to write separate listeners for both checkbox and tree node? I could only see "addTreeSelectionListener " with "valueChanged(TreeSelectionEvent)".

Any help would be appreciated.

Thanks,
Mandar
mandar.j
 
Posts: 8
Joined: Fri Jul 27, 2012 12:57 am

Re: CheckBoxTree-addTreeSelectionListener is not working

Postby JIDE Support » Fri Jul 27, 2012 9:17 am

Please invoke yourCheckBoxTree.getCheckBoxTreeSelectionModel().addTreeSelectionListener() to add the selection listener of the check box. As you can see from the UI, one node could be checked without selecting. Hence, two separated listeners are in use.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: CheckBoxTree-addTreeSelectionListener is not working

Postby mandar.j » Fri Jul 27, 2012 10:59 am

This also worked very well... Thanks a lot again.

Regards,
Mandar
mandar.j
 
Posts: 8
Joined: Fri Jul 27, 2012 12:57 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 9 guests

cron