borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.model 

MatrixViewManager interface

borland.jbcl.model.MatrixViewManager

About the MatrixViewManager interface

Methods  

Implemented by MatrixDataSetManager, BasicViewManager, TypedViewManager

A class implementing MatrixViewManager selects item painters and item editors for matrix data structures.

Although you can implement this interface directly, JBCL provides BasicViewManager and TypedViewManager classes that implement it for you.


MatrixViewManager methods

Methods defined in this interface


MatrixViewManager methods

getEditor(int, int, java.lang.Object, int)

  public ItemEditor getEditor(int row, int column, java.lang.Object data, int state)
Returns an item editor. Classes that implement MatrixViewManager can use some, all, or none of the passed values to select the appropriate item editor object.

Parameters:

row
A zero-based index that specifies the row the data item is in.
column
A zero-based index that specifies the column the data item is in.
data
The data object to be edited.
state
The current state information for the item. Specify state as one of the variables defined in the ItemPainter interface.

getPainter(int, int, java.lang.Object, int)

  public ItemPainter getPainter(int row, int column, java.lang.Object data, int state)
Returns an item painter. Classes that implement MatrixViewManager can use some, all, or none of the passed values to select the appropriate item editor object.

Parameters:

row
A zero-based index that specifies the row the data item is in.
column
A zero-based index that specifies the column the data item is in.
data
The data object to be painted.
state
The current state information for the item. Specify state as one of the variables defined in the ItemPainter interface.