Class ChangesetDiscussionTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- org.openstreetmap.josm.gui.dialogs.changeset.ChangesetDiscussionTableModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
public class ChangesetDiscussionTableModel extends javax.swing.table.AbstractTableModel
Model of changeset discussion table.- Since:
- 7715
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ChangesetDiscussionComment>
data
-
Constructor Summary
Constructors Constructor Description ChangesetDiscussionTableModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumnCount()
int
getRowCount()
java.lang.Object
getValueAt(int rowIndex, int columnIndex)
void
populate(java.util.List<ChangesetDiscussionComment> list)
Populates the model with the discussion of a changeset.-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
-
-
-
Field Detail
-
data
private final transient java.util.List<ChangesetDiscussionComment> data
-
-
Constructor Detail
-
ChangesetDiscussionTableModel
public ChangesetDiscussionTableModel()
-
-
Method Detail
-
getRowCount
public int getRowCount()
-
getColumnCount
public int getColumnCount()
-
getValueAt
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
-
populate
public void populate(java.util.List<ChangesetDiscussionComment> list)
Populates the model with the discussion of a changeset. If ds is null, the table is cleared.- Parameters:
list
- the changeset discussion.
-
-