public class ListMergeModel.EntriesTableModel extends javax.swing.table.DefaultTableModel implements OsmPrimitivesTableModel
JTable and one of the three entry lists
in the role ListRole managed by the ListMergeModel.
From the point of view of the JTable it is a TableModel.| Constructor and Description |
|---|
EntriesTableModel(ListRole role) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<T> |
getEntries() |
ListMergeModel<T> |
getListMergeModel() |
protected java.util.List<T> |
getOppositeEntries()
replies the opposite list of entries with respect to the current
ComparePairType |
OsmPrimitive |
getReferredPrimitive(int idx) |
ListRole |
getRole() |
int |
getRowCount() |
java.lang.Object |
getValueAt(int row,
int column) |
boolean |
isCellEditable(int row,
int column) |
boolean |
isIncludedInOppositeList(int row)
replies true if the entry at the current position is present in the opposite list
of the current
ComparePairType. |
boolean |
isParticipatingInCurrentComparePair()
replies true if the
ListRole of this ListMergeModel.EntriesTableModel
participates in the current ComparePairType |
boolean |
isSamePositionInOppositeList(int row)
replies true if the entry at
row is equal to the entry at the
same position in the opposite list of the current ComparePairType. |
void |
setValueAt(java.lang.Object value,
int row,
int col) |
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCountaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListenerpublic EntriesTableModel(ListRole role)
role - the rolepublic int getRowCount()
getRowCount in interface javax.swing.table.TableModelgetRowCount in class javax.swing.table.DefaultTableModelpublic java.lang.Object getValueAt(int row, int column)
getValueAt in interface javax.swing.table.TableModelgetValueAt in class javax.swing.table.DefaultTableModelpublic boolean isCellEditable(int row, int column)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.DefaultTableModelpublic void setValueAt(java.lang.Object value, int row, int col)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.DefaultTableModelpublic ListMergeModel<T> getListMergeModel()
public boolean isParticipatingInCurrentComparePair()
ListRole of this ListMergeModel.EntriesTableModel
participates in the current ComparePairTypeListRole of this ListMergeModel.EntriesTableModel
participates in the current ComparePairTypeListMergeModel.ComparePairListModel.getSelectedComparePair()public boolean isSamePositionInOppositeList(int row)
row is equal to the entry at the
same position in the opposite list of the current ComparePairType.row - the row numberrow is equal to the entry at the
same position in the opposite list of the current ComparePairTypejava.lang.IllegalStateException - thrown, if this model is not participating in the
current ComparePairTypeComparePairType.getOppositeRole(ListRole),
getRole(),
getOppositeEntries()public boolean isIncludedInOppositeList(int row)
ComparePairType.row - the current rowComparePairType.java.lang.IllegalStateException - thrown, if this model is not participating in the
current ComparePairTypeComparePairType.getOppositeRole(ListRole),
getRole(),
getOppositeEntries()protected java.util.List<T> getEntries()
protected java.util.List<T> getOppositeEntries()
ComparePairTypepublic OsmPrimitive getReferredPrimitive(int idx)
getReferredPrimitive in interface OsmPrimitivesTableModel