public class ListTableModel extends ArrayListTableModel<Object>
List
TableModel
implementation.listenerList
Constructor and Description |
---|
ListTableModel(List<?> list) |
ListTableModel(List<?> list,
String name) |
Modifier and Type | Method and Description |
---|---|
protected Object |
getValueAt(Object row,
int x)
Implementation method to retrieve a column value from a row object.
|
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 ListTableModel(List<?> list, String name)
list
- The underlying List
.name
- The column name.AbstractTableModelImpl.AbstractTableModelImpl(String...)
public ListTableModel(List<?> list)
list
- The underlying List
.AbstractTableModelImpl.AbstractTableModelImpl(int)
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.