org.icepdf.ri.common.utility.attachment
Class FileTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.icepdf.ri.common.utility.attachment.FileTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class FileTableModel
extends javax.swing.table.AbstractTableModel

Table model for displaying file data using the following columns: name, description, modified, size and compressed size.

Since:
6.2
See Also:
Serialized Form

Field Summary
static int COMPRESSION_COLUMN
           
static int DATA_COLUMN
           
static int DESCRIPTION_COLUMN
           
static int MODIFIED_COLUMN
           
static int NAME_COLUMN
           
static int SIZE_COLUMN
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
FileTableModel(java.util.ResourceBundle messageBundle, java.util.HashMap<java.lang.String,org.icepdf.core.pobjects.FileSpecification> files)
           
 
Method Summary
 java.lang.Class getColumnClass(int c)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int col)
           
 int getRowCount()
           
 java.lang.Object getValueAt(int row, int col)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, 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

NAME_COLUMN

public static final int NAME_COLUMN
See Also:
Constant Field Values

DESCRIPTION_COLUMN

public static final int DESCRIPTION_COLUMN
See Also:
Constant Field Values

MODIFIED_COLUMN

public static final int MODIFIED_COLUMN
See Also:
Constant Field Values

SIZE_COLUMN

public static final int SIZE_COLUMN
See Also:
Constant Field Values

COMPRESSION_COLUMN

public static final int COMPRESSION_COLUMN
See Also:
Constant Field Values

DATA_COLUMN

public static final int DATA_COLUMN
See Also:
Constant Field Values
Constructor Detail

FileTableModel

public FileTableModel(java.util.ResourceBundle messageBundle,
                      java.util.HashMap<java.lang.String,org.icepdf.core.pobjects.FileSpecification> files)
Method Detail

getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()

getColumnName

public java.lang.String getColumnName(int col)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)

getColumnClass

public java.lang.Class getColumnClass(int c)
Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel