Example usage for com.lowagie.text.pdf PdfPTable getNumberOfColumns

List of usage examples for com.lowagie.text.pdf PdfPTable getNumberOfColumns

Introduction

In this page you can find the example usage for com.lowagie.text.pdf PdfPTable getNumberOfColumns.

Prototype

public int getNumberOfColumns() 

Source Link

Document

Returns the number of columns.

Usage

From source file:org.opentestsystem.delivery.testreg.rest.view.PDFReportView.java

License:Open Source License

private PdfPTable addEmptyCell(final PdfPTable table) {
    final PdfPCell cell = new PdfPCell(new Paragraph(" No Data Found", HEADER_MESSAGE_FONT));
    cell.setColspan(table.getNumberOfColumns());
    cell.setHorizontalAlignment(Element.ALIGN_CENTER);
    table.addCell(cell);//from  w  w w .  j  a v a2 s. c o  m

    return table;
}