Examples of insertTable()


Examples of com.lowagie.text.Table.insertTable()

         c.setWidths(new float[]
                 {
                    20, 2, 78
                 });
         c.insertTable(a, new Point(0, 0));
         c.insertTable(b, new Point(0, 2));

         document.add(c);
         document.add(new Paragraph("converted to PdfPTable:"));
         c.setConvert2pdfptable(true);
         document.add(c);
View Full Code Here

Examples of com.lowagie.text.Table.insertTable()

            Table aTable = new Table(4,4);    // 4 rows, 4 columns
            aTable.setAutoFillEmptyCells(true);
            aTable.addCell("2.2", new Point(2,2));
            aTable.addCell("3.3", new Point(3,3));
            aTable.addCell("2.1", new Point(2,1));
            aTable.insertTable(secondTable, new Point(1,3));
            document.add(aTable);
      document.add(new Paragraph("converted to PdfPTable:"));
      aTable.setConvert2pdfptable(true);
      document.add(aTable);
            document.newPage();
View Full Code Here

Examples of com.lowagie.text.Table.insertTable()

            // now, insert these 2 tables into a third for layout purposes
            Table c = new Table( 3, 1 );
            c.setWidth( 100.0f );
            c.setWidths( new float[] { 20, 2, 78 } );
            c.insertTable(a, new Point(0,0) );
            c.insertTable(b, new Point(0,2) );

            document.add(c);
      document.add(new Paragraph("converted to PdfPTable:"));
      c.setConvert2pdfptable(true);
View Full Code Here

Examples of com.lowagie.text.Table.insertTable()

            // now, insert these 2 tables into a third for layout purposes
            Table c = new Table( 3, 1 );
            c.setWidth( 100.0f );
            c.setWidths( new float[] { 20, 2, 78 } );
            c.insertTable(a, new Point(0,0) );
            c.insertTable(b, new Point(0,2) );

            document.add(c);
      document.add(new Paragraph("converted to PdfPTable:"));
      c.setConvert2pdfptable(true);
      document.add(c);
View Full Code Here

Examples of org.odftoolkit.simple.TextDocument.insertTable()

          //Replace whole Paragraph
          Paragraph orgparagraph = Paragraph
              .getInstanceof((TextParagraphElementBase) rightparentElement);
          TextDocument document = (TextDocument) orgparagraph
              .getOwnerDocument();
          tableContainer = document.insertTable(orgparagraph,
              sourceTable, false);
          pos = "whole";
          handlePageBreak(orgparagraph, pos, continued);

          rightparentElement.getParentNode().removeChild(
View Full Code Here

Examples of org.odftoolkit.simple.TextDocument.insertTable()

          delete(index, leftLength, rightparentElement);
          Paragraph orgparagraph = Paragraph
              .getInstanceof((TextParagraphElementBase) rightparentElement);
          TextDocument document = (TextDocument) orgparagraph
              .getOwnerDocument();
          tableContainer = document.insertTable(orgparagraph,
              sourceTable, true);
          pos = "head";
          handlePageBreak(orgparagraph, pos, continued);
      }
      } else if (nodeLength == (index + leftLength)) {
View Full Code Here

Examples of org.odftoolkit.simple.TextDocument.insertTable()

        delete(index, leftLength, rightparentElement);
        Paragraph orgparagraph = Paragraph
            .getInstanceof((TextParagraphElementBase) rightparentElement);
        TextDocument document = (TextDocument) orgparagraph
            .getOwnerDocument();
        tableContainer = document.insertTable(orgparagraph,
            sourceTable, false);
        handlePageBreak(orgparagraph, pos, continued);
      }else{
        //at the middle of original Paragraph, split original Paragraph, insert before the second Paragraph.
        delete(index, leftLength, rightparentElement);
View Full Code Here

Examples of org.odftoolkit.simple.TextDocument.insertTable()

        delete(0, index, rightparentElement);
        Paragraph orgparagraph = Paragraph
            .getInstanceof((TextParagraphElementBase) rightparentElement);
        TextDocument document = (TextDocument) orgparagraph
            .getOwnerDocument();
        tableContainer = document.insertTable(orgparagraph,
            sourceTable, true);
        if (!continued)
          textSelection.cleanBreakProperty(orgparagraph);
      }
    } else{
View Full Code Here

Examples of org.ow2.easybeans.tests.common.db.TableManager.insertTable()

        TableManager cTest01 = new TableManager(ds05);
        try {
            // It must create twice the table, because each is in a different
            // database.
            cTest00.insertTable("ds04");
            cTest01.insertTable("ds04");

            cTest00.deleteTable("ds04");
            cTest01.deleteTable("ds04");
        } catch (Exception e) {
            throw new IllegalStateException("Exception: " + e.getMessage());
View Full Code Here

Examples of org.ow2.easybeans.tests.common.db.TableManager.insertTable()

     * @throws NamingException if a lookup error occurs.
     */
    @TransactionAttribute(value = TransactionAttributeType.REQUIRED)
    public void insertTableWithRequired(final String dbName) throws SQLException, NamingException {
        TableManager tableManager = new TableManager(dbName);
        tableManager.insertTable(TABLE);
    }

    /**
     * @see org.ow2.easybeans.tests.common.ejbs.stateless.containermanaged.transaction.ItfTransactionMisc00
     * @param dbName is the name of the database in the registry.
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.