Package com.lowagie.rups.model

Examples of com.lowagie.rups.model.TreeNodeFactory


    }
    if (obj instanceof ObjectLoader) {
      ObjectLoader loader = (ObjectLoader)obj;
      String[] pagelabels = PdfPageLabels.getPageLabels(loader.getReader());
      int i = 0;
      TreeNodeFactory factory = loader.getNodes();
      PdfTrailerTreeNode trailer = controller.getPdfTree().getRoot();
      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;
View Full Code Here


      repaint();
      return;
    }
    if (obj instanceof ObjectLoader) {
      ObjectLoader loader = (ObjectLoader)obj;
      TreeNodeFactory factory = loader.getNodes();
      PdfTrailerTreeNode trailer = controller.getPdfTree().getRoot();
      PdfObjectTreeNode catalog = factory.getChildNode(trailer, PdfName.ROOT);
      PdfObjectTreeNode outline = factory.getChildNode(catalog, PdfName.OUTLINES);
      if (outline == null) {
        return;
      }
      OutlineTreeNode root = new OutlineTreeNode();
      loadOutline(factory, root, factory.getChildNode(outline, PdfName.FIRST));
      setModel(new DefaultTreeModel(root));
    }
  }
View Full Code Here

      repaint();
      return;
    }
    if (obj instanceof ObjectLoader) {
      ObjectLoader loader = (ObjectLoader)obj;
      TreeNodeFactory factory = loader.getNodes();
      PdfTrailerTreeNode trailer = controller.getPdfTree().getRoot();
      PdfObjectTreeNode catalog = factory.getChildNode(trailer, PdfName.ROOT);
      PdfObjectTreeNode form = factory.getChildNode(catalog, PdfName.ACROFORM);
      if (form == null) {
        return;
      }
      PdfObjectTreeNode fields = factory.getChildNode(form, PdfName.FIELDS);
      FormTreeNode root = new FormTreeNode();
      if (fields != null) {
        FormTreeNode node = new FormTreeNode(fields);
        node.setUserObject("Fields");
        loadFields(factory, node, fields);
        root.add(node);
      }
      PdfObjectTreeNode xfa = factory.getChildNode(form, PdfName.XFA);
      if (xfa != null) {
        XfaTreeNode node = new XfaTreeNode(xfa);
        node.setUserObject("XFA");
        loadXfa(factory, node, xfa);
        root.add(node);
View Full Code Here

    }
    if (obj instanceof ObjectLoader) {
      ObjectLoader loader = (ObjectLoader)obj;
      String[] pagelabels = PdfPageLabels.getPageLabels(loader.getReader());
      int i = 0;
      TreeNodeFactory factory = loader.getNodes();
      PdfTrailerTreeNode trailer = controller.getPdfTree().getRoot();
      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;
View Full Code Here

TOP

Related Classes of com.lowagie.rups.model.TreeNodeFactory

Copyright © 2018 www.massapicom. 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.