i have a problem with a clickhandler which is part of a widget in a treeitem.
If i clicked firstime on this widget, the handler from the treeItem gets fired. If i clicked on this widget a second time both handler are fired.
Is there a way to deactive the treehandler for one TreeItem?
I’ve the following code:
TreeItem subTree= new TreeItem(type.toString());
....
HorizontalPanel panel= new HorizontalPanel();
panel.setWidth("200px");
Label folderLabel= new Label(folder);
folderLabel.setWidth("200px");
panel.add(folderLabel);
Image choosen= new ChooseFolderImage(type, folder);
choosen.setSize("20px", "20px");
panel.add(choosen);
choosen.addHandler(handler, ClickEvent.getType());
subTree.addItem(panel);
....
rootTree.addItem(subTree);
greetings,
destiny
Actually I did the following:
onModuleLoad()method in my classwhich extends
EntryPointIt perfectly works fine, there must be some other erroneous place of your code.