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
-
dmColumnNames
-
-
dmColumnTypes
-
-
dmMetaData
-
-
dmResultSet
-
-
dmRows
-
-
WizardTableModel()
- Constructor.
-
WizardTableModel(ResultSet)
- Constructor.
-
close()
-
-
finalize()
-
-
getColumnClass(int)
- Returns the appropriate java class for the column
type specified by the given column index.
-
getColumnCount()
-
-
getColumnName(int)
-
-
getRowCount()
- Return the number of rows in the model.
-
getValueAt(int, int)
- Return the model value at the given row/column.
-
isCellEditable(int, int)
-
-
load(ResultSet)
- Add the given results set to the model.
dmResultSet
private transient ResultSet dmResultSet
dmColumnNames
String dmColumnNames[]
dmColumnTypes
Class dmColumnTypes[]
dmRows
Vector dmRows
dmMetaData
private transient ResultSetMetaData dmMetaData
WizardTableModel
public WizardTableModel()
- Constructor.
WizardTableModel
public WizardTableModel(ResultSet rs) throws SQLException
- Constructor.
load
public void load(ResultSet rs) throws SQLException
- Add the given results set to the model.
close
public void close() throws SQLException
finalize
protected void finalize() throws Throwable
- Overrides:
- finalize in class Object
getColumnName
public String getColumnName(int column)
- Overrides:
- getColumnName in class AbstractTableModel
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
isCellEditable
public boolean isCellEditable(int row,
int column)
- Overrides:
- isCellEditable in class AbstractTableModel
getColumnCount
public int getColumnCount()
- Overrides:
- getColumnCount in class AbstractTableModel
getRowCount
public int getRowCount()
- Return the number of rows in the model.
- Overrides:
- getRowCount in class AbstractTableModel
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