With the standard GWT 2.0.3 API, how do you add a Clickhandler to a TreeItem? I hope to implement asynchronous calls on the server that will retrieve the received TreeItems that have been extended.
Unfortunately, it FastTreedoes not work in GXT applications. Therefore, I will return to the initial stage when you need to bind handlers to TreeItems!
Are there any noticeable drops with this code:
Tree.addSelectionHandler(new SelectionHandler<TreeItem>()
{
@Override
public void onSelection(SelectionEvent event()
{
if(event.getSelectedItem == someTreeItem)
{
}
}
});
source
share