borland Packages  Class Hierarchy  jbcl.model Package  Index 

SubfocusEvent class (abstract)

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

About the SubfocusEvent class

Variables  Constructors  Properties  Methods  

Implements Serializable

A SubfocusEvent object is created whenever a subfocus event occurs. Subfocus events occur when the subfocus changes within a component. The ID property specifies what creates the event, a subfocusChange event or a subfocusChanging event. A subfocusChanging event permits registered listeners to veto the subfocusChanged event. If, on receipt of a subfocusChanging event, a listener throws an EventVetoException, the focus does not move to the new item and the subfocusChanged event does not occur.


SubfocusEvent variables

Variables implemented in this class

Variables implemented in java.util.EventObject

SubfocusEvent constructors

SubfocusEvent properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.util.DispatchableEvent

Properties implemented in java.lang.Object

Properties implemented in java.util.EventObject

SubfocusEvent methods

Methods implemented in this class

Methods implemented in borland.jbcl.util.DispatchableEvent

Methods implemented in java.lang.Object


SubfocusEvent variables

SUBFOCUS_CHANGED

  public static final int SUBFOCUS_CHANGED = 2
Indicates that the subfocus has changed.

SUBFOCUS_CHANGING

  public static final int SUBFOCUS_CHANGING = 1
Indicates that the subfocus is changing. Registered listeners have the opportunity to veto the change.

SubfocusEvent constructors

SubfocusEvent(java.lang.Object, int)

  public SubfocusEvent(java.lang.Object source, int id)
Constructs a SubfocusEvent object.

Parameters:

source
The object that generates this event object
id
The type of subfocus event: subfocusChanged or subfocusChanging. Specify the ID as an integer and select one of the SubfocusEvent constants.

SubfocusEvent properties

ID

 public int getID()
Returns the ID of the subfocus event as an integer. The integer represents on the SubfocusEvent variables.

SubfocusEvent methods

paramString()

  protected String paramString()
Returns the parameter string of the subfocus event. The parameter string will be:

"id=" + idString

where idString is one of the SubfocusEvent variables displayed as a string.

Overrides: borland.jbcl.util.DispatchableEvent.paramString()