On Wed, Aug 8, 2012 at 5:36 PM, Roger L. Whitcomb
<[email protected]> wrote:

<snip>

>
> So, you would need to make a new style in TerraTreeViewSkin (with get/set 
> methods).  Then if the style value is set, then when you get an input event 
> (mouse click), get the tree node in that position and check if there is a 
> disabled filter set, check the node with the filter and if the node is 
> included, then eat the mouse click....
>

Thanks for the explanation. Can something like this work?

class MyTreeSkin extends TerraTreeViewSkin  {
 // for now as a quick hack - override mouseClick (...)
 // then in mouseClick check which node was clicked and then check the
state of that node and decide whether or not to consume this click.
}

and then:
my_tree.getTreeViewSelectionListeners().add(new MyTreeSkin());


> ~Roger

thanks

Reply via email to