Class ObjectDataModel

java.lang.Object
javax.swing.table.AbstractTableModel
microsim.gui.probe.ObjectDataModel
All Implemented Interfaces:
Serializable, TableModel

public class ObjectDataModel extends AbstractTableModel
Not of interest for users. A data model used to contain the list of elements within a collection. It is used by the Probe frame.

Title: JAS

Description: Java Agent-based Simulation library

Copyright (C) 2002 Michele Sonnessa

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
Author:
Michele Sonnessa

See Also:
  • Constructor Details

    • ObjectDataModel

      public ObjectDataModel(Object objToInspect)
  • Method Details

    • update

      public void update()
    • getHeaderText

      public String getHeaderText(int column)
    • getColumnCount

      public int getColumnCount()
    • getValueAt

      public Object getValueAt(int row, int col)
    • getRowCount

      public int getRowCount()
    • setValueAt

      public void setValueAt(Object val, int row, int col)
      Specified by:
      setValueAt in interface TableModel
      Overrides:
      setValueAt in class AbstractTableModel
    • getObjectAtRow

      public Object getObjectAtRow(int row)
    • getObjectNameAtRow

      public String getObjectNameAtRow(int row)
    • isCellEditable

      public boolean isCellEditable(int row, int col)
      Specified by:
      isCellEditable in interface TableModel
      Overrides:
      isCellEditable in class AbstractTableModel
    • getProbedObject

      public Object getProbedObject()