borland Packages Class Hierarchy jbcl.model Package Index
borland.jbcl.model.MatrixModel +----borland.jbcl.model.WritableMatrixModel
Properties Methods Event Listeners
Implemented by GridControl, MatrixDataSetManager, BasicMatrixContainer
Classes the implement MatrixModel implement the methods required for a read-only model object that holds matrix data. A matrix model holds data in a two-dimensional array such as a grid.
The MatrixModel interface has a rowCount property that returns the number of rows in a matrix container, and a columnCount property that returns the number of columns. Use the get() method to locate a data item when you know the row and column of the data item. Or you can use find() to obtain the location of a data item in the model if you know what the data item is.
Usually you extend a class that implements this interface, such as BasicMatrixContainer. You can, however, implement the interface directly.
If you are developing a read-and-write component that holds matrix data, implement the WritableMatrixModel interface instead of MatrixModel.
public int getColumnCount()Returns the number of columns in the matrix.
public int getRowCount()Returns the number of rows in the matrix.
public MatrixLocation find(java.lang.Object data)Returns the storage location of the passed data object or null if the data object is not found.
Parameters:
public Object get(int row, int column)Returns data object at row and column.
Parameters:
public void addModelListener(borland.jbcl.model.MatrixModelListener listener) public void removeModelListener(borland.jbcl.model.MatrixModelListener listener)