com.lowagie.tools.arguments

Class PageTableModel

public class PageTableModel extends AbstractTableModel

A table that shows info about the pages in a PDF document.
Field Summary
DecimalFormatmyFormatter
intnumberOfPages
PdfReaderreader
static longserialVersionUID
Constructor Summary
PageTableModel(String filename)
Method Summary
intgetColumnCount()
Returns the number of columns in the model.
StringgetColumnName(int column)
intgetRowCount()
Returns the number of rows in the model.
ObjectgetValueAt(int rowIndex, int columnIndex)
Returns the value for the cell at columnIndex and rowIndex.

Field Detail

myFormatter

DecimalFormat myFormatter

numberOfPages

int numberOfPages

reader

PdfReader reader

serialVersionUID

private static final long serialVersionUID

Constructor Detail

PageTableModel

public PageTableModel(String filename)

Method Detail

getColumnCount

public int getColumnCount()
Returns the number of columns in the model.

Returns: the number of columns in the model

getColumnName

public String getColumnName(int column)

getRowCount

public int getRowCount()
Returns the number of rows in the model.

Returns: the number of rows in the model

getValueAt

public Object getValueAt(int rowIndex, int columnIndex)
Returns the value for the cell at columnIndex and rowIndex.

Parameters: rowIndex the row whose value is to be queried columnIndex the column whose value is to be queried

Returns: the value Object at the specified cell