net.sf.jomic.comic
Class ConversionReport
java.lang.Object
javax.swing.table.AbstractTableModel
net.sf.jomic.comic.ConversionReport
- All Implemented Interfaces:
- Serializable, EventListener, ChangeListener, TableModel
public class ConversionReport
- extends AbstractTableModel
- implements ChangeListener
A report holding the current state of a conversion of multiple comics. To simplify the
presentation it also acts as TableModel.
- Author:
- Thomas Aglassinger
- See Also:
- Serialized Form
| 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 |
ERROR_COLUMN
public static final int ERROR_COLUMN
- See Also:
- Constant Field Values
SOURCE_FILE_COLUMN
public static final int SOURCE_FILE_COLUMN
- See Also:
- Constant Field Values
SOURCE_FILE_SIZE_COLUMN
public static final int SOURCE_FILE_SIZE_COLUMN
- See Also:
- Constant Field Values
STATE_COLUMN
public static final int STATE_COLUMN
- See Also:
- Constant Field Values
TARGET_FILE_COLUMN
public static final int TARGET_FILE_COLUMN
- See Also:
- Constant Field Values
TARGET_FILE_SIZE_COLUMN
public static final int TARGET_FILE_SIZE_COLUMN
- See Also:
- Constant Field Values
ConversionReport
public ConversionReport()
get
public ConversionReportItem get(ComicToConvert comicToConvert)
get
public ConversionReportItem get(int index)
getColumnClass
public Class getColumnClass(int columnIndex)
- Specified by:
getColumnClass in interface TableModel- Overrides:
getColumnClass in class AbstractTableModel
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount in interface TableModel
getColumnName
public String getColumnName(int columnIndex)
- Specified by:
getColumnName in interface TableModel- Overrides:
getColumnName in class AbstractTableModel
getRowCount
public int getRowCount()
- Specified by:
getRowCount in interface TableModel
getValueAt
public Object getValueAt(int rowIndex,
int columnIndex)
- Specified by:
getValueAt in interface TableModel
clear
public void clear()
put
public void put(ComicToConvert comicToConvert)
size
public int size()
- Number of items in the report.
stateChanged
public void stateChanged(ChangeEvent event)
- Called when one of the report items has changed to reflect the state in the table model.
- Specified by:
stateChanged in interface ChangeListener