Package microsim.gui.probe
Class MethodParameterDataModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- microsim.gui.probe.MethodParameterDataModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
public class MethodParameterDataModel extends javax.swing.table.AbstractTableModel
Not of interest for users. A data model used to collect input parameters of a method. It is used by the table of the MethodDialog 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MethodParameterDataModel(java.lang.reflect.Method objToInspect)
-
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)
java.lang.Object[]
getParams()
java.lang.Object
getProbedObject()
int
getRowCount()
java.lang.Object
getValueAt(int row, int col)
boolean
isCellEditable(int row, int col)
void
setValueAt(java.lang.Object val, int row, int col)
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()
-
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
-
getParams
public java.lang.Object[] getParams()
-
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
-
getProbedObject
public java.lang.Object getProbedObject()
-
-