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

MatrixSubfocusEvent class

java.lang.Object
   +----java.util.EventObject
           +----borland.jbcl.util.DispatchableEvent
                   +----borland.jbcl.model.SubfocusEvent
                           +----borland.jbcl.model.MatrixSubfocusEvent

About the MatrixSubfocusEvent class

Variables  Constructors  Properties  Methods  

Implements VetoableDispatch, Serializable

A MatrixSubfocusEvent object is created whenever a matrix-subfocus event occurs. Matrix-subfocus events occur when the subfocus changes within a matrix model component.

MatrixSubfocusEvent objects have two types of dispatch methods. dispatch() is used for subfocusChanged events, and vetoableDispatch() is used for subfocusChanging events.


MatrixSubfocusEvent variables

Variables implemented in borland.jbcl.model.SubfocusEvent

Variables implemented in java.util.EventObject

MatrixSubfocusEvent constructors

MatrixSubfocusEvent properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.model.SubfocusEvent

Properties implemented in borland.jbcl.util.DispatchableEvent

Properties implemented in java.lang.Object

Properties implemented in java.util.EventObject

MatrixSubfocusEvent methods

Methods implemented in this class

Methods implemented in borland.jbcl.util.DispatchableEvent

Methods implemented in java.lang.Object


MatrixSubfocusEvent constructors

MatrixSubfocusEvent(java.lang.Object, int, borland.jbcl.model.MatrixLocation)

  public MatrixSubfocusEvent(java.lang.Object source, int id, borland.jbcl.model.MatrixLocation location)
Constructs the MatrixSubfocusEvent and initializes the event id and location.

Parameters:

source
The object that generated the matrix-subfocus event.
id
The integer that identifes the type of matrix-subfocus event. The id is one of the SubfocusEvent variables.
location
A MatrixLocation object that identifies the location of the data item within the matrix where the event occurs.

MatrixSubfocusEvent properties

location

 public MatrixLocation getLocation()
Returns the location within the matrix where the subfocus event occurred.

MatrixSubfocusEvent methods

dispatch(java.util.EventListener)

  public void dispatch(java.util.EventListener listener)
If the event is a subfocusChanged event, calls the subfocusChanged() method of the listening object, passing the event object to the method.

Parameters:

listener
The listening object that responds to a matrix subfocusChanged event.

Overrides: borland.jbcl.util.DispatchableEvent.dispatch(EventListener)

paramString()

  protected String paramString()
Appends the parameter string for the subfocus event object to the parameter string of the superclass and returns the entire string. The string appended is:

",location=" + location

where location is the MatrixLocation object that specifies the location of the subfocus item within the matrix.

Overrides: borland.jbcl.model.SubfocusEvent.paramString()