public class ChangesetContentTableModel extends javax.swing.table.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 java.util.List<ChangesetContentTableModel.ChangesetContentEntry> |
data |
private javax.swing.DefaultListSelectionModel |
selectionModel |
Constructor and Description |
---|
ChangesetContentTableModel(javax.swing.DefaultListSelectionModel selectionModel) |
Modifier and Type | Method and Description |
---|---|
int |
getColumnCount() |
int |
getRowCount() |
java.util.Set<HistoryOsmPrimitive> |
getSelectedPrimitives() |
javax.swing.DefaultListSelectionModel |
getSelectionModel()
Replies the selection model
|
java.lang.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 model.
|
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 java.util.List<ChangesetContentTableModel.ChangesetContentEntry> data
private javax.swing.DefaultListSelectionModel selectionModel
public ChangesetContentTableModel(javax.swing.DefaultListSelectionModel selectionModel)
public boolean hasSelectedPrimitives()
public void setSelectedByIdx(int row)
public javax.swing.DefaultListSelectionModel getSelectionModel()
public java.util.Set<HistoryOsmPrimitive> getSelectedPrimitives()
public void populate(ChangesetDataSet ds)
ds
- the changeset content.protected void sort()
public int getColumnCount()
public int getRowCount()
public java.lang.Object getValueAt(int row, int col)