Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

com::cosylab::cdb::browser::CDBTableModel Class Reference

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
[inline, 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  )  [inline]
 

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

Parameters:
col the index of the column

int com::cosylab::cdb::browser::CDBTableModel::getColumnCount  )  [inline]
 

Returns the number of columns in the model.

String com::cosylab::cdb::browser::CDBTableModel::getColumnName int  col  )  [inline]
 

Returns the name of the column at columnIndex.

Parameters:
col the index of the column

int com::cosylab::cdb::browser::CDBTableModel::getRowCount  )  [inline]
 

Returns the number of rows in the model.

Object com::cosylab::cdb::browser::CDBTableModel::getValueAt int  row,
int  col
[inline]
 

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

boolean com::cosylab::cdb::browser::CDBTableModel::isCellEditable int  row,
int  col
[inline]
 

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  )  [inline]
 

void com::cosylab::cdb::browser::CDBTableModel::setValueAt Object  value,
int  row,
int  col
[inline]
 

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

void com::cosylab::cdb::browser::CDBTableModel::storeVal  )  [inline]
 


Member Data Documentation

String [] com::cosylab::cdb::browser::CDBTableModel::colNames [package]
 

Object [][] com::cosylab::cdb::browser::CDBTableModel::data [package]
 

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


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:12:16 2009 for ACS Java API by doxygen 1.3.8