ibm.techexplorer.awt.event
Class FocusEvent

java.lang.Object
  |
  +--ibm.techexplorer.util.EventObject
        |
        +--ibm.techexplorer.awt.AWTEvent
              |
              +--ibm.techexplorer.awt.event.FocusEvent

public class FocusEvent
extends AWTEvent

Description

This event indicates that a techexplorer instance has gained or lost focus. At most one graphical component can have the focus at any given time.

Current Restriction: There is no distinction between permanent and temporary change of focus events.

In order for a Java object to receive focus notifications, the Java object must register a class that implements the ibm.techexplorer.awt.event.FocusListener interface. Alternatively, a focus listener could make use of a ibm.techexplorer.awt.event.FocusAdaptor class.

See Also:
AWTEvent, FocusListener, FocusAdaptor

Field Summary
static int FOCUS_GAINED
          Event identifier indicating that a techexplorer instance has gained focus.
static int FOCUS_LOST
          Event identifier indicating that a techexplorer instance has lost focus.
 
Fields inherited from class ibm.techexplorer.awt.AWTEvent
FOCUS_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK
 
Fields inherited from class ibm.techexplorer.util.EventObject
documentName, id, listenerClass, objectName, source
 
Constructor Summary
FocusEvent(java.lang.Object source, java.lang.String documentName, java.lang.String listenerClass, java.lang.String objectName, int id)
          Constructs a FocusEvent object with the specified techexplorer source instance, document source identifier, listener class, document object name and type.
 
Methods inherited from class ibm.techexplorer.util.EventObject
getDocumentName, getID, getListenerClass, getObjectName, getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FOCUS_GAINED

public static final int FOCUS_GAINED
Event identifier indicating that a techexplorer instance has gained focus.

FOCUS_LOST

public static final int FOCUS_LOST
Event identifier indicating that a techexplorer instance has lost focus.
Constructor Detail

FocusEvent

public FocusEvent(java.lang.Object source,
                  java.lang.String documentName,
                  java.lang.String listenerClass,
                  java.lang.String objectName,
                  int id)
Constructs a FocusEvent object with the specified techexplorer source instance, document source identifier, listener class, document object name and type.
Parameters:
source - The object where the event originated.
documentName - The name of the document that triggered the event.
listenerClass - The category of listeners that will receive notification of this event.
objectName - The name of the document object that triggered the event.
id - Event identifier (FOCUS_GAINED, FOCUS_LOST)