Examples of Tree


Examples of net.yanhl.tree.Tree

    try {
      currentUserName = UserUtil.getCurrentUserName(request);
      String currentUserId = UserUtil.getCurrentUserId(request);
      String parentId = StringUtil.getValue(request, "gid");
      String basePath = StringUtil.getValue(request, "basePath");
      Tree tree = new Tree(currentUserId, basePath, parentId);
      String treeResult = treeManager.getUserTree(tree);
      print(response, treeResult);
    } catch (Exception e) {
      e.printStackTrace();
      log.error(currentUserName + ">获得借入/借出人员列表" + user + "出错\n\t" + e.getMessage());
View Full Code Here

Examples of org.antlr.runtime.tree.Tree

    // assert tree.getType() == Bst.COMMANDS;

    // Go
    for (int i = 0; i < tree.getChildCount(); i++) {
      Tree child = tree.getChild(i);
      switch (child.getType()) {
      case BstParser.STRINGS:
        strings(child);
        break;
      case BstParser.INTEGERS:
        integers(child);
View Full Code Here

Examples of org.antlr.v4.runtime.tree.Tree

    UIManager.put("Tree.closedIcon", empty);
    UIManager.put("Tree.openIcon", empty);
    UIManager.put("Tree.leafIcon", empty);

    Tree parseTreeRoot = viewer.getTree().getRoot();
    TreeNodeWrapper nodeRoot = new TreeNodeWrapper(parseTreeRoot, viewer);
    fillTree(nodeRoot, parseTreeRoot, viewer);
    final JTree tree = new JTree(nodeRoot);
    tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
View Full Code Here

Examples of org.apache.click.extras.tree.Tree

    /**
     * Creates and return a new tree instance.
     */
    protected Tree createTree() {
        return new Tree("tree");
    }
View Full Code Here

Examples of org.apache.garbage.tree.Tree

            main.props = System.getProperties();
            JXPathContext context = JXPathContext.newContext(main);

            InputSource source = new InputSource(args[0]);
            Parser parser = new Parser();
            Tree tree = parser.parse(source);
            String encoding = (args.length > 1? args[1]: "US-ASCII");

            XMLSerializer serializer = new XMLSerializer();
            serializer.setOutput(System.out, encoding);
View Full Code Here

Examples of org.apache.geronimo.console.util.Tree

        ContainerSystemInfo systemInfo = configuration.containerSystem;
        Map<ContainerType, TreeEntry> containerMap = new TreeMap<ContainerType, TreeEntry>();
        List<ContainerInfo> containerInfos = systemInfo.containers;
        ContainerInfo containerInfo = null;
        TreeEntry containerTypesEntry, containersEntry, deploymentsEntry = null;
        Tree tree = new Tree("name", "name");
        List<TreeEntry> entries = new ArrayList<TreeEntry>();
        for (int i = 0; i < containerInfos.size(); i++) {

            containerInfo = containerInfos.get(i);
            container = containerSystem.getContainer(containerInfo.id);
            List<TreeEntry> containers = null;
            if (containerMap.get(container.getContainerType()) != null) {
                containerTypesEntry = containerMap.get(container.getContainerType());
                containers = containerTypesEntry.getChildren();
            } else {
                containerTypesEntry = new TreeEntry();
                containerTypesEntry.setName(resolveContainerTypes(container.getContainerType()));
                containerTypesEntry.setValues(new String[]{containerTypesEntry.getName()});
                containers = new ArrayList<TreeEntry>();
                containerTypesEntry.setChildren(containers);
                containerMap.put(container.getContainerType(),containerTypesEntry);
                entries.add(containerTypesEntry);
            }
            containersEntry = new TreeEntry();
            containersEntry.setName(containerInfo.id);
            containersEntry.setValues(new String[]{containerInfo.id});

            DeploymentInfo[] deployments = container.deployments();
            containersEntry.setChildren(getDeployments(deployments));
            containers.add(containersEntry);
        }
        tree.setItems(entries);
        return tree;
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.api.Tree

    }

    private Tree createTree(@Nonnull Tree parent, @Nonnull NodeInfo nInfo, @CheckForNull String uuid) throws RepositoryException {
        String ntName = nInfo.getPrimaryTypeName();
        String value = (ntName != null) ? ntName : TreeUtil.getDefaultChildType(ntTypesRoot, parent, nInfo.getName());
        Tree child = TreeUtil.addChild(parent, nInfo.getName(), value, ntTypesRoot, userID);
        if (ntName != null) {
            accessManager.checkPermissions(child, child.getProperty(JcrConstants.JCR_PRIMARYTYPE), Permissions.NODE_TYPE_MANAGEMENT);
        }
        if (uuid != null) {
            child.setProperty(JcrConstants.JCR_UUID, uuid);
        }
        for (String mixin : nInfo.getMixinTypeNames()) {
            TreeUtil.addMixin(child, mixin, ntTypesRoot, userID);
        }
        return child;
View Full Code Here

Examples of org.apache.struts2.components.Tree

    public TreeModel(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        super(stack, req, res);
    }

    protected Component getBean() {
        return new Tree(stack,req,res);
    }
View Full Code Here

Examples of org.apache.struts2.dojo.components.Tree

    public String getBeanName() {
        return "tree";
    }

    protected Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new Tree(stack, req, res);
    }
View Full Code Here

Examples of org.apache.wicket.extensions.markup.html.tree.Tree

    // construct the panel
    add(new RecursivePanel("panels", l1));

    // create a tree
    TreeModel treeModel = convertToTreeModel(l1);
    final Tree tree = new Tree("tree", treeModel)
    {
      @Override
      protected String renderNode(TreeNode node)
      {
        DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)node;
        Object userObject = treeNode.getUserObject();
        return (userObject instanceof List) ? "<subtree>"
          : String.valueOf(treeNode.getUserObject());
      }
    };
    // disable ajax links in this example
    tree.setLinkType(LinkType.REGULAR);

    add(tree);
    add(new Link("expandAll")
    {
      @Override
      public void onClick()
      {
        tree.getTreeState().expandAll();
      }
    });

    add(new Link("collapseAll")
    {
      @Override
      public void onClick()
      {
        tree.getTreeState().collapseAll();
      }
    });

    add(new BookmarkablePageLink<Void>("ajaxTreeLink", SimpleTreePage.class));
  }
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.