Package org.apache.wicket.markup.html.tree

Examples of org.apache.wicket.markup.html.tree.ITreeState.collapseNode()


        public void nodeSelected(final TreeNode node) {
            final ITreeState treeState = getTree().getTreeState();
            if (!node.isLeaf()) {
                if (node.equals(previouslySelected) && treeState.isNodeExpanded(node)) {
                    treeState.collapseNode(node);
                } else {
                    treeState.expandNode(node);
                }
            }
            previouslySelected = node;
View Full Code Here


      protected void onNodeLinkClicked(Object node, BaseTree tree, AjaxRequestTarget target)
      {
        ITreeState state = tree.getTreeState();
        if (state.isNodeExpanded(node) && state.isNodeSelected(node))
        {
          state.collapseNode(node);
        }
        else
        {
          state.expandNode(node);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.