PDA

View Full Version : TreeView: how to select nothing?



lak-b
24 Aug 2009, 2:01 AM
Hello. I can't understen how to configure TreeView to allow user to drop selection. Please, help :)

lak-b
27 Aug 2009, 2:58 AM
that's what i want:

treePanel.addListener(Events.OnMouseDown, new Listener<TreePanelEvent<IndustryModel>>() {
public void handleEvent(TreePanelEvent<IndustryModel> te) {
if (te.getItem() == null)
treePanel.getSelectionModel().deselectAll();
}
});

thanks all:)

Arno.Nyhm
27 Aug 2009, 8:29 AM
for better understanding: where the user have to click to drop the selection?