org.openstreetmap.josm.gui.dialogs.changeset
Class ChangesetContentTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.openstreetmap.josm.gui.dialogs.changeset.ChangesetContentTableModel
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.table.TableModel
public class ChangesetContentTableModel
- extends javax.swing.table.AbstractTableModel
This is the table model for the content of a changeset.
- See Also:
- Serialized Form
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
data
private final java.util.ArrayList<ChangesetContentTableModel.ChangesetContentEntry> data
selectionModel
private javax.swing.DefaultListSelectionModel selectionModel
ChangesetContentTableModel
public ChangesetContentTableModel(javax.swing.DefaultListSelectionModel selectionModel)
hasSelectedPrimitives
public boolean hasSelectedPrimitives()
- Replies true if there is at least one selected primitive in the table model
- Returns:
- true if there is at least one selected primitive in the table model
setSelectedByIdx
public void setSelectedByIdx(int row)
getSelectionModel
public javax.swing.DefaultListSelectionModel getSelectionModel()
- Replies the selection model
- Returns:
- the selection model
getSelectedPrimitives
public java.util.Set<HistoryOsmPrimitive> getSelectedPrimitives()
populate
public void populate(ChangesetDataSet ds)
- Populates the model with the content of a model. If ds is null, the
table is cleared.
- Parameters:
ds
- the changeset content.
sort
protected void sort()
getColumnCount
public int getColumnCount()
getRowCount
public int getRowCount()
getValueAt
public java.lang.Object getValueAt(int row,
int col)
JOSM