View Javadoc
1   package org.kuali.ole.deliver.util.printSlip;
2   
3   import com.itextpdf.text.Chunk;
4   import com.itextpdf.text.Paragraph;
5   import com.itextpdf.text.pdf.PdfPTable;
6   import org.kuali.ole.deliver.util.OlePrintSlipUtil;
7   
8   /**
9    * Created by sheiksalahudeenm on 7/30/15.
10   */
11  public class InTransitPrintSlipUtil extends OlePrintSlipUtil {
12  
13      @Override
14      protected void populateHeader(Paragraph paraGraph) {
15          paraGraph.add(new Chunk("Routing Slip In-Transit", getPdfFormatUtil().getBoldFont()));
16      }
17  
18      @Override
19      protected void populateBody(PdfPTable pdfTable) {
20          String routeTo = null; //TODO: populate routeTo
21          pdfTable.addCell(getPdfFormatUtil().getPdfPCellInJustified("Route To"));
22          pdfTable.addCell(getPdfFormatUtil().getPdfPCellInLeft(":"));
23          pdfTable.addCell(getPdfFormatUtil().getPdfPCellInJustified(routeTo));
24  
25          pdfTable.addCell(getPdfFormatUtil().getPdfPCellInJustified("Date/Time "));
26          pdfTable.addCell(getPdfFormatUtil().getPdfPCellInLeft(":"));
27          pdfTable.addCell(getPdfFormatUtil().getPdfPCellInJustified(
28                  getSimpleDateFormat().format(getOleItemRecordForCirc().getItemRecord().getEffectiveDate()).toString()));
29      }
30  }