9293949596979899100101102
@Override protected void onClick(final AjaxRequestTarget target) { super.onClick(target); send(getPage(), Broadcast.BREADTH, new TreeNodeClickUpdate(target, roleTO.getId())); } }; } }; tree.add(new WindowsTheme());
112113114115116117118119120121
@Override public void onEvent(final IEvent<?> event) { super.onEvent(event); if (event.getPayload() instanceof TreeNodeClickUpdate) { final TreeNodeClickUpdate update = (TreeNodeClickUpdate) event.getPayload(); updateTree(); update.getTarget().add(treeContainer); } }