Class UserListDialog.UserTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- javax.swing.table.DefaultTableModel
-
- org.openstreetmap.josm.gui.dialogs.UserListDialog.UserTableModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
- Enclosing class:
- UserListDialog
static class UserListDialog.UserTableModel extends javax.swing.table.DefaultTableModel
The table model for the users
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<UserListDialog.UserInfo>
data
-
Constructor Summary
Constructors Constructor Description UserTableModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<User,java.lang.Integer>
computeStatistics(java.util.Collection<? extends OsmPrimitive> primitives)
int
getRowCount()
java.util.List<User>
getSelectedUsers(int... rows)
java.lang.Object
getValueAt(int row, int column)
boolean
isCellEditable(int row, int column)
void
populate(java.util.Collection<? extends OsmPrimitive> primitives)
void
selectPrimitivesOwnedBy(int... rows)
-
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
data
private final transient java.util.List<UserListDialog.UserInfo> data
-
-
Constructor Detail
-
UserTableModel
UserTableModel()
-
-
Method Detail
-
computeStatistics
protected java.util.Map<User,java.lang.Integer> computeStatistics(java.util.Collection<? extends OsmPrimitive> primitives)
-
populate
public void populate(java.util.Collection<? extends OsmPrimitive> primitives)
-
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interfacejavax.swing.table.TableModel
- Overrides:
getRowCount
in classjavax.swing.table.DefaultTableModel
-
getValueAt
public java.lang.Object getValueAt(int row, int column)
- Specified by:
getValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
getValueAt
in classjavax.swing.table.DefaultTableModel
-
isCellEditable
public boolean isCellEditable(int row, int column)
- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.DefaultTableModel
-
selectPrimitivesOwnedBy
public void selectPrimitivesOwnedBy(int... rows)
-
getSelectedUsers
public java.util.List<User> getSelectedUsers(int... rows)
-
-