Examples of Document


Examples of org.odftoolkit.simple.Document

   *            an instance of <code>TableTableElement</code>
   * @return an instance of <code>Table</code> that can represent
   *         <code>element</code>
   */
  public static Table getInstance(TableTableElement element) {
    Document ownerDocument = (Document) ((OdfFileDom) (element.getOwnerDocument())).getDocument();
    return ownerDocument.getTableBuilder().getTableInstance(element);
  }
View Full Code Here

Examples of org.openbel.framework.common.model.Document

        sglist.add(sg);
        final BELDocument beldoc = new BELDocument(dh, null, nsset, sglist);

        // convert to common model
        final BELDocumentConverter converter = new BELDocumentConverter();
        final Document doc = converter.convert(beldoc);

        // validate namespace group
        final NamespaceGroup nsgroup = doc.getNamespaceGroup();
        assertThat("More than one custom namespace exists.", nsgroup
                .getNamespaces().size(), is(1));
        assertThat("The custom namespace does not match.", nsgroup
                .getNamespaces().get(0).getResourceLocation(), is(NS));
        assertThat("The default namespace does not match.",
View Full Code Here

Examples of org.openntf.domino.Document

  }

  private Document createDocument() {
    if (db == null)
      db = Factory.getSession().getDatabase("", "log.nsf");
    Document doc = db.createDocument();
    return doc;
  }
View Full Code Here

Examples of org.openoffice.gdocs.util.Document

                docNameLabel2.setVisible(true);
                docNameComboBox.setVisible(true);
                refreshButton.setVisible(true);
                docNameComboBox.addItem(docName.getText());
                final Map<String,Document> map = new HashMap<String,Document>();
                Document selected = null;
                final String docNameStr = docName.getText();
                for (Document doc:docsList) {
                    docNameComboBox.addItem(doc);
                    if (selected==null && docNameStr.startsWith(doc.getTitle())) {
                        selected = doc;
View Full Code Here

Examples of org.openoffice.xmerge.Document

        if (dataOut != null ) {

            if (mergeFile == null) {
                Enumeration docEnum = dataOut.getDocumentEnumeration();
                while (docEnum.hasMoreElements()) {
                    Document docOut      = (Document)docEnum.nextElement();
                    String fileName      = docOut.getFileName();
                    try {
                        FileOutputStream fos = new FileOutputStream(fileName);
                        docOut.write(fos);
                        fos.flush();
                        fos.close();
                    } catch (Exception writeExcept) {
                        System.out.println("\nThere was an writing out file <" +
                            fileName + ">");
                        writeExcept.printStackTrace();
                    }
                }
            } else {
                try {
                    FileInputStream mergeIS = new FileInputStream(mergeFile);
                    Document mergeDoc = myConvert.getOfficeDocument(mergeFile, mergeIS);
                    DocumentMerger merger = myConvert.getDocumentMerger(mergeDoc);
                    Enumeration mergeDocEnum = dataOut.getDocumentEnumeration();
                    Document convertedFile = (Document)mergeDocEnum.nextElement();

                    merger.merge(convertedFile);
          mergeIS.close();

                    FileOutputStream fos = new FileOutputStream(mergeFile);
View Full Code Here

Examples of org.osm.jsoup.nodes.Document

      } catch (Exception e) {
        video = null;
      }
    } else {
      // 链接地址不在支持的列表中时返回原链接地址以及链接的页面标题
      Document doc = getURLContent(url);
      video = new Video();
      video.setTitle(doc.title());
      video.setPageUrl(url);
    }

    return video;
  }
View Full Code Here

Examples of org.outerj.daisy.repository.Document

        String query = "select id, name where InCollection('" + collection + "') and branch = '" + branch + "'";
        VariantKey[] keys = queryManager.performQueryReturnKeys(query, Locale.getDefault());

        for (VariantKey key : keys) {
            Document doc = repository.getDocument(key, false);
            Version version = doc.getLiveVersion();
            if (version == null) {
                continue;
            }

            for (Part part : version.getParts().getArray()) {
View Full Code Here

Examples of org.pdfclown.documents.Document

    File file = null;
    try
    {
      // Instantiate a new PDF document!
      file = new File();
      Document document = file.getDocument();

      buildPdf_page(
        document,
        imageFileFormField,
        comment
View Full Code Here

Examples of org.pentaho.ui.xul.dom.Document

      final XulDomContainer mainWizardContainer = new SwingXulLoader().loadXul(MAIN_WIZARD_PANEL);
      new WizardContentPanel(wizardController).addContent(mainWizardContainer);

      wizardController.registerMainXULContainer(mainWizardContainer);

      final Document documentRoot = mainWizardContainer.getDocumentRoot();
      final XulDialog root = (XulDialog) documentRoot.getRootElement();
      final Window window = (Window) root.getRootObject();
      final DesignTimeContext designTimeContext = new DefaultWizardDesignTimeContext(wizardController.getEditorModel(), window);
      wizardController.setDesignTimeContext(designTimeContext);

      final XulRunner runner = new SwingXulRunner();
View Full Code Here

Examples of org.primefaces.cookbook.model.chapter8.Document

  private List<Document> availableDocs = new ArrayList<Document>();
  private List<Document> deletedDocs = new ArrayList<Document>();

  @PostConstruct
  public void initialize() {
    availableDocs.add(new Document("Perl script", 120, "Sara Schmidt", getCreationDate(), "perl"));
    availableDocs.add(new Document("Alex's master thesis", 850, "Alex Konradi", getCreationDate(), "dvi"));
    availableDocs.add(new Document("jQuery presentation", 687, "Jasper Morgan", getCreationDate(), "ppt"));
    availableDocs.add(new Document("Russian songs", 1020, "Urmel Night", getCreationDate(), "mid"));
    availableDocs.add(new Document("German songs", 2268, "Nicole Konradi", getCreationDate(), "mp3"));
    availableDocs.add(new Document("Cool flash multimedia", 2268, "John Wiese", getCreationDate(), "swf"));
    availableDocs.add(new Document("Windows custom sound", 84, "Sebastian Schwarz", getCreationDate(), "wav"));
    availableDocs.add(new Document("Currency exchange table", 1400, "Nadja Swift", getCreationDate(), "xls"));
    availableDocs.add(new Document("Search masks configuration", 33, "Andrew Andreev", getCreationDate(), "xml"));
  }
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.