PDA

View Full Version : Tree.addListener(OnDoubleClick)



mimikoko
31 Mar 2009, 7:48 AM
Hello to all,
[LEFT]I want include to my Tree a Listener of Events.OnDoubleClick.

GWT: 1.5.3
GXT: 1.2.3

my try:
[code]
private final Tree tree = new Tree();

@Override
protected void onRender(Element parent, int pos) {
super.onRender(parent, pos);

tree.setSelectionMode(SelectionMode.SINGLE);
this.buildTree(createTreeModel());

[COLOR=Red] [B] tree.sinkEvents(Events.OnDoubleClick);
tree.addListener(Events.OnDoubleClick, new Listener