Examples of PdfPTable


Examples of com.lowagie.text.pdf.PdfPTable

    return gestionDtoTable;
  }
 
  private PdfPTable addalltotalSum(String alltotalgestions) throws DocumentException {
    PdfPTable gestionDtoTable = new PdfPTable(11);
   
    PdfPCell gestionDtoCell = new PdfPCell(new Phrase(messageSource.getMessage("FicheST.rexAmount", null, localtion), contentBoldFont));
    gestionDtoCell.setBackgroundColor(new Color(Constants.RED,Constants.GREEN,Constants.BLUE));
    gestionDtoCell.setHorizontalAlignment(Rectangle.ALIGN_CENTER);
    gestionDtoTable.addCell(gestionDtoCell);
   
    String[] tmp = alltotalgestions.split(Constants.SEPRATE);
   

    gestionDtoCell = new PdfPCell(new Phrase(tmp[0] + messageSource.getMessage("pdf.gestiondto.content.euro", null, localtion), contentNormalFont));
    gestionDtoCell.setBackgroundColor(new Color(Constants.RED,Constants.GREEN,Constants.BLUE));
    gestionDtoCell.setHorizontalAlignment(Rectangle.ALIGN_RIGHT);
    gestionDtoTable.addCell(gestionDtoCell);
   
    gestionDtoCell = new PdfPCell(new Phrase(tmp[1] + messageSource.getMessage("pdf.gestiondto.content.euro", null, localtion), contentNormalFont));
    gestionDtoCell.setBackgroundColor(new Color(Constants.RED,Constants.GREEN,Constants.BLUE));
    gestionDtoCell.setHorizontalAlignment(Rectangle.ALIGN_RIGHT);
    gestionDtoTable.addCell(gestionDtoCell);
   
    gestionDtoCell = new PdfPCell(new Phrase(tmp[2] + messageSource.getMessage("pdf.gestiondto.content.euro", null, localtion), contentNormalFont));
    gestionDtoCell.setBackgroundColor(new Color(Constants.RED,Constants.GREEN,Constants.BLUE));
    gestionDtoCell.setHorizontalAlignment(Rectangle.ALIGN_RIGHT);
    gestionDtoTable.addCell(gestionDtoCell);
   
    gestionDtoCell = new PdfPCell(new Phrase(tmp[3] + messageSource.getMessage("pdf.gestiondto.content.euro", null, localtion), contentNormalFont));
    gestionDtoCell.setBackgroundColor(new Color(Constants.RED,Constants.GREEN,Constants.BLUE));
    gestionDtoCell.setHorizontalAlignment(Rectangle.ALIGN_RIGHT);
    gestionDtoTable.addCell(gestionDtoCell);
   
    gestionDtoCell = new PdfPCell(new Phrase(tmp[4] + messageSource.getMessage("pdf.gestiondto.content.euro", null, localtion), contentNormalFont));
    gestionDtoCell.setBackgroundColor(new Color(Constants.RED,Constants.GREEN,Constants.BLUE));
    gestionDtoCell.setHorizontalAlignment(Rectangle.ALIGN_RIGHT);
    gestionDtoTable.addCell(gestionDtoCell);
   
    gestionDtoCell = new PdfPCell(new Phrase(tmp[5] + messageSource.getMessage("pdf.gestiondto.content.euro", null, localtion), contentNormalFont));
    gestionDtoCell.setBackgroundColor(new Color(Constants.RED,Constants.GREEN,Constants.BLUE));
    gestionDtoCell.setHorizontalAlignment(Rectangle.ALIGN_RIGHT);
    gestionDtoTable.addCell(gestionDtoCell);
   
    gestionDtoCell = new PdfPCell(new Phrase(tmp[6] + messageSource.getMessage("pdf.gestiondto.content.euro", null, localtion), contentNormalFont));
    gestionDtoCell.setBackgroundColor(new Color(Constants.RED,Constants.GREEN,Constants.BLUE));
    gestionDtoCell.setHorizontalAlignment(Rectangle.ALIGN_RIGHT);
    gestionDtoTable.addCell(gestionDtoCell);
   
    gestionDtoCell = new PdfPCell(new Phrase(tmp[7] + messageSource.getMessage("pdf.gestiondto.content.euro", null, localtion), contentNormalFont));
    gestionDtoCell.setBackgroundColor(new Color(Constants.RED,Constants.GREEN,Constants.BLUE));
    gestionDtoCell.setHorizontalAlignment(Rectangle.ALIGN_RIGHT);
    gestionDtoTable.addCell(gestionDtoCell);
   
    gestionDtoCell = new PdfPCell(new Phrase(tmp[8] + messageSource.getMessage("pdf.gestiondto.content.euro", null, localtion), contentNormalFont));
    gestionDtoCell.setBackgroundColor(new Color(Constants.RED,Constants.GREEN,Constants.BLUE));
    gestionDtoCell.setHorizontalAlignment(Rectangle.ALIGN_RIGHT);
    gestionDtoTable.addCell(gestionDtoCell);
   
    gestionDtoCell = new PdfPCell(new Phrase(tmp[9] + messageSource.getMessage("pdf.gestiondto.content.euro", null, localtion), contentNormalFont));
    gestionDtoCell.setBackgroundColor(new Color(Constants.RED,Constants.GREEN,Constants.BLUE));
    gestionDtoCell.setHorizontalAlignment(Rectangle.ALIGN_RIGHT);
    gestionDtoTable.addCell(gestionDtoCell);
   

    float[] wf = {
        36,   //CR 3
        5// Niveau de risque 5
        18// Phase
        5,   //Statut
        5// Date de création
        5// Date de levée
        5,
        7// Cout UO
        5// Cout ST
        17// Vu
        7
      };
    gestionDtoTable.setWidths(wf);
    return gestionDtoTable;
  }
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.