Class RoleCorrectionTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- org.openstreetmap.josm.gui.correction.CorrectionTableModel<RoleCorrection>
-
- org.openstreetmap.josm.gui.correction.RoleCorrectionTableModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
public class RoleCorrectionTableModel extends CorrectionTableModel<RoleCorrection>
Role correction table model.- Since:
- 1001
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RoleCorrectionTableModel(java.util.List<RoleCorrection> roleCorrections)
Constructs a newRoleCorrectionTableModel
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumnCount()
java.lang.String
getCorrectionColumnName(int colIndex)
Returns the column name for columns other than "Apply".java.lang.Object
getCorrectionValueAt(int rowIndex, int colIndex)
Returns the correction value at given position.protected boolean
isBoldCell(int row, int column)
-
Methods inherited from class org.openstreetmap.josm.gui.correction.CorrectionTableModel
getApply, getApplyColumn, getColumnClass, getColumnName, getCorrections, getRowCount, getValueAt, isCellEditable, setValueAt
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Constructor Detail
-
RoleCorrectionTableModel
public RoleCorrectionTableModel(java.util.List<RoleCorrection> roleCorrections)
Constructs a newRoleCorrectionTableModel
.- Parameters:
roleCorrections
- list of role corrections
-
-
Method Detail
-
getColumnCount
public int getColumnCount()
-
getCorrectionColumnName
public java.lang.String getCorrectionColumnName(int colIndex)
Description copied from class:CorrectionTableModel
Returns the column name for columns other than "Apply".- Specified by:
getCorrectionColumnName
in classCorrectionTableModel<RoleCorrection>
- Parameters:
colIndex
- column index- Returns:
- the translated column name for given index
- See Also:
CorrectionTableModel.getApplyColumn()
-
getCorrectionValueAt
public java.lang.Object getCorrectionValueAt(int rowIndex, int colIndex)
Description copied from class:CorrectionTableModel
Returns the correction value at given position.- Specified by:
getCorrectionValueAt
in classCorrectionTableModel<RoleCorrection>
- Parameters:
rowIndex
- row indexcolIndex
- column index- Returns:
- the correction value at given position
-
isBoldCell
protected boolean isBoldCell(int row, int column)
- Specified by:
isBoldCell
in classCorrectionTableModel<RoleCorrection>
-
-