Package com.cosylab.vdct
Class DBDDialog.TableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- com.cosylab.vdct.DBDDialog.TableModel
-
- All Implemented Interfaces:
Serializable
,TableModel
- Enclosing class:
- DBDDialog
public class DBDDialog.TableModel extends AbstractTableModel
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description TableModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class
getColumnClass(int col)
Insert the method's description here.int
getColumnCount()
getColumnCount method comment.String
getColumnName(int column)
int
getRowCount()
getRowCount method comment.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(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
-
-
-
-
Method Detail
-
getColumnClass
public Class getColumnClass(int col)
Insert the method's description here. Creation date: (14.11.1999 15:22:35)- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
- Parameters:
col
- int- Returns:
- java.lang.Class
-
getColumnCount
public int getColumnCount()
getColumnCount method comment.- Returns:
- something
-
getColumnName
public String getColumnName(int column)
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
getRowCount
public int getRowCount()
getRowCount method comment.- Returns:
- the number of rows in the model.
-
getValueAt
public 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 upcolumn
- 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 interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
- Parameters:
row
- intcol
- int- Returns:
- boolean
-
setValueAt
public void setValueAt(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 interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
- Parameters:
aValue
- the new value. This can be null.row
- the row whose value is to be looked upcolumn
- the column whose value is to be looked up
-
-