Example usage for com.lowagie.text Table setBorder

List of usage examples for com.lowagie.text Table setBorder

Introduction

In this page you can find the example usage for com.lowagie.text Table setBorder.

Prototype

public void setBorder(int border) 

Source Link

Document

Enables/Disables the border on the specified sides.

Usage

From source file:org.kuali.kfs.module.tem.pdf.Coversheet.java

License:Open Source License

public Table getExpenses() throws BadElementException {
    final Table retval = new Table(3);
    retval.setWidth(100f);//www .  j a  v a  2  s. c  o  m
    retval.setBorder(NO_BORDER);
    retval.addCell(getHeaderCell("Expenses"));
    retval.addCell(getHeaderCell("Amount"));
    retval.addCell(getHeaderCell("Receipt Required?"));
    retval.endHeaders();

    for (final Map<String, String> expense : expenses) {
        retval.addCell(getBorderlessCell(expense.get("expenseType")));
        retval.addCell(getBorderlessCell(expense.get("amount")));
        retval.addCell(getBorderlessCell(expense.get("receipt")));
    }
    return retval;
}