public class ObjectTableModel extends AbstractTableModel implements IntrospectingTableModelInterface
(c) copyright 2002-2005-2004 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
Modifier and Type | Field and Description |
---|---|
protected Property[] |
properties
the properties
|
listenerList
Constructor and Description |
---|
ObjectTableModel(Object bean)
Creates an ObjectTableModel utilizing a {see
nl.tudelft.simulation.introspection.beans.BeanIntrospector}.
|
ObjectTableModel(Object object,
Introspector introspector)
Creates an ObjectTableModel utilizing a custom introspector.
|
Modifier and Type | Method and Description |
---|---|
Class |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int columnIndex) |
Introspector |
getIntrospector() |
ModelManager |
getModelManager()
By default, a {see DefaultModelManager}returned.
|
Property |
getProperty(String propertyName)
Returns the Property instance generated by this
IntrospectingTableModelInterface for the property 'propertyName'.
|
protected int |
getPropertyIndex(String property) |
int |
getRowCount() |
Class |
getTypeAt(int rowIndex,
int columnIndex)
gets the class of the the object at row,column.
|
Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
setModelManager(ModelManager manager)
Sets the modelmanager.
|
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTableModelListener, removeTableModelListener
protected Property[] properties
public ObjectTableModel(Object bean)
bean
- The object to be introspected according to the bean
property-paradigm.public ObjectTableModel(Object object, Introspector introspector)
object
- The object to be introspected.introspector
- The introspector instance utilized.public int getRowCount()
getRowCount
in interface TableModel
TableModel.getRowCount()
public int getColumnCount()
getColumnCount
in interface TableModel
TableModel.getColumnCount()
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
TableModel.getValueAt(int, int)
public String getColumnName(int columnIndex)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
TableModel.getColumnName(int)
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
TableModel.isCellEditable(int, int)
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
TableModel.setValueAt(Object, int, int)
public Class getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
TableModel.getColumnClass(int)
public Class getTypeAt(int rowIndex, int columnIndex)
IntrospectingTableModelInterface
getTypeAt
in interface IntrospectingTableModelInterface
rowIndex
- the rowNumbercolumnIndex
- the columnNumber#getTypeAt(int,int)
protected int getPropertyIndex(String property)
property
- the propertypublic Property getProperty(String propertyName)
IntrospectingTableModelInterface
getProperty
in interface IntrospectingTableModelInterface
propertyName
- 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()
Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.