Package ball.swing.table
Class MapsTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- ball.swing.table.AbstractTableModelImpl
-
- ball.swing.table.ArrayListTableModel<Object>
-
- ball.swing.table.MapTableModel
-
- ball.swing.table.MapsTableModel
-
- All Implemented Interfaces:
Serializable
,EventListener
,TableModelListener
,TableModel
public class MapsTableModel extends MapTableModel
Map
sTableModel
implementation.- Author:
- Allen D. Ball
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Modifier Constructor Description MapsTableModel(Iterable<? extends Map<?,?>> iterable, int columns)
MapsTableModel(Iterable<? extends Map<?,?>> iterable, String... names)
protected
MapsTableModel(Iterator<? extends Map<?,?>> iterator, String... names)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
getValueAt(Object row, int x)
Implementation method to retrieve a column value from a row object.-
Methods inherited from class ball.swing.table.MapTableModel
map, tableChanged
-
Methods inherited from class ball.swing.table.ArrayListTableModel
getRowCount, getValueAt, list
-
Methods inherited from class ball.swing.table.AbstractTableModelImpl
column, getColumnClass, getColumnCount, getColumnName, header, isCellEditable, row, setColumnClass, setColumnName, setValueAt
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Constructor Detail
-
MapsTableModel
public MapsTableModel(Iterable<? extends Map<?,?>> iterable, String... names)
- Parameters:
iterable
- TheIterable
of underlyingMap
s.names
- The column names.- See Also:
MapTableModel(Map,String...)
-
MapsTableModel
public MapsTableModel(Iterable<? extends Map<?,?>> iterable, int columns)
- Parameters:
iterable
- TheIterable
of underlyingMap
s.columns
- The number of columns.- See Also:
MapTableModel(Map,int)
-
MapsTableModel
protected MapsTableModel(Iterator<? extends Map<?,?>> iterator, String... names)
- Parameters:
iterator
- TheIterator
of underlyingMap
s.names
- The column names.- See Also:
MapsTableModel(Iterable,String...)
-
-
Method Detail
-
getValueAt
protected Object getValueAt(Object row, int x)
Description copied from class:ArrayListTableModel
Implementation method to retrieve a column value from a row object.- Overrides:
getValueAt
in classMapTableModel
- Parameters:
row
- TheObject
representing the row.x
- The column index.- Returns:
- The column value from the row.
-
-