Class TagCorrectionTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- org.openstreetmap.josm.gui.correction.CorrectionTableModel<TagCorrection>
-
- org.openstreetmap.josm.gui.correction.TagCorrectionTableModel
-
- All Implemented Interfaces:
Serializable
,TableModel
public class TagCorrectionTableModel extends CorrectionTableModel<TagCorrection>
Tag correction table model.- Since:
- 729
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description TagCorrectionTableModel(List<TagCorrection> tagCorrections)
Constructs a newTagCorrectionTableModel
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumnCount()
String
getCorrectionColumnName(int colIndex)
Returns the column name for columns other than "Apply".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
-
TagCorrectionTableModel
public TagCorrectionTableModel(List<TagCorrection> tagCorrections)
Constructs a newTagCorrectionTableModel
.- Parameters:
tagCorrections
- list of tag corrections
-
-
Method Detail
-
getColumnCount
public int getColumnCount()
-
getCorrectionColumnName
public String getCorrectionColumnName(int colIndex)
Description copied from class:CorrectionTableModel
Returns the column name for columns other than "Apply".- Specified by:
getCorrectionColumnName
in classCorrectionTableModel<TagCorrection>
- Parameters:
colIndex
- column index- Returns:
- the translated column name for given index
- See Also:
CorrectionTableModel.getApplyColumn()
-
getCorrectionValueAt
public Object getCorrectionValueAt(int rowIndex, int colIndex)
Description copied from class:CorrectionTableModel
Returns the correction value at given position.- Specified by:
getCorrectionValueAt
in classCorrectionTableModel<TagCorrection>
- 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<TagCorrection>
-
-