org.openstreetmap.josm.corrector
Class CorrectionTableModel<C extends Correction>

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.openstreetmap.josm.corrector.CorrectionTableModel<C>
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Direct Known Subclasses:
RoleCorrectionTableModel, TagCorrectionTableModel

public abstract class CorrectionTableModel<C extends Correction>
extends javax.swing.table.AbstractTableModel

See Also:
Serialized Form

Field Summary
private  boolean[] apply
           
private  int applyColumn
           
private  java.util.List<C> corrections
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
CorrectionTableModel(java.util.List<C> corrections)
           
 
Method Summary
 boolean getApply(int i)
           
 int getApplyColumn()
           
 java.lang.Class<?> getColumnClass(int columnIndex)
           
abstract  int getColumnCount()
           
 java.lang.String getColumnName(int columnIndex)
           
abstract  java.lang.String getCorrectionColumnName(int colIndex)
           
 java.util.List<C> getCorrections()
           
abstract  java.lang.Object getCorrectionValueAt(int rowIndex, int colIndex)
           
 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)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

corrections

private java.util.List<C extends Correction> corrections

apply

private boolean[] apply

applyColumn

private int applyColumn
Constructor Detail

CorrectionTableModel

public CorrectionTableModel(java.util.List<C> corrections)
Method Detail

getColumnCount

public abstract int getColumnCount()

isBoldCell

protected abstract boolean isBoldCell(int row,
                                      int column)

getCorrectionColumnName

public abstract java.lang.String getCorrectionColumnName(int colIndex)

getCorrectionValueAt

public abstract java.lang.Object getCorrectionValueAt(int rowIndex,
                                                      int colIndex)

getCorrections

public java.util.List<C> getCorrections()

getApplyColumn

public int getApplyColumn()

getApply

public boolean getApply(int i)

getRowCount

public int getRowCount()

getColumnClass

public java.lang.Class<?> getColumnClass(int columnIndex)
Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel

getColumnName

public java.lang.String getColumnName(int columnIndex)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel

setValueAt

public void setValueAt(java.lang.Object aValue,
                       int rowIndex,
                       int columnIndex)
Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int colIndex)


JOSM