Tree - Change order of Handler execution?

14 views
Skip to first unread message

membersound

unread,
Jan 3, 2013, 4:19:33 AM1/3/13
to google-we...@googlegroups.com
Hi,

I have expanded the Tree element and add each one SelectionHandler, OpenHandler, CloseHandler to my Custom Tree class.
The problem is: whenever I close a tree, then first the SelectionHandler is executed, and then the CloseHandler.
All other things work fine: if I open the tree, only OpenHandler executes. If I select an element, only SelectionHandler gets executed.

BUT if I selected an element in the expanded tree and close the Tree afterwards, then again SelectionHandler gets executed and then CloseHandler.

How can I prevent this? Or how could I tell the Tree element to first call the CloseHandler and then the SelectionHandler? Because I need to track in the SelectionHandler if open/close of the tree was clicked.

Thanks
Reply all
Reply to author
Forward
0 new messages