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

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -