org.kuali.kfs.module.endow.report.util
Class EndowmentReportPrintBase

java.lang.Object
  extended by org.kuali.kfs.module.endow.report.util.EndowmentReportPrintBase
Direct Known Subclasses:
AssetStatementReportPrint, TransactionStatementReportPrint, TransactionSummaryReportPrint, TrialBalanceReportPrint

public abstract class EndowmentReportPrintBase
extends Object


Field Summary
static int CRITERIA_TABLE_WIDTH
           
static com.lowagie.text.Font footerRegularFont
           
static com.lowagie.text.Font footerTitleFont
           
protected static String FORMAT164
           
protected static String FORMAT192
           
protected static String FORMAT195
           
static int FULL_TABLE_WIDTH
           
static com.lowagie.text.Font headerFont
           
static com.lowagie.text.Font headerSheetRegularFont
           
static com.lowagie.text.Font headerShheetTitleFont
           
static int KEMID_SELECTED_TABLE_WIDTH
           
static int KEMIDS_SELECTED_COLUMN_NUM
           
protected static com.lowagie.text.Rectangle LETTER_LANDSCAPE
           
protected static com.lowagie.text.Rectangle LETTER_PORTRAIT
           
static int MULTIPLE_KEMID_TABLE_WIDTH
           
static com.lowagie.text.Font regularFont
           
static int REQUEST_INFO_TABLE_WIDTH
           
static com.lowagie.text.Font titleFont
           
 String ZERO_FOR_REPORT
           
 
Constructor Summary
EndowmentReportPrintBase()
           
 
Method Summary
protected  String convertToUpperCase(String s)
          Converts a string to upper case
 com.lowagie.text.pdf.PdfPCell createCell(String contents, com.lowagie.text.Font font, int horizontalAlignment, boolean borderLine)
          Create a cell with the given font, alignment, and borderline option
 com.lowagie.text.pdf.PdfPCell createCell(String contents, com.lowagie.text.Font font, int horizontalAlignment, int verticalAlignment, boolean borderLine)
          Creates a call with given font, alignments, and borderline
protected  com.lowagie.text.pdf.PdfPCell createCellWithDefaultFontAndBorderLine(String s, int alignment)
          Creates a cell
protected  com.lowagie.text.pdf.PdfPCell createCellWithDefaultFontAndWithoutBorderLine(String s, int alignment)
          Creates a cell without borderline
protected  String formatAmount(BigDecimal amount)
          Format the dollar amount - 19,2 decimal
protected  String formatAmount(BigDecimal amount, String format)
          Format the dollar amount
protected  com.lowagie.text.pdf.PdfPCell getAmountCell(BigDecimal value, com.lowagie.text.Font font)
          Created a cell with a specific font
protected  com.lowagie.text.pdf.PdfPCell getAmountCell(BigDecimal value, com.lowagie.text.Font font, String format)
          Created a cell with a specific font and format
 boolean printFooter(EndowmentReportFooterDataHolder footerData, com.lowagie.text.Document document)
          Generates the footer
 boolean printReportHeaderPage(EndowmentReportHeaderDataHolder reportRequestHeaderDataHolder, com.lowagie.text.Document document, String listKemidsInHeader)
          Generates the report header sheet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZERO_FOR_REPORT

public final String ZERO_FOR_REPORT
See Also:
Constant Field Values

KEMIDS_SELECTED_COLUMN_NUM

public static final int KEMIDS_SELECTED_COLUMN_NUM
See Also:
Constant Field Values

REQUEST_INFO_TABLE_WIDTH

public static final int REQUEST_INFO_TABLE_WIDTH
See Also:
Constant Field Values

CRITERIA_TABLE_WIDTH

public static final int CRITERIA_TABLE_WIDTH
See Also:
Constant Field Values

MULTIPLE_KEMID_TABLE_WIDTH

public static final int MULTIPLE_KEMID_TABLE_WIDTH
See Also:
Constant Field Values

KEMID_SELECTED_TABLE_WIDTH

public static final int KEMID_SELECTED_TABLE_WIDTH
See Also:
Constant Field Values

