public class ObjectTableModel<T> extends AbstractTableModel
listenerList| Constructor and Description |
|---|
ObjectTableModel(String[] propertyNames,
String[] lables) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRow(T row) |
int |
getColumnCount() |
String |
getColumnName(int column) |
int |
getRowCount() |
List<T> |
getRows() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
void |
insertRow(int rowIndex,
T row) |
boolean |
isCellEditable(int row,
int column) |
void |
removeRow(int rowIndex) |
void |
setRows(List<T> rows) |
void |
setValueAt(Object value,
int rowIndex,
int columnIndex) |
dispose, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getEditorField, getMenu, getMenu, getPropertyChangeSupport, isEmpty, setMenu, toCopyValueaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListenerpublic void addRow(T row)
public int getColumnCount()
public String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic int getRowCount()
public Object getValueAt(int rowIndex, int columnIndex)
public void insertRow(int rowIndex,
T row)
public boolean isCellEditable(int row,
int column)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic void removeRow(int rowIndex)
public void setValueAt(Object value, int rowIndex, int columnIndex)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelCopyright © 2015 Revolution Systems Inc.. All rights reserved.