Package ucar.ui.prefs
Class BeanTable.TableBeanModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- ucar.ui.prefs.BeanTable.TableBeanModel
-
- All Implemented Interfaces:
Serializable
,TableModel
- Direct Known Subclasses:
BeanTable.TableBeanModelInfo
protected class BeanTable.TableBeanModel extends AbstractTableModel
Does the reflection on the bean objects- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<PropertyDescriptor>
properties
-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TableBeanModel()
protected
TableBeanModel(Class beanClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class
getColumnClass(int col)
int
getColumnCount()
String
getColumnName(int col)
protected PropertyDescriptor
getProperty(int idx)
protected PropertyDescriptor
getProperty(String wantName)
int
getRowCount()
Object
getValueAt(int row, int col)
Object
getValueAt(Object bean, int col)
boolean
isCellEditable(int row, int col)
void
setProperty(String propertyName, String displayName, String toolTipText)
void
setValueAt(Object value, int row, int col)
protected Class
wrapPrimitives(Class c)
protected Object
zeroValue(Class c)
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
properties
protected List<PropertyDescriptor> properties
-
-
Constructor Detail
-
TableBeanModel
protected TableBeanModel()
-
TableBeanModel
protected TableBeanModel(Class beanClass)
-
-
Method Detail
-
getRowCount
public int getRowCount()
-
getColumnCount
public int getColumnCount()
-
getColumnName
public String getColumnName(int col)
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
getValueAt
public Object getValueAt(int row, int col)
-
getColumnClass
public Class getColumnClass(int col)
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int row, int col)
- Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
-
setValueAt
public void setValueAt(Object value, int row, int col)
- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
-
getProperty
@Nullable protected PropertyDescriptor getProperty(String wantName)
-
getProperty
protected PropertyDescriptor getProperty(int idx)
-
-