FULL_TABLE_WIDTH

public static final int FULL_TABLE_WIDTH
See Also:
Constant Field Values

headerShheetTitleFont

public static final com.lowagie.text.Font headerShheetTitleFont

headerSheetRegularFont

public static final com.lowagie.text.Font headerSheetRegularFont

titleFont

public static final com.lowagie.text.Font titleFont

regularFont

public static final com.lowagie.text.Font regularFont

headerFont

public static final com.lowagie.text.Font headerFont

footerTitleFont

public static final com.lowagie.text.Font footerTitleFont

footerRegularFont

public static final com.lowagie.text.Font footerRegularFont

LETTER_PORTRAIT

protected static final com.lowagie.text.Rectangle LETTER_PORTRAIT

LETTER_LANDSCAPE

protected static final com.lowagie.text.Rectangle LETTER_LANDSCAPE

FORMAT192

protected static final String FORMAT192
See Also:
Constant Field Values

FORMAT195

protected static final String FORMAT195
See Also:
Constant Field Values

FORMAT164

protected static final String FORMAT164
See Also:
Constant Field Values
Constructor Detail

EndowmentReportPrintBase

public EndowmentReportPrintBase()
Method Detail

printReportHeaderPage

public boolean printReportHeaderPage(EndowmentReportHeaderDataHolder reportRequestHeaderDataHolder,
                                     com.lowagie.text.Document document,
                                     String listKemidsInHeader)
Generates the report header sheet

Parameters:
reportRequestHeaderDataHolder -
document -
Returns:

printFooter

public boolean printFooter(EndowmentReportFooterDataHolder footerData,
                           com.lowagie.text.Document document)
Generates the footer

Parameters:
footerData -
document -

createCellWithDefaultFontAndBorderLine

protected com.lowagie.text.pdf.PdfPCell createCellWithDefaultFontAndBorderLine(String s,
                                                                               int alignment)
                                                                        throws com.lowagie.text.BadElementException
Creates a cell

Parameters:
s -
alignment -
Returns:
Throws:
com.lowagie.text.BadElementException

createCellWithDefaultFontAndWithoutBorderLine

protected com.lowagie.text.pdf.PdfPCell createCellWithDefaultFontAndWithoutBorderLine(String s,
                                                                                      int alignment)
                                                                               throws com.lowagie.text.BadElementException
Creates a cell without borderline

Parameters:
s -
alignment -
Returns:
Throws:
com.lowagie.text.BadElementException

createCell

public com.lowagie.text.pdf.PdfPCell createCell(String contents,
                                                com.lowagie.text.Font font,
                                                int horizontalAlignment,
                                                boolean borderLine)
Create a cell with the given font, alignment, and borderline option

Parameters:
content -
font -
alignment -
borderLine -
Returns:

createCell

public com.lowagie.text.pdf.PdfPCell createCell(String contents,
                                                com.lowagie.text.Font font,
                                                int horizontalAlignment,
                                                int verticalAlignment,
                                                boolean borderLine)
Creates a call with given font, alignments, and borderline

Parameters:
contents -
font -
horizontalAlignment -
verticalAlignment -
borderLine -
Returns:

getAmountCell

protected com.lowagie.text.pdf.PdfPCell getAmountCell(BigDecimal value,
                                                      com.lowagie.text.Font font)
Created a cell with a specific font

Parameters:
value -
font -
Returns:

getAmountCell

protected com.lowagie.text.pdf.PdfPCell getAmountCell(BigDecimal value,
                                                      com.lowagie.text.Font font,
                                                      String format)
Created a cell with a specific font and format

Parameters:
value -
font -
format -
Returns:

formatAmount

protected String formatAmount(BigDecimal amount)
Format the dollar amount - 19,2 decimal

Parameters:
amount -
Returns:

formatAmount

protected String formatAmount(BigDecimal amount,
                              String format)
Format the dollar amount

Parameters:
amount -
format -
Returns:

convertToUpperCase

protected String convertToUpperCase(String s)
Converts a string to upper case

Parameters:
s -
Returns:


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.