public class PeopleTableModel extends AbstractTableModel
Identity.| Modifier and Type | Field and Description |
|---|---|
static Class<?>[] |
columnClasses |
static List<String> |
columnNames |
listenerList| Constructor and Description |
|---|
PeopleTableModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBean(People bean) |
People |
getBean(int row) |
int |
getBeanIndex(People bean) |
org.apache.commons.lang3.tuple.Pair<Integer,Integer> |
getCell(People bean,
String fieldName) |
int |
getColumnCount() |
String |
getColumnName(int column) |
int |
getRowCount() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
removeBean(int selectedRow) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListenerpublic static final Class<?>[] columnClasses
public int getRowCount()
public String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic int getColumnCount()
public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic Object getValueAt(int rowIndex, int columnIndex)
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelpublic int getBeanIndex(People bean)
public People getBean(int row)
public org.apache.commons.lang3.tuple.Pair<Integer,Integer> getCell(People bean, String fieldName)
public void removeBean(int selectedRow)
public void addBean(People bean)
Copyright © 2008–2020 Ultreia.io. All rights reserved.