public class MapTableModel extends ArrayListTableModel<Object>
Map
TableModel
implementation.listenerList
Constructor and Description |
---|
MapTableModel(Map<?,?> map) |
MapTableModel(Map<?,?> map,
int columns) |
MapTableModel(Map<?,?> map,
String... names) |
Modifier and Type | Method and Description |
---|---|
protected Object |
getValueAt(Object row,
int x)
Implementation method to retrieve a column value from a row object.
|
protected Map<?,?> |
map()
Method to get the underlying
Map . |
void |
tableChanged(TableModelEvent event) |
getRowCount, getValueAt, list
column, getColumnClass, getColumnCount, getColumnName, header, isCellEditable, row, setColumnClass, setColumnName, setValueAt
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public MapTableModel(Map<?,?> map, String... names)
map
- The underlying Map
.names
- The column names.AbstractTableModelImpl.AbstractTableModelImpl(String...)
public MapTableModel(Map<?,?> map, int columns)
map
- The underlying Map
.columns
- The number of columns.AbstractTableModelImpl.AbstractTableModelImpl(int)
public MapTableModel(Map<?,?> map)
map
- The underlying Map
.protected Object getValueAt(Object row, int x)
ArrayListTableModel
getValueAt
in class ArrayListTableModel<Object>
row
- The Object
representing the row.x
- The column index.public void tableChanged(TableModelEvent event)
tableChanged
in interface TableModelListener
tableChanged
in class AbstractTableModelImpl
Copyright © 2015–2020 Allen D. Ball. All rights reserved.