public class SimpleTableModel extends ArrayListTableModel<Object[]>
TableModel
implementation.listenerList
Constructor and Description |
---|
SimpleTableModel(Object[][] rows,
int columns) |
SimpleTableModel(Object[][] rows,
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.
|
SimpleTableModel |
row(Object... row)
Convenience method to add a new row.
|
getRowCount, getValueAt, list
column, getColumnClass, getColumnCount, getColumnName, header, isCellEditable, row, setColumnClass, setColumnName, setValueAt, tableChanged
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public SimpleTableModel(Object[][] rows, String... names)
rows
- The TableModel
's
rows.names
- The column names.ArrayListTableModel.ArrayListTableModel(Iterable,String...)
public SimpleTableModel(Object[][] rows, int columns)
rows
- The TableModel's rows.columns
- The number of columns.ArrayListTableModel.ArrayListTableModel(Iterable,int)
public SimpleTableModel row(Object... row)
row
- The array of Object
s that make up
the row to be added.this
SimpleTableModel
.protected Object getValueAt(Object[] row, int x)
ArrayListTableModel
getValueAt
in class ArrayListTableModel<Object[]>
row
- The Object
representing the row.x
- The column index.Copyright © 2015–2020 Allen D. Ball. All rights reserved.