|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTable
com.lowagie.rups.view.itext.XRefTable
public class XRefTable
A JTable that shows the indirect objects of a PDF xref table.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JTable |
---|
JTable.AccessibleJTable, JTable.DropLocation, JTable.PrintMode |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected PdfReaderController |
controller
The renderer that will render an object when selected in the table. |
protected IndirectObjectFactory |
objects
The factory that can produce all the indirect objects. |
private static long |
serialVersionUID
A serial version UID. |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
XRefTable(PdfReaderController controller)
Creates a JTable visualizing xref table. |
Method Summary | |
---|---|
int |
getColumnCount()
|
String |
getColumnName(int columnIndex)
|
protected PdfObject |
getObjectByRow(int rowIndex)
Gets the object that is shown in a row. |
protected String |
getObjectDescriptionByRow(int rowIndex)
Gets the object that is shown in a row. |
protected int |
getObjectReferenceByRow(int rowIndex)
Gets the reference number of an indirect object based on the row index. |
int |
getRowCount()
|
Object |
getValueAt(int rowIndex,
int columnIndex)
|
void |
selectRowByReference(int ref)
Selects a row containing information about an indirect object. |
void |
update(Observable observable,
Object obj)
|
void |
valueChanged(ListSelectionEvent evt)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected IndirectObjectFactory objects
protected PdfReaderController controller
private static final long serialVersionUID
Constructor Detail |
---|
public XRefTable(PdfReaderController controller)
Method Detail |
---|
public void update(Observable observable, Object obj)
update
in interface Observer
Observer.update(java.util.Observable, java.lang.Object)
public int getColumnCount()
getColumnCount
in interface JTableAutoModelInterface
getColumnCount
in class JTable
JTable.getColumnCount()
public int getRowCount()
getRowCount
in interface JTableAutoModelInterface
getRowCount
in class JTable
JTable.getRowCount()
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface JTableAutoModelInterface
getValueAt
in class JTable
rowIndex
- int a row numbercolumnIndex
- int a column number
JTable.getValueAt(int, int)
protected int getObjectReferenceByRow(int rowIndex)
rowIndex
- a row number
protected String getObjectDescriptionByRow(int rowIndex)
rowIndex
- the row number containing the object
public String getColumnName(int columnIndex)
getColumnName
in interface JTableAutoModelInterface
getColumnName
in class JTable
columnIndex
- a column number.
JTable.getColumnName(int)
protected PdfObject getObjectByRow(int rowIndex)
rowIndex
- the row number containing the object
public void selectRowByReference(int ref)
ref
- the reference number of the indirect objectpublic void valueChanged(ListSelectionEvent evt)
valueChanged
in interface ListSelectionListener
valueChanged
in class JTable
JTable.valueChanged(javax.swing.event.ListSelectionEvent)
|
Hosted by Hostbasket | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |