- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- org.icepdf.ri.common.utility.attachment.FileTableModel
-
- All Implemented Interfaces:
Serializable,TableModel
public class FileTableModel extends 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
Fields Modifier and Type Field Description static intCOMPRESSION_COLUMNstatic intDATA_COLUMNstatic intDESCRIPTION_COLUMNstatic intMODIFIED_COLUMNstatic intNAME_COLUMNstatic intSIZE_COLUMN-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description FileTableModel(ResourceBundle messageBundle, HashMap<String,FileSpecification> files)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassgetColumnClass(int c)intgetColumnCount()StringgetColumnName(int col)intgetRowCount()ObjectgetValueAt(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
-
-
-
-
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(ResourceBundle messageBundle, HashMap<String,FileSpecification> files)
-
-
Method Detail
-
getColumnCount
public int getColumnCount()
-
getRowCount
public int getRowCount()
-
getColumnName
public String getColumnName(int col)
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getValueAt
public Object getValueAt(int row, int col)
-
getColumnClass
public Class getColumnClass(int c)
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
-