/** * Creates a link that can be used to select / deselect the specified node. * * @param parent * The parent component * @param id * The component id * @param node * The parent node * @return The component that represents the link */ protected MarkupContainer newNodeLink(MarkupContainer parent, String id, final TreeNode node) { return newLink(parent, id, new ILinkCallback() { private static final long serialVersionUID = 1L; public void onClick(AjaxRequestTarget target) { getTreeState().selectNode(node, !getTreeState().isNodeSelected(node)); onNodeLinkClicked(target, node); updateTree(target); } }); }
/** * Creates a link that can be used to select / deselect the specified node. * * @param parent * The parent component * @param id * The component id * @param node * The parent node * @return The component that represents the link */ protected MarkupContainer newNodeLink(final MarkupContainer parent, final String id, final TreeNode node) { return newLink(parent, id, new ILinkCallback() { private static final long serialVersionUID = 1L; @Override public void onClick(final AjaxRequestTarget target) { getTreeState().selectNode(node, !getTreeState().isNodeSelected(node)); onNodeLinkClicked(target, node); if (target != null) { updateTree(target); } } }); }
junctionLink = newLink(parent, id, new ILinkCallback()
junctionLink = newLink(parent, id, new ILinkCallback()