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 intgetColumnCount()java.lang.StringgetCorrectionColumnName(int colIndex)Returns the column name for columns other than "Apply".java.lang.ObjectgetCorrectionValueAt(int rowIndex, int colIndex)Returns the correction value at given position.protected booleanisBoldCell(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:CorrectionTableModelReturns the column name for columns other than "Apply".- Specified by:
getCorrectionColumnNamein 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:CorrectionTableModelReturns the correction value at given position.- Specified by:
getCorrectionValueAtin 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:
isBoldCellin classCorrectionTableModel<RoleCorrection>
-
-