javafx - Allow multiple selection for parent nodes but not for leafs in TreeTableView -


i want user able select multiple parent nodes, single leaf nodes. if user selects leaf node, other selected nodes should should deselected. , if user selects parent node, selection should cleared if leaf node selected. a general rule selection should cleared if old selected node or new selected node leaf. idea. i'm guessing possible somehow, how?

i've tried adding listener selected item, , clear selection if old selected item or new selected item leaf. since have select new selected item again after clearing selection, gives me endless loop listener notified on , on again. same happens if add listchangelistener getselectionmodel().getselectedindices() , check if list contains leaf nodes.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -