public class AbstractListMergeModel.EntriesTableModel extends javax.swing.table.DefaultTableModel implements OsmPrimitivesTableModel
JTable
and one of the three entry lists
in the role ListRole
managed by the AbstractListMergeModel
.
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() |
AbstractListMergeModel<T,C> |
getListMergeModel()
Returns the list merge model.
|
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 AbstractListMergeModel.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, setRowCount
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
public EntriesTableModel(ListRole role)
role
- the rolepublic int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
getRowCount
in class javax.swing.table.DefaultTableModel
public java.lang.Object getValueAt(int row, int column)
getValueAt
in interface javax.swing.table.TableModel
getValueAt
in class javax.swing.table.DefaultTableModel
public boolean isCellEditable(int row, int column)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.DefaultTableModel
public void setValueAt(java.lang.Object value, int row, int col)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.DefaultTableModel
public AbstractListMergeModel<T,C> getListMergeModel()
public boolean isParticipatingInCurrentComparePair()
ListRole
of this AbstractListMergeModel.EntriesTableModel
participates in the current ComparePairType
ListRole
of this AbstractListMergeModel.EntriesTableModel
participates in the current ComparePairType
AbstractListMergeModel.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 ComparePairType
java.lang.IllegalStateException
- if this model is not participating in the
current ComparePairType
ComparePairType.getOppositeRole(ListRole)
,
getRole()
,
getOppositeEntries()
public boolean isIncludedInOppositeList(int row)
ComparePairType
.row
- the current rowComparePairType
.java.lang.IllegalStateException
- if this model is not participating in the
current ComparePairType
ComparePairType.getOppositeRole(ListRole)
,
getRole()
,
getOppositeEntries()
protected java.util.List<T> getEntries()
protected java.util.List<T> getOppositeEntries()
ComparePairType
public OsmPrimitive getReferredPrimitive(int idx)
getReferredPrimitive
in interface OsmPrimitivesTableModel