protected class BeanTable.TableBeanModel
extends javax.swing.table.AbstractTableModel
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.beans.PropertyDescriptor> |
properties |
Modifier | Constructor and Description |
---|---|
protected |
TableBeanModel() |
protected |
TableBeanModel(java.lang.Class beanClass) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
getColumnClass(int col) |
int |
getColumnCount() |
java.lang.String |
getColumnName(int col) |
protected java.beans.PropertyDescriptor |
getProperty(int idx) |
protected java.beans.PropertyDescriptor |
getProperty(java.lang.String wantName) |
int |
getRowCount() |
java.lang.Object |
getValueAt(int row,
int col) |
java.lang.Object |
getValueAt(java.lang.Object bean,
int col) |
boolean |
isCellEditable(int row,
int col) |
void |
setProperty(java.lang.String propertyName,
java.lang.String displayName,
java.lang.String toolTipText) |
void |
setValueAt(java.lang.Object value,
int row,
int col) |
protected java.lang.Class |
wrapPrimitives(java.lang.Class c) |
protected java.lang.Object |
zeroValue(java.lang.Class c) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
protected TableBeanModel()
protected TableBeanModel(java.lang.Class beanClass)
public void setProperty(java.lang.String propertyName, java.lang.String displayName, java.lang.String toolTipText)
public int getRowCount()
public int getColumnCount()
public java.lang.String getColumnName(int col)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public java.lang.Object getValueAt(int row, int col)
public java.lang.Object getValueAt(java.lang.Object bean, int col)
public java.lang.Class getColumnClass(int col)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int row, int col)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public void setValueAt(java.lang.Object value, int row, int col)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
protected java.lang.Class wrapPrimitives(java.lang.Class c)
protected java.lang.Object zeroValue(java.lang.Class c)
protected java.beans.PropertyDescriptor getProperty(java.lang.String wantName)
protected java.beans.PropertyDescriptor getProperty(int idx)