Examples of Paragraph


Examples of a.b.m2.Paragraph

   
    // create some data
    // use a.b.m2.Book which has 1:N relations (collection) to other beans
    Book book = new Book("History of Britain", "John O'Farrel", ImmutableList.copyOf(new Section[] {
      new Section("Section1", "no description", ImmutableSet.copyOf(new Paragraph[] {
          new Paragraph(1, "Bla bla bla"),
          new Paragraph(1, "Bla bla bla"),
      })),
      new Section("Section2", "no description", ImmutableSet.copyOf(new Paragraph[] {
          new Paragraph(1066, "Bla bla bla"),
      })),
      new Section("Section3", "no description", ImmutableSet.copyOf(new Paragraph[] {
          new Paragraph(1, "Bla bla bla"),
          new Paragraph(2, "Bla bla bla"),
          new Paragraph(3, "Bla bla bla"),
      })),
    }));
   
    // instantiate cloner
    BookCloner987 bookCloner987 = new BookCloner987();
View Full Code Here

Examples of com.aspose.words.Paragraph

      wordDocBuilder.endRow();
      wordDocBuilder.endTable();
      // Add Comment
      Comment comment = new Comment(wordDoc);
      comment.setAuthor("D.Righetto");
      comment.getParagraphs().add(new Paragraph(wordDoc));
      comment.getFirstParagraph().getRuns().add(
          new Run(wordDoc, "My Comment text !!!"));
      wordDocBuilder.getCurrentParagraph().appendChild(comment);
      // Add break
      wordDocBuilder.insertBreak(BreakType.PAGE_BREAK);
View Full Code Here

Examples of com.dodo.blog.ui.component.container.Paragraph

        stackWrapper.add( cause );

        StringWriter sw = new StringWriter();
        throwable.printStackTrace( new PrintWriter( sw ) );

        Paragraph stack = new Paragraph( sw.toString().replace( "\n", "<br/>" ).replace( "\t", "<span>&nbsp;&nbsp;&nbsp;<span>" ) );
        stack.setAttribute( "style", "margin: 0; padding: 0;color: #555;" );
        stackWrapper.add( stack );
    }
View Full Code Here

Examples of com.github.gwtbootstrap.client.ui.Paragraph

        setNotDirty();

        //Dump model
        final Well dtreeWidget = new Well();
        dtreeWidget.add( new Label( "Decision Tree" ) );
        dtreeWidget.add( new Paragraph( "Package: " + model.getPackageName() ) );
        dtreeWidget.add( new Paragraph( "Name: " + model.getTreeName() ) );

        final TypeNode root = model.getRoot();
        final Well typeWidget = new Well();
        typeWidget.add( new Label( "Type" ) );
        typeWidget.add( new Paragraph( "Class Name: " + root.getClassName() ) );
        dtreeWidget.add( typeWidget );

        for ( Node child : root.getChildren() ) {
            final Well childWidget = new Well();
            if ( child instanceof ConstraintNode ) {
                childWidget.add( new Label( "Constraint" ) );
                childWidget.add( new Paragraph( "Field: " + ( (ConstraintNode) child ).getFieldName() ) );
                childWidget.add( new Paragraph( "Operator: " + ( (ConstraintNode) child ).getOperator() ) );
                final Value value = ( (ConstraintNode) child ).getValue();
                if ( value instanceof StringValue ) {
                    childWidget.add( new Paragraph( "Value: " + ( (StringValue) value ).getValue() ) );
                } else if ( value instanceof IntegerValue ) {
                    childWidget.add( new Paragraph( "Value: " + ( (IntegerValue) value ).getValue() ) );
                }
                typeWidget.add( childWidget );
            }
        }
        container.getElement().getStyle().setPadding( 10,
View Full Code Here

Examples of com.itextpdf.text.Paragraph

      document.close();
    }
  }

  private void addTitle(Document document) throws DocumentException {
    Paragraph title = new Paragraph(exportConf.getFileName());
    title.add(new Paragraph(" ")); // empty line
    title.setAlignment(Element.ALIGN_CENTER);
    document.add(title);
  }
View Full Code Here

Examples of com.itextpdf.text.Paragraph

          HeaderFooter event = new HeaderFooter();
          writer.setBoxSize("art", new Rectangle(36, 54, 559, 788));
          writer.setPageEvent(event);
         document.open();
         
      Paragraph p=new Paragraph();
      for (int i=0; i<=1000; i++){
      p.add("dnfkjnsdjkfjknsdkjfnknsdkfjbsdkjfs");}
      document.add(p);
     
          document.close();
       }
View Full Code Here

Examples of com.itextpdf.text.Paragraph

  public PdfPTable createTable(String airport) {

    // Creation of PdfTable with 4 columns
    final PdfPTable table = new PdfPTable(4);

    final PdfPCell cell1 = new PdfPCell(new Paragraph("Service", BFONT));
    cell1.setGrayFill(0.3f);
    final PdfPCell cell2 = new PdfPCell(new Paragraph("Thème", BFONT));
    cell2.setGrayFill(0.3f);
    final PdfPCell cell3 = new PdfPCell(
        new Paragraph("Observations", BFONT));
    cell3.setGrayFill(0.3f);
    final PdfPCell cell4 = new PdfPCell(new Paragraph("Action(s)", BFONT));
    cell4.setGrayFill(0.3f);

    table.addCell(cell1);
    table.addCell(cell2);
    table.addCell(cell3);
View Full Code Here

Examples of com.itextpdf.text.Paragraph

   *
   * @param paragraph, number
   */
  public void ajouterLigneVide(Paragraph paragraph, int number) {
    for (int i = 0; i < number; i++) {
      paragraph.add(new Paragraph(" "));
    }
  }
View Full Code Here

Examples of com.itextpdf.text.Paragraph

   * @param airport
   */
  public int generate(String airport) {

    Document doc = null;
    Paragraph p1 = new Paragraph(
        "                             A   Monsieur le directeur de l'aéroport",
        CATFONT);
    ajouterLigneVide(p1, 2);
    Paragraph p2 = new Paragraph(
        "Objet : Signature à apposer sur Procés-Verbal", CATFONT);
    ajouterLigneVide(p2, 2);
    Paragraph p3 = new Paragraph("Monsieur,", CATFONT);
    ajouterLigneVide(p3, 1);
    Paragraph p4 = new Paragraph(
        "Nous avons élaboré le rapport des actions à faire suites aux réclamations que vous avez reçu dans votre aéroport. ",
        CATFONT);
    ajouterLigneVide(p4, 1);
    Paragraph p5 = new Paragraph(
        "Comme, nous vous remercions aux efforts que vous fournissez pour collaborer à ce travail. Nous insistons sur le faite de nous envoyer un rapport détaillé englobant toutes les Actions Entreprises Parmi celles incluent dans le tableau suivant :",
        CATFONT);
    ajouterLigneVide(p5, 2);
    Paragraph p6 = new Paragraph(
        "Nous vous prions d'agréer, Monsieur, nos salutations distinguées.",
        CATFONT);

    SimpleDateFormat formatter = new SimpleDateFormat("dd_MM_yyyy");
    String file = "/home/matrix/Desktop/pvs/PV_" + formatter.format(new Date())
        + "_" + airport + ".pdf";

    try {

      doc = new Document();

      PdfWriter writer = PdfWriter.getInstance(doc, new FileOutputStream(
          file));
      writer.setPdfVersion(PdfWriter.PDF_VERSION_1_6);

      // opening the document for writing
      doc.open();

      Image _logo = Image
          .getInstance("/home/matrix/apps/workspace/reclaadmin/WebContent/VAADIN/themes/reindeer/layouts/images/logo.gif");
      _logo.setAlignment(1);
      _logo.scalePercent(50);

      Image logo = Image
          .getInstance("/home/matrix/apps/workspace/reclaadmin/WebContent/VAADIN/themes/reindeer/layouts/images/slogon.gif");
      logo.setAlignment(1);
      logo.scalePercent(50);

      Paragraph p0 = new Paragraph();
      p0.add(_logo);
      p0.add(logo);

      ajouterLigneVide(p0, 3);

      doc.add(p0);
      doc.add(p1);
View Full Code Here

Examples of com.itextpdf.text.Paragraph

            logo.scalePercent(50);
           
            document.add(_logo);
            document.add(logo);
           
            document.add(new Paragraph("--Header--"));
           
        } catch (Exception e) {
            e.printStackTrace();
        }
       
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.