C - type of correctionpublic abstract class CorrectionTableModel<C extends Correction> extends javax.swing.table.AbstractTableModel
| Modifier and Type | Field and Description |
|---|---|
private boolean[] |
apply |
private int |
applyColumn |
private java.util.List<C> |
corrections |
| Constructor and Description |
|---|
CorrectionTableModel(java.util.List<C> corrections)
Constructs a new
CorrectionTableModel. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getApply(int i)
Returns the "Apply" flag for given index.
|
int |
getApplyColumn()
Returns the index of the "Apply" column.
|
java.lang.Class<?> |
getColumnClass(int columnIndex) |
java.lang.String |
getColumnName(int columnIndex) |
abstract java.lang.String |
getCorrectionColumnName(int colIndex)
Returns the column name for columns other than "Apply".
|
java.util.List<C> |
getCorrections()
Returns the list of corrections.
|
abstract java.lang.Object |
getCorrectionValueAt(int rowIndex,
int colIndex)
Returns the correction value at given position.
|
int |
getRowCount() |
java.lang.Object |
getValueAt(int rowIndex,
int colIndex) |
protected abstract boolean |
isBoldCell(int row,
int column) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerprivate final transient java.util.List<C extends Correction> corrections
private boolean[] apply
private final int applyColumn
public CorrectionTableModel(java.util.List<C> corrections)
CorrectionTableModel.corrections - list of correctionsprotected abstract boolean isBoldCell(int row, int column)
public abstract java.lang.String getCorrectionColumnName(int colIndex)
colIndex - column indexgetApplyColumn()public abstract java.lang.Object getCorrectionValueAt(int rowIndex, int colIndex)
rowIndex - row indexcolIndex - column indexpublic java.util.List<C> getCorrections()
public int getApplyColumn()
public boolean getApply(int i)
i - indexpublic int getRowCount()
public java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelpublic java.lang.String getColumnName(int columnIndex)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelpublic boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelpublic void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelpublic java.lang.Object getValueAt(int rowIndex, int colIndex)