With the standard GWT 2.0.3 API, how do you add a Clickhandler to the TreeItem? I'm hoping to implement asynchronous calls to the server that will retrieve the resulting TreeItems that are expanded.
Unfortunately FastTree
doesn't work in GXT applications. Therefore I'm back to the original step of needing to attach handlers to TreeItem
s!
Are there any noticeable downfalls with this code:
Tree.addSelectionHandler(new SelectionHandler<TreeItem>()
{
@Override
public void onSelection(SelectionEvent event()
{
if(event.getSelectedItem == someTreeItem)
{
//Something
}
}
});