borland Packages  Class Hierarchy  jbcl.model Package  Index 

MatrixModelListener interface

java.util.EventListener
   +----borland.jbcl.model.MatrixModelListener

About the MatrixModelListener interface

Methods  

Implemented by MatrixModelAdapter, MatrixModelMulticaster

Classes that implement MatrixModelListener implement the methods necessary to respond to model events happening in components that use a matrix model, such as GridControl. The methods are the modelContentChanged() method, which is called when the data within the model changes, and the modelStructuredChanged() method, which is called when the size of the matrix changes.

Objects required to respond to these events must implement this interface and register themselves as listeners with the desired matrix-model component.

If your component responds to only one matrix-model event, instantiate a MatrixModelAdapter to handle the other via a method with a null body. If you are working in JBuilder's UI Designer, this object is inserted into your code for you.


MatrixModelListener methods

Methods defined in this interface


MatrixModelListener methods

modelContentChanged(borland.jbcl.model.MatrixModelEvent)

  public void modelContentChanged(borland.jbcl.model.MatrixModelEvent e)
Called when content within the matrix changes.

Parameters:

e
The matrix-model event object that is created when the content changes.

modelStructureChanged(borland.jbcl.model.MatrixModelEvent)

  public void modelStructureChanged(borland.jbcl.model.MatrixModelEvent e)
Called when the size of the matrix changes.

Parameters:

e
The matrix-model event object that is created when the matrix structure changes.