All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.netobjects.nfx.wizard.WizardTableModel

java.lang.Object
   |
   +----com.sun.java.swing.table.AbstractTableModel
           |
           +----com.netobjects.nfx.wizard.WizardTableModel

public class WizardTableModel
extends AbstractTableModel
implements Serializable
Serves as a data structure for SQL results while extending abstract-table-model making it compatable with swing-table. It therefore can be passed into the constructor of a swing-table and the table will be auto-created.

Version:
1.0
Author:
Scott Cinnamond

Variable Index

 o dmColumnNames
 o dmColumnTypes
 o dmMetaData
 o dmResultSet
 o dmRows

Constructor Index

 o WizardTableModel()
Constructor.
 o WizardTableModel(ResultSet)
Constructor.

Method Index

 o close()
 o finalize()
 o getColumnClass(int)
Returns the appropriate java class for the column type specified by the given column index.
 o getColumnCount()
 o getColumnName(int)
 o getRowCount()
Return the number of rows in the model.
 o getValueAt(int, int)
Return the model value at the given row/column.
 o isCellEditable(int, int)
 o load(ResultSet)
Add the given results set to the model.

Variables

 o dmResultSet
 private transient ResultSet dmResultSet
 o dmColumnNames
 String dmColumnNames[]
 o dmColumnTypes
 Class dmColumnTypes[]
 o dmRows
 Vector dmRows
 o dmMetaData
 private transient ResultSetMetaData dmMetaData

Constructors

 o WizardTableModel
 public WizardTableModel()
Constructor.

 o WizardTableModel
 public WizardTableModel(ResultSet rs) throws SQLException
Constructor.

Methods

 o load
 public void load(ResultSet rs) throws SQLException
Add the given results set to the model.

 o close
 public void close() throws SQLException
 o finalize
 protected void finalize() throws Throwable
Overrides:
finalize in class Object
 o getColumnName
 public String getColumnName(int column)
Overrides:
getColumnName in class AbstractTableModel
 o getColumnClass
 public Class getColumnClass(int column)
Returns the appropriate java class for the column type specified by the given column index.

Parameters:
column - the column index.
Overrides:
getColumnClass in class AbstractTableModel
 o isCellEditable
 public boolean isCellEditable(int row,
                               int column)
Overrides:
isCellEditable in class AbstractTableModel
 o getColumnCount
 public int getColumnCount()
Overrides:
getColumnCount in class AbstractTableModel
 o getRowCount
 public int getRowCount()
Return the number of rows in the model.

Overrides:
getRowCount in class AbstractTableModel
 o getValueAt
 public Object getValueAt(int aRow,
                          int aColumn)
Return the model value at the given row/column.

Overrides:
getValueAt in class AbstractTableModel

All Packages  Class Hierarchy  This Package  Previous  Next  Index