CheckedTreeDialog adding Handler/Listener
I have to stablish the behavior of the view regarding the checked items in order to have coherency between the different tree nodes checked.
I mean if you check a leaf node I want to also check automatically all higher branch nodes or If you uncheck the las checked leaf node then unchek all the higher nodes without child nodes checked...
So I need to catch an event when user checks or unchecks any tree element in the view.
Could anyone tell me how should I add a listener to do this? or how other way I should try to achieve it?
Thank you in advance.