com.lowagie.tools.arguments
Class PageTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended bycom.lowagie.tools.arguments.PageTableModel
All Implemented Interfaces:
Serializable, TableModel

public class PageTableModel
extends AbstractTableModel

A table that shows info about the pages in a PDF document.

See Also:
Serialized Form

Field Summary
(package private)  DecimalFormat myFormatter
           
(package private)  int numberOfPages
           
(package private)  PdfReader reader
           
private static long serialVersionUID
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
PageTableModel(String filename)
           
 
Method Summary
 int getColumnCount()
          Returns the number of columns in the model.
 String getColumnName(int column)
           
 int getRowCount()
          Returns the number of rows in the model.
 Object getValueAt(int rowIndex, int columnIndex)
          Returns the value for the cell at columnIndex and rowIndex.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

numberOfPages

int numberOfPages

reader

PdfReader reader

myFormatter

DecimalFormat myFormatter
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

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

getColumnName

public String getColumnName(int column)