nl.tudelft.simulation.introspection.gui
Interface IntrospectingTableModelInterface

All Superinterfaces:
TableModel
All Known Implementing Classes:
CollectionTableModel, ObjectTableModel, SortingObjectTableModel

public interface IntrospectingTableModelInterface
extends TableModel

Defines the minimum contract for a TableModel providing additional introspection services. The contract is used to facilitate communication between an {see ObjectJTable}and an introspecting TableModel, especially to allow an ObjectJTable to create additional ObjectJTable instances.

(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.

Since:
1.4
Version:
1.1 Apr 15, 2004
Author:
Niels Lang Peter Jacobs

Method Summary
 Introspector getIntrospector()
           
 ModelManager getModelManager()
          Returns a reference to this model's modelManager, {see ModelManager}.
 Property getProperty(String propertyName)
          Returns the Property instance generated by this IntrospectingTableModelInterface for the property 'propertyName'.
 Class getTypeAt(int rowIndex, int columnIndex)
          gets the class of the the object at row,column.
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Method Detail

getProperty

Property getProperty(String propertyName)
Returns the Property instance generated by this IntrospectingTableModelInterface for the property 'propertyName'.

Parameters:
propertyName - The name of the Property to be returned
Returns:
The Property corresponding to 'propertyName', null if the property could not be found.

getIntrospector

Introspector getIntrospector()
Returns:
The introspector instance used by this introspecting TableModel.

getTypeAt

Class getTypeAt(int rowIndex,
                int columnIndex)
gets the class of the the object at row,column.

Parameters:
rowIndex - the rowNumber
columnIndex - the columnNumber
Returns:
The type of the value in cell 'rowIndex', 'columnIndex'

getModelManager

ModelManager getModelManager()
Returns a reference to this model's modelManager, {see ModelManager}.

Returns:
the model manager


Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.