Package microsim.gui.probe
Class VariableDataModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- microsim.gui.probe.VariableDataModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
public class VariableDataModel extends javax.swing.table.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VariableDataModel(java.lang.Object objToInspect)
VariableDataModel(java.lang.Object objToInspect, boolean privateVariables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumnCount()
java.lang.String
getHeaderText(int column)
java.lang.Object
getObjectAtRow(int row)
java.lang.String
getObjectNameAtRow(int row)
int
getRowCount()
java.lang.Object
getValueAt(int row, int col)
boolean
isCellEditable(int row, int col)
void
setDeepLevel(int level)
void
setValueAt(java.lang.Object val, int row, int col)
void
setViewPrivate(boolean privateVariables)
void
update()
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Method Detail
-
update
public void update()
-
setViewPrivate
public void setViewPrivate(boolean privateVariables)
-
setDeepLevel
public void setDeepLevel(int level)
-
getHeaderText
public java.lang.String getHeaderText(int column)
-
getColumnCount
public int getColumnCount()
-
getValueAt
public java.lang.Object getValueAt(int row, int col)
-
getRowCount
public int getRowCount()
-
setValueAt
public void setValueAt(java.lang.Object val, int row, int col)
- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
-
getObjectAtRow
public java.lang.Object getObjectAtRow(int row)
-
getObjectNameAtRow
public java.lang.String getObjectNameAtRow(int row)
-
isCellEditable
public boolean isCellEditable(int row, int col)
- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.AbstractTableModel
-
-