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/31/15.
10   */
11  public class InTransitForLoanPrintSlipUtil extends OlePrintSlipUtil {
12      @Override
13      protected void populateHeader(Paragraph paraGraph) {
14          paraGraph.add(new Chunk("Intransit for Loan", getPdfFormatUtil().getBoldFont()));
15      }
16  
17      @Override
18      protected void populateBody(PdfPTable pdfTable) {
19          String routeTo = null; //TODO: populate routeTo
20          String requestedBy = null; //TODO: populate requestedBy
21          pdfTable.addCell(getPdfFormatUtil().getPdfPCellInJustified("Route To"));
22          pdfTable.addCell(getPdfFormatUtil().getPdfPCellInLeft(":"));
23          pdfTable.addCell(getPdfFormatUtil().getPdfPCellInJustified(routeTo));
24  
25          pdfTable.addCell(getPdfFormatUtil().getPdfPCellInJustified("Place on hold for"));
26          pdfTable.addCell(getPdfFormatUtil().getPdfPCellInLeft(":"));
27          pdfTable.addCell(getPdfFormatUtil().getPdfPCellInJustified(requestedBy));
28  
29  
30          pdfTable.addCell(getPdfFormatUtil().getPdfPCellInJustified("Date/Time "));
31          pdfTable.addCell(getPdfFormatUtil().getPdfPCellInLeft(":"));
32          pdfTable.addCell(getPdfFormatUtil().getPdfPCellInJustified(getSimpleDateFormat().format(getOleItemRecordForCirc().getItemRecord().getEffectiveDate()).toString()));
33      }
34  }