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 protectedTableBeanModel()protectedTableBeanModel(Class beanClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassgetColumnClass(int col)intgetColumnCount()StringgetColumnName(int col)protected PropertyDescriptorgetProperty(int idx)protected PropertyDescriptorgetProperty(String wantName)intgetRowCount()ObjectgetValueAt(int row, int col)ObjectgetValueAt(Object bean, int col)booleanisCellEditable(int row, int col)voidsetProperty(String propertyName, String displayName, String toolTipText)voidsetValueAt(Object value, int row, int col)protected ClasswrapPrimitives(Class c)protected ObjectzeroValue(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:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getValueAt
public Object getValueAt(int row, int col)
-
getColumnClass
public Class getColumnClass(int col)
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int row, int col)- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
setValueAt
public void setValueAt(Object value, int row, int col)
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
getProperty
@Nullable protected PropertyDescriptor getProperty(String wantName)
-
getProperty
protected PropertyDescriptor getProperty(int idx)
-
-