com.lowagie.rups.view.itext

Class XRefTable

public class XRefTable extends JTable implements JTableAutoModelInterface, Observer

A JTable that shows the indirect objects of a PDF xref table.
Field Summary
protected PdfReaderControllercontroller
The renderer that will render an object when selected in the table.
protected IndirectObjectFactoryobjects
The factory that can produce all the indirect objects.
static longserialVersionUID
A serial version UID.
Constructor Summary
XRefTable(PdfReaderController controller)
Creates a JTable visualizing xref table.
Method Summary
intgetColumnCount()
StringgetColumnName(int columnIndex)
protected PdfObjectgetObjectByRow(int rowIndex)
Gets the object that is shown in a row.
protected StringgetObjectDescriptionByRow(int rowIndex)
Gets the object that is shown in a row.
protected intgetObjectReferenceByRow(int rowIndex)
Gets the reference number of an indirect object based on the row index.
intgetRowCount()
ObjectgetValueAt(int rowIndex, int columnIndex)
voidselectRowByReference(int ref)
Selects a row containing information about an indirect object.
voidupdate(Observable observable, Object obj)
voidvalueChanged(ListSelectionEvent evt)

Field Detail

controller

protected PdfReaderController controller
The renderer that will render an object when selected in the table.

objects

protected IndirectObjectFactory objects
The factory that can produce all the indirect objects.

serialVersionUID

private static final long serialVersionUID
A serial version UID.

Constructor Detail

XRefTable

public XRefTable(PdfReaderController controller)
Creates a JTable visualizing xref table.

Method Detail

getColumnCount

public int getColumnCount()

See Also: javax.swing.JTable#getColumnCount()

getColumnName

public String getColumnName(int columnIndex)

See Also: javax.swing.JTable#getColumnName(int)

getObjectByRow

protected PdfObject getObjectByRow(int rowIndex)
Gets the object that is shown in a row.

Parameters: rowIndex the row number containing the object

Returns: a PDF object

getObjectDescriptionByRow

protected String getObjectDescriptionByRow(int rowIndex)
Gets the object that is shown in a row.

Parameters: rowIndex the row number containing the object

Returns: a PDF object

getObjectReferenceByRow

protected int getObjectReferenceByRow(int rowIndex)
Gets the reference number of an indirect object based on the row index.

Parameters: rowIndex a row number

Returns: a reference number

getRowCount

public int getRowCount()

See Also: javax.swing.JTable#getRowCount()

getValueAt

public Object getValueAt(int rowIndex, int columnIndex)

See Also: javax.swing.JTable#getValueAt(int, int)

selectRowByReference

public void selectRowByReference(int ref)
Selects a row containing information about an indirect object.

Parameters: ref the reference number of the indirect object

update

public void update(Observable observable, Object obj)

See Also: java.util.Observer#update(java.util.Observable, java.lang.Object)

valueChanged

void valueChanged(ListSelectionEvent evt)

See Also: javax.swing.JTable#valueChanged(javax.swing.event.ListSelectionEvent)