public class DictionaryTableModel extends AbstractTableModel
| Modifier and Type | Field and Description |
|---|---|
protected PdfDictionary |
dictionary
The PDF dictionary.
|
protected ArrayList<PdfName> |
keys
An ArrayList with the dictionary keys.
|
listenerList| Constructor and Description |
|---|
DictionaryTableModel(PdfDictionary dictionary)
Creates the TableModel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRow(String keyField,
String valueField,
int type) |
int |
getColumnCount() |
String |
getColumnName(int columnIndex) |
int |
getRowCount() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
removeRow(int rowNumber) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListenerprotected PdfDictionary dictionary
public DictionaryTableModel(PdfDictionary dictionary)
dictionary - the dictionary we want to showpublic int getColumnCount()
TableModel.getColumnCount()public int getRowCount()
TableModel.getRowCount()public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic Object getValueAt(int rowIndex, int columnIndex)
TableModel.getValueAt(int, int)public void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelpublic String getColumnName(int columnIndex)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelAbstractTableModel.getColumnName(int)public void removeRow(int rowNumber)
Copyright © 2016. All Rights Reserved.