Checkboxtree disabling nodes

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 disabling nodes

Postby soniks » Thu Aug 12, 2010 3:10 pm

Hi,

I have created a tree with digin attribute set to true and would like to disable the check box for any child nodes (upto leaf node) of the selected nodes. Is this possible and how would this be done? I looked at some previous posts and there was mention of overriding the isCheckBoxVisible which will in effect stop the users from deselecting the child nodes but I would rather prefer the checkbox shown checked and not editable. Obviously it would be enabled only if the parent node was deselected.

Regards
soniks
 
Posts: 5
Joined: Thu Aug 12, 2010 2:50 pm

Re: Checkboxtree disabling nodes

Postby JIDE Support » Thu Aug 12, 2010 3:13 pm

Please give 2.9.5 a try. In that release, overriding CheckBoxTree#isCheckBoxEnabled(TreePath) would fulfill your request.

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

Re: Checkboxtree disabling nodes

Postby soniks » Thu Aug 12, 2010 3:50 pm

Hi,

Thanks for the quick response - do you know if it is available on any remote maven repositories yet? I can't seem to download it from java.net -m2 repository.

Thanks
soniks
 
Posts: 5
Joined: Thu Aug 12, 2010 2:50 pm

Re: Checkboxtree disabling nodes

Postby JIDE Support » Thu Aug 12, 2010 3:52 pm

We don't support maven yet although it is in our job list.

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

Re: Checkboxtree disabling nodes

Postby soniks » Thu Aug 12, 2010 4:14 pm

Thats strange I downloaded 2.9.4 from the repository mentioned before. Is that repository not maintained by Jide? I noticed 2.9.4 already has the isCheckboxEnabled(TreePath[] treepaths) method. Isn't it the same thing or have there been changes in how it is used?
soniks
 
Posts: 5
Joined: Thu Aug 12, 2010 2:50 pm

Re: Checkboxtree disabling nodes

Postby JIDE Support » Thu Aug 12, 2010 4:16 pm

There was a regression and we just fixed to make it work again in 2.9.5.

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


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

Who is online

Users browsing this forum: No registered users and 67 guests