Class VariableDataModel

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

public class VariableDataModel extends AbstractTableModel
Not of interest for users. A data model used to show the list of variables into the probe.

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

    • VariableDataModel

      public VariableDataModel(Object objToInspect)
    • VariableDataModel

      public VariableDataModel(Object objToInspect, boolean privateVariables)
  • Method Details

    • update

      public void update()
    • setViewPrivate

      public void setViewPrivate(boolean privateVariables)
    • setDeepLevel

      public void setDeepLevel(int level)
    • 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