PDA

View Full Version : Handle TreePanel's element DoubleClick Event



4shael
15 Jul 2009, 5:08 AM
This question have already being asked here, but there no answer. So how can i handle this event?

sven
15 Jul 2009, 5:10 AM
You need to sink the doubleclick browser element on the treepanel and than you can just listen to it.

4shael
15 Jul 2009, 5:54 AM
Can you write the example, please? Just a line where i must sink an event.

sven
15 Jul 2009, 6:02 AM
tree.sinkEvents(Event.ONDBLCLICK);
tree.addListener(Events.OnDoubleClick, new Listener<TreePanelEvent<ModelData>>() {
public void handleEvent(TreePanelEvent<ModelData> be) {
}
});