Examples of depthFirstEnumeration()


Examples of com.itextpdf.rups.view.itext.treenodes.PdfPagesTreeNode.depthFirstEnumeration()

      PdfObjectTreeNode catalog = factory.getChildNode(trailer, PdfName.ROOT);
      PdfPagesTreeNode pages = (PdfPagesTreeNode)factory.getChildNode(catalog, PdfName.PAGES);
      if (pages == null) {
        return;
      }
      Enumeration<PdfObjectTreeNode> p = pages.depthFirstEnumeration();
      PdfObjectTreeNode  child;
      StringBuffer buf;
      while (p.hasMoreElements()) {
        child = p.nextElement();
        if (child instanceof PdfPageTreeNode) {
View Full Code Here

Examples of com.lowagie.rups.view.itext.treenodes.PdfPagesTreeNode.depthFirstEnumeration()

      PdfObjectTreeNode catalog = factory.getChildNode(trailer, PdfName.ROOT);
      PdfPagesTreeNode pages = (PdfPagesTreeNode)factory.getChildNode(catalog, PdfName.PAGES);
      if (pages == null) {
        return;
      }
      Enumeration p = pages.depthFirstEnumeration();
      PdfObjectTreeNode  child;
      StringBuffer buf;
      while (p.hasMoreElements()) {
        child = (PdfObjectTreeNode)p.nextElement();
        if (child instanceof PdfPageTreeNode) {
View Full Code Here

Examples of com.lowagie.rups.view.itext.treenodes.PdfPagesTreeNode.depthFirstEnumeration()

      PdfObjectTreeNode catalog = factory.getChildNode(trailer, PdfName.ROOT);
      PdfPagesTreeNode pages = (PdfPagesTreeNode)factory.getChildNode(catalog, PdfName.PAGES);
      if (pages == null) {
        return;
      }
      Enumeration p = pages.depthFirstEnumeration();
      PdfObjectTreeNode  child;
      StringBuffer buf;
      while (p.hasMoreElements()) {
        child = (PdfObjectTreeNode)p.nextElement();
        if (child instanceof PdfPageTreeNode) {
View Full Code Here

Examples of javax.swing.tree.DefaultMutableTreeNode.depthFirstEnumeration()

        DefaultMutableTreeNode root =
                (DefaultMutableTreeNode) editPermsTree.getModel().getRoot();
        PrincipalHolder p = (PrincipalHolder) root.getUserObject();

        // walk each child and record its permission
        for (Enumeration e = root.depthFirstEnumeration(); e.hasMoreElements();) {
            DefaultMutableTreeNode node =
                    (DefaultMutableTreeNode) e.nextElement();
            if (!(node.getUserObject() instanceof ActionHolder)) {
                continue;
            }
View Full Code Here

Examples of javax.swing.tree.DefaultMutableTreeNode.depthFirstEnumeration()

    for (int i = 0; i < paths.length; i++)
    {
      TreePath path = paths[i];
      DefaultMutableTreeNode node =
        (DefaultMutableTreeNode) path.getLastPathComponent();
      Enumeration enumeration = node.depthFirstEnumeration();

      while (enumeration.hasMoreElements())
      {
        DefaultMutableTreeNode child =
          (DefaultMutableTreeNode) enumeration.nextElement();
View Full Code Here

Examples of javax.swing.tree.DefaultMutableTreeNode.depthFirstEnumeration()

      //      }

      DefaultMutableTreeNode treeNode =
        (DefaultMutableTreeNode) path.getLastPathComponent();

      Enumeration depthEnum = treeNode.depthFirstEnumeration();

      if (!depthEnum.hasMoreElements())
      {
        break;
      }
View Full Code Here

Examples of javax.swing.tree.DefaultMutableTreeNode.depthFirstEnumeration()

      if (maxDepth > WARN_DEPTH)
      {
        logger.warn("Should warn user, depth=" + maxDepth);
      }

      depthEnum = treeNode.depthFirstEnumeration();

      while (depthEnum.hasMoreElements())
      {
        DefaultMutableTreeNode node =
          (DefaultMutableTreeNode) depthEnum.nextElement();
View Full Code Here

Examples of javax.swing.tree.DefaultMutableTreeNode.depthFirstEnumeration()

                    Document xmlDocument = LoadFromServerAction.createMasterDocument(Arrays.asList(nodeURL));
                    DefaultMutableTreeNode treeNode = new DefaultMutableTreeNode("HostedDataTest");
                    ResourceTree.buildLocatorTree(treeNode, xmlDocument.getDocumentElement(),
                            Collections.<ResourceLocator>emptySet(), null);

                    Enumeration enumeration = treeNode.depthFirstEnumeration();

                    while (enumeration.hasMoreElements()) {
                        Object nextEl = enumeration.nextElement();
                        DefaultMutableTreeNode node = (DefaultMutableTreeNode) nextEl;
View Full Code Here

Examples of javax.swing.tree.DefaultMutableTreeNode.depthFirstEnumeration()

    final DefaultMutableTreeNode node = treeObjects.get(object);

    assert node != null;

    // Remove all children from treeObjects
    Enumeration e = node.depthFirstEnumeration();
    while (e.hasMoreElements()) {
      DefaultMutableTreeNode childNode = (DefaultMutableTreeNode) e
          .nextElement();
      Object nodeObject = childNode.getUserObject();
      treeObjects.remove(nodeObject);
View Full Code Here

Examples of javax.swing.tree.DefaultMutableTreeNode.depthFirstEnumeration()

  private DefaultMutableTreeNode getTreeNode(DefaultTreeModel treeModel,
      String id) {
    DefaultMutableTreeNode root = (DefaultMutableTreeNode) treeModel
        .getRoot();
    Enumeration iter = root.depthFirstEnumeration();
    while (iter.hasMoreElements()) {
      DefaultMutableTreeNode tNode = (DefaultMutableTreeNode) iter
          .nextElement();
      if (tNode.getUserObject().equals(id)) {
        return tNode;
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.