PDA

View Full Version : [Solved] How to detect a double-click on the Tree leaf node in Beta 2?



goodwrench
1 May 2008, 8:59 AM
In Beta 1, I was able to use a simple listener:


Tree tree = new Tree();
//...populate the tree

tree.addListener(Events.DoubleClick, new Listener<TreeEvent>() {
public void handleEvent(TreeEvent be) {
// your logic goes here
}
});

But it does not seem to work in Beta 2. The DobleClick event is not fired anymore. Look at the new API did not give me an obvious ansver, too. How to do it now?

Issue solved: the Events.DoubleClick was replaced on Events.OnDoubleClick.

darrellmeyer
1 May 2008, 10:08 AM
That is correct. The Events.DoubleClick is being removed.