nl.tudelft.simulation.introspection.gui
Class SortingObjectTableModel

java.lang.Object
  extended by nl.tudelft.simulation.introspection.sortable.SortingTableModel
      extended by nl.tudelft.simulation.introspection.gui.SortingObjectTableModel
All Implemented Interfaces:
TableModel, IntrospectingTableModelInterface, Sortable

public class SortingObjectTableModel
extends SortingTableModel
implements IntrospectingTableModelInterface

The sortingObjectTableModel. Can act as a delegate for an instance of {see nl.tudelft.simulation.introspection.gui.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.

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface nl.tudelft.simulation.introspection.sortable.Sortable
Sortable.Definition
 
Field Summary
 
Fields inherited from class nl.tudelft.simulation.introspection.sortable.SortingTableModel
expandedIndex, proxyListeners, source
 
Constructor Summary
SortingObjectTableModel(TableModel source)
          constructs a new SortingObjectTableModel
 
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 class nl.tudelft.simulation.introspection.sortable.SortingTableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getDefinitions, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setDefinitions, setValueAt, sort
 
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, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Constructor Detail

SortingObjectTableModel

public SortingObjectTableModel(TableModel source)
constructs a new SortingObjectTableModel

Parameters:
source - the source of this tableModel
Method Detail

getIntrospector

public Introspector getIntrospector()
Specified by:
getIntrospector in interface IntrospectingTableModelInterface
Returns:
The introspector instance used by this introspecting TableModel.
See Also:
#getIntrospector()

getProperty

public Property getProperty(String propertyName)
Description copied from interface: IntrospectingTableModelInterface
Returns the Property instance generated by this IntrospectingTableModelInterface for the property 'propertyName'.

Specified by:
getProperty in interface IntrospectingTableModelInterface
Parameters:
propertyName - The name of the Property to be returned
Returns:
The Property corresponding to 'propertyName', null if the property could not be found.
See Also:
IntrospectingTableModelInterface#getProperty(java.lang.String)

getTypeAt

public Class getTypeAt(int rowIndex,
                       int columnIndex)
Description copied from interface: IntrospectingTableModelInterface
gets the class of the the object at row,column.

Specified by:
getTypeAt in interface IntrospectingTableModelInterface
Parameters:
rowIndex - the rowNumber
columnIndex - the columnNumber
Returns:
The type of the value in cell 'rowIndex', 'columnIndex'
See Also:
#getTypeAt(int,int)

getModelManager

public ModelManager getModelManager()
Description copied from interface: IntrospectingTableModelInterface
Returns a reference to this model's modelManager, {see ModelManager}.

Specified by:
getModelManager in interface IntrospectingTableModelInterface
Returns:
the model manager
See Also:
#getModelManager()


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