|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
nl.tudelft.simulation.introspection.gui.ObjectTableModel
The ObjectTableModel.
(c) copyright 2003-2004 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public
License (GPL) , no warranty
| Field Summary | |
protected Property[] |
properties
the properties |
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Constructor Summary | |
ObjectTableModel(java.lang.Object bean)
Creates an ObjectTableModel utilizing a {see nl.tudelft.simulation.introspection.beans.BeanIntrospector}. |
|
ObjectTableModel(java.lang.Object object,
Introspector introspector)
Creates an ObjectTableModel utilizing a custom introspector. |
|
| Method Summary | |
java.lang.Class |
getColumnClass(int columnIndex)
|
int |
getColumnCount()
|
java.lang.String |
getColumnName(int columnIndex)
|
Introspector |
getIntrospector()
|
ModelManager |
getModelManager()
By default, a {see DefaultModelManager}returned. |
Property |
getProperty(java.lang.String propertyName)
Returns the Property instance generated by this IntrospectingTableModelInterface for the property 'propertyName'. |
protected int |
getPropertyIndex(java.lang.String property)
|
int |
getRowCount()
|
java.lang.Class |
getTypeAt(int rowIndex,
int columnIndex)
gets the class of the the object at row,column. |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
|
void |
setModelManager(ModelManager manager)
Sets the modelmanager. |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
|
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.table.TableModel |
addTableModelListener, removeTableModelListener |
| Field Detail |
protected Property[] properties
| Constructor Detail |
public ObjectTableModel(java.lang.Object bean)
bean - The object to be introspected according to the bean
property-paradigm.
public ObjectTableModel(java.lang.Object object,
Introspector introspector)
object - The object to be introspected.introspector - The introspector instance utilized.| Method Detail |
public int getRowCount()
getRowCount in interface javax.swing.table.TableModelTableModel.getRowCount()public int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelTableModel.getColumnCount()
public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
getValueAt in interface javax.swing.table.TableModelTableModel.getValueAt(int, int)public java.lang.String getColumnName(int columnIndex)
getColumnName in interface javax.swing.table.TableModelTableModel.getColumnName(int)
public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface javax.swing.table.TableModelTableModel.isCellEditable(int, int)
public void setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
setValueAt in interface javax.swing.table.TableModelTableModel.setValueAt(Object, int, int)public java.lang.Class getColumnClass(int columnIndex)
getColumnClass in interface javax.swing.table.TableModelTableModel.getColumnClass(int)
public java.lang.Class getTypeAt(int rowIndex,
int columnIndex)
IntrospectingTableModelInterface
getTypeAt in interface IntrospectingTableModelInterfacerowIndex - the rowNumbercolumnIndex - the columnNumber
#getTypeAt(int,int)protected int getPropertyIndex(java.lang.String property)
property - the property
public Property getProperty(java.lang.String propertyName)
IntrospectingTableModelInterface
getProperty in interface IntrospectingTableModelInterfacepropertyName - The name of the Property to be returned
#getProperty(java.lang.String)public Introspector getIntrospector()
getIntrospector in interface IntrospectingTableModelInterface#getIntrospector()public void setModelManager(ModelManager manager)
manager - the managerpublic ModelManager getModelManager()
getModelManager in interface IntrospectingTableModelInterface#getModelManager()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||