com.lowagie.rups.view.models

Class DictionaryTableModel

public class DictionaryTableModel extends AbstractTableModel

A TableModel in case we want to show a PDF dictionary in a JTable.
Field Summary
protected PdfDictionarydictionary
The PDF dictionary.
protected ArrayList<PdfName>keys
An ArrayList with the dictionary keys.
static longserialVersionUID
A serial version UID.
Constructor Summary
DictionaryTableModel(PdfDictionary dictionary)
Creates the TableModel.
Method Summary
intgetColumnCount()
StringgetColumnName(int columnIndex)
intgetRowCount()
ObjectgetValueAt(int rowIndex, int columnIndex)

Field Detail

dictionary

protected PdfDictionary dictionary
The PDF dictionary.

keys

protected ArrayList<PdfName> keys
An ArrayList with the dictionary keys.

serialVersionUID

private static final long serialVersionUID
A serial version UID.

Constructor Detail

DictionaryTableModel

public DictionaryTableModel(PdfDictionary dictionary)
Creates the TableModel.

Parameters: dictionary the dictionary we want to show

Method Detail

getColumnCount

public int getColumnCount()

See Also: javax.swing.table.TableModel#getColumnCount()

getColumnName

public String getColumnName(int columnIndex)

See Also: javax.swing.table.AbstractTableModel#getColumnName(int)

getRowCount

public int getRowCount()

See Also: javax.swing.table.TableModel#getRowCount()

getValueAt

public Object getValueAt(int rowIndex, int columnIndex)

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