public class ChangesetContentTableModel extends AbstractTableModel
Modifier and Type | Class and Description |
---|---|
private static class |
ChangesetContentTableModel.ChangesetContentEntry
The type used internally to keep information about
HistoryOsmPrimitive
with their ChangesetDataSet.ChangesetModificationType . |
Modifier and Type | Field and Description |
---|---|
private List<ChangesetContentTableModel.ChangesetContentEntry> |
data |
private DefaultListSelectionModel |
selectionModel |
listenerList
Constructor and Description |
---|
ChangesetContentTableModel(DefaultListSelectionModel selectionModel) |
Modifier and Type | Method and Description |
---|---|
int |
getColumnCount() |
int |
getRowCount() |
Set<HistoryOsmPrimitive> |
getSelectedPrimitives() |
DefaultListSelectionModel |
getSelectionModel()
Replies the selection model
|
Object |
getValueAt(int row,
int col) |
boolean |
hasSelectedPrimitives()
Replies true if there is at least one selected primitive in the table model
|
void |
populate(ChangesetDataSet ds)
Populates the model with the content of a changeset.
|
void |
setSelectedByIdx(int row) |
protected void |
sort() |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
private final List<ChangesetContentTableModel.ChangesetContentEntry> data
private DefaultListSelectionModel selectionModel
public ChangesetContentTableModel(DefaultListSelectionModel selectionModel)
public boolean hasSelectedPrimitives()
public void setSelectedByIdx(int row)
public DefaultListSelectionModel getSelectionModel()
public Set<HistoryOsmPrimitive> getSelectedPrimitives()
public void populate(ChangesetDataSet ds)
ds
- the changeset content.protected void sort()
public int getColumnCount()
public int getRowCount()
public Object getValueAt(int row, int col)