Public Member Functions | Package Functions | Package Attributes

com.cosylab.cdb.browser.CDBTableModel Class Reference

Inherits javax::swing::table::AbstractTableModel.

List of all members.

Public Member Functions

int getRowCount ()
int getColumnCount ()
String getColumnName (int col)
Class getColumnClass (int col)
boolean isCellEditable (int row, int col)
Object getValueAt (int row, int col)
void setValueAt (Object value, int row, int col)
void storeVal ()
void resetValues ()

Package Functions

 CDBTableModel (Object[][]data, String[]colNames)

Package Attributes

Object[][] data
String[] colNames
HashMap resetValue = new HashMap()

Constructor & Destructor Documentation

com.cosylab.cdb.browser.CDBTableModel.CDBTableModel ( Objectdata  [][],
String[]  colNames 
) [package]

Constructs a table model.

Parameters:
data the data of the table
colNames names of the table columns

Member Function Documentation

Class com.cosylab.cdb.browser.CDBTableModel.getColumnClass ( int  col  ) 

Returns the most specific superclass for all the cell values in the column.

Parameters:
col the index of the column

References com.cosylab.cdb.browser.CDBTableModel.getValueAt().

int com.cosylab.cdb.browser.CDBTableModel.getColumnCount (  ) 

Returns the number of columns in the model.

References com.cosylab.cdb.browser.CDBTableModel.colNames.

String com.cosylab.cdb.browser.CDBTableModel.getColumnName ( int  col  ) 

Returns the name of the column at columnIndex.

Parameters:
col the index of the column

References com.cosylab.cdb.browser.CDBTableModel.colNames.

int com.cosylab.cdb.browser.CDBTableModel.getRowCount (  ) 
Object com.cosylab.cdb.browser.CDBTableModel.getValueAt ( int  row,
int  col 
)

Returns the value for the cell at columnIndex and rowIndex.

Parameters:
row the row whose value is to be queried
col the column whose value is to be queried

References com.cosylab.cdb.browser.CDBTableModel.data.

Referenced by com.cosylab.cdb.browser.CDBTableModel.getColumnClass(), and com.cosylab.cdb.browser.CDBLogic.saveTable().

boolean com.cosylab.cdb.browser.CDBTableModel.isCellEditable ( int  row,
int  col 
)

Returns true if the cell at rowIndex and columnIndex is editable.

Parameters:
row the row whose value to be queried.
col the column whose value to be queried .
void com.cosylab.cdb.browser.CDBTableModel.resetValues (  ) 
void com.cosylab.cdb.browser.CDBTableModel.setValueAt ( Object  value,
int  row,
int  col 
)

Sets the value in the cell at columnIndex and rowIndex to aValue.

Parameters:
value the new value
row the row whose value is to be changed
col the column whose value is to be changed

References com.cosylab.cdb.browser.CDBTableModel.data.

Referenced by com.cosylab.cdb.browser.CDBTableModel.resetValues().

void com.cosylab.cdb.browser.CDBTableModel.storeVal (  ) 

Member Data Documentation

HashMap com.cosylab.cdb.browser.CDBTableModel.resetValue = new HashMap() [package]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties