Examples of collapseNode()


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

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

      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

Examples of org.openide.explorer.view.TreeView.collapseNode()

                    Children viewsChilds = views.getChildren();
                    for (Node n : viewsChilds.getNodes()) {
                        tree.expandNode(n);
                    }

                    tree.collapseNode(views);

                    // if the dataResult is not opened
                    if (!dataResult.isOpened()) {
                        dataResult.open(); // open the data result top component as well when the directory tree is opened
                    }
View Full Code Here

Examples of org.richfaces.component.state.TreeState.collapseNode()

            componentState.expandNode(tree, rowKey);
          }
        }
        else {
          if (componentState.isExpanded(rowKey)) {
            componentState.collapseNode(tree, rowKey);
          }
        }
      }
      Boolean adviseSelected = stateAdvisor.adviseNodeSelected(tree);
      if (null != adviseSelected) {
View Full Code Here

Examples of org.richfaces.component.state.TreeState.collapseNode()

            componentState.expandNode(tree, rowKey);
          }
        }
        else {
          if (componentState.isExpanded(rowKey)) {
            componentState.collapseNode(tree, rowKey);
          }
        }
      }
      Boolean adviseSelected = stateAdvisor.adviseNodeSelected(tree);
      if (null != adviseSelected) {
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.