accessing tristate checkbox state from selection path

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.

accessing tristate checkbox state from selection path

Postby pfriend » Mon Jun 03, 2013 1:10 pm

I am fetching selected paths with the following:

Code: Select all
final CheckBoxTreeSelectionModel model = tree.getCheckBoxTreeSelectionModel();
final TreePath[] checked_paths = model.getSelectionPaths();


I need access to the raw tristate checkbox values, since I need to know whether a given node is partially selected. I haven't been able to find a way to get access to this via TreePath or DefaultMutableTreeNode, and am probably missing something obvious.

Thanks in advance for any pointers,

Peter
pfriend
 
Posts: 18
Joined: Sun Dec 04, 2011 3:47 pm

Re: accessing tristate checkbox state from selection path

Postby JIDE Support » Mon Jun 03, 2013 1:30 pm

Please invoke CheckBoxTreeSelectionModel#isPartiallySelected(TreePaht).

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 11 guests

cron