public class ObjectTableModel<T> extends AbstractTableModel implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static interface |
ObjectTableModel.Columns<T> |
static class |
ObjectTableModel.NamedColumns<T> |
| Modifier and Type | Field and Description |
|---|---|
protected ObjectTableModel.Columns<T> |
columnIdentifiers |
protected List<T> |
dataVector |
listenerList| Constructor and Description |
|---|
ObjectTableModel(ObjectTableModel.Columns<T> columnIdentifiers) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRow(T rowData) |
void |
clear() |
int |
getColumnCount() |
ObjectTableModel.Columns<T> |
getColumnIdentifiers() |
String |
getColumnName(int column) |
List<T> |
getDataVector() |
T |
getObject(int row) |
int |
getRowCount() |
Object |
getValueAt(int row,
int column) |
void |
insertRow(int row,
T rowData) |
boolean |
isCellEditable(int row,
int column) |
void |
moveRow(int start,
int end,
int to) |
void |
newDataAvailable(TableModelEvent event) |
void |
newRowsAdded(TableModelEvent e) |
void |
removeRow(int row) |
void |
rowsRemoved(TableModelEvent event) |
void |
setColumnIdentifiers(ObjectTableModel.Columns<T> columnIdentifiers) |
void |
setDataVector(List<T> dataVector) |
void |
setNumRows(int rowCount) |
void |
setRowCount(int rowCount) |
void |
setValueAt(Object aValue,
int row,
int column) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListenerprotected ObjectTableModel.Columns<T> columnIdentifiers
public ObjectTableModel(ObjectTableModel.Columns<T> columnIdentifiers)
public void clear()
public void newDataAvailable(TableModelEvent event)
public void newRowsAdded(TableModelEvent e)
public void rowsRemoved(TableModelEvent event)
public void setNumRows(int rowCount)
public void setRowCount(int rowCount)
public void addRow(T rowData)
public void insertRow(int row,
T rowData)
public void moveRow(int start,
int end,
int to)
public void removeRow(int row)
public void setColumnIdentifiers(ObjectTableModel.Columns<T> columnIdentifiers)
public ObjectTableModel.Columns<T> getColumnIdentifiers()
public final int getRowCount()
getRowCount in interface TableModelpublic int getColumnCount()
getColumnCount in interface TableModelpublic String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic boolean isCellEditable(int row,
int column)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic Object getValueAt(int row, int column)
getValueAt in interface TableModelpublic T getObject(int row)
public void setValueAt(Object aValue, int row, int column)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelCopyright © 2022 vpc open source initiative. All rights reserved.