com.cosylab.vdct
Class DBDDialog.TableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by com.cosylab.vdct.DBDDialog.TableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Enclosing class:
DBDDialog

public class DBDDialog.TableModel
extends javax.swing.table.AbstractTableModel

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
DBDDialog.TableModel()
           
 
Method Summary
 java.lang.Class getColumnClass(int col)
          Insert the method's description here.
 int getColumnCount()
          getColumnCount method comment.
 java.lang.String getColumnName(int column)
           
 int getRowCount()
          getRowCount method comment.
 java.lang.Object getValueAt(int row, int column)
          Returns an attribute value for the cell at row and column.
 boolean isCellEditable(int row, int col)
          Insert the method's description here.
 void setValueAt(java.lang.Object aValue, int row, int column)
          Sets the object value for the cell at column and row.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBDDialog.TableModel

public DBDDialog.TableModel()
Method Detail

getColumnClass

public java.lang.Class getColumnClass(int col)
Insert the method's description here. Creation date: (14.11.1999 15:22:35)

Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel
Parameters:
col - int
Returns:
java.lang.Class

getColumnCount

public int getColumnCount()
getColumnCount method comment.


getColumnName

public java.lang.String getColumnName(int column)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getRowCount

public int getRowCount()
getRowCount method comment.

Returns:
the number of rows in the model.

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)
Returns an attribute value for the cell at row and column.

Parameters:
row - the row whose value is to be looked up
column - the column whose value is to be looked up
Returns:
the value Object at the specified cell

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Insert the method's description here. Creation date: (14.11.1999 15:23:25)

Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel
Parameters:
row - int
col - int
Returns:
boolean

setValueAt

public void setValueAt(java.lang.Object aValue,
                       int row,
                       int column)
Sets the object value for the cell at column and row. aValue is the new value. This method will generate a tableChanged() notification.

Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel
Parameters:
aValue - the new value. This can be null.
row - the row whose value is to be looked up
column - the column whose value is to be looked up