problem in getting check box tree selection

This forum is used by users to request and discuss new product features. Please do not use this forum for technical support including bug reports.

Moderator: JIDE Support

Forum rules
Product suggestions only. Please do not use this forum for technical support including bug reports.

problem in getting check box tree selection

Postby chethan rao » Tue Jun 12, 2007 6:22 am

def _createCheckBoxTree(id):
tree = ObjectTreeManager.getTree(id)
treeModel = ObjectTreeModel(tree)

rootNode = _createRootNode(treeModel,treeModel.getRoot())
defaultTreeModel = DefaultTreeModel(rootNode)
cbt = CheckBoxTree(defaultTreeModel)
cbt.getCheckBoxTreeSelectionModel().setSelectionMode(1)

i am not able to get the single tree selection
is there any problem with the code please help me
chethan rao
 
Posts: 1
Joined: Tue Jun 12, 2007 5:02 am

Postby JIDE Support » Tue Jun 12, 2007 6:27 am

Not sure if I understand. getCheckBoxTreeSelectionModel().setSelectionMode() will change the selection mode of the check boxes. If you want to get the "regular" tree selection, using cbt.getSelectionModel().setSelectionMode.

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


Return to Product Suggestions

Who is online

Users browsing this forum: No registered users and 25 guests

cron