java::awt::event::FocusListener Class Reference

Inheritance diagram for java::awt::event::FocusListener:

Inheritance graph
java::awt::event::FocusAdapterjava::util::EventListenerjava::lang::Interfacejava::lang::Object
[legend]
Collaboration diagram for java::awt::event::FocusListener:

Collaboration graph
java::util::EventListenerjava::lang::Interfacejava::lang::Object
[legend]

List of all members.


Detailed Description

The listener interface for receiving keyboard focus events on a component.

The class that is interested in processing a focus event either implements this interface (and all the methods it contains) or extends the abstract FocusAdapter class (overriding only the methods of interest). The listener object created from that class is then registered with a component using the component's addFocusListener method. When the component gains or loses the keyboard focus, the relevant method in the listener object is invoked, and the FocusEvent is passed to it.

See also:
FocusAdapter

FocusEvent

Tutorial: Writing a Focus Listener

Reference: The Java Class Libraries (update file)

Author:
Carl Quinn
Version:
1.14 01/23/03
Since:
1.1

Public Member Functions

virtual void focusGained (const FocusEvent &e)=0
 Invoked when a component gains the keyboard focus.
virtual void focusLost (const FocusEvent &e)=0
 Invoked when a component loses the keyboard focus.

Member Function Documentation

virtual void java::awt::event::FocusListener::focusGained ( const FocusEvent e  )  [pure virtual]

Invoked when a component gains the keyboard focus.

Implemented in java::awt::event::FocusAdapter.

virtual void java::awt::event::FocusListener::focusLost ( const FocusEvent e  )  [pure virtual]

Invoked when a component loses the keyboard focus.

Implemented in java::awt::event::FocusAdapter.


The documentation for this class was generated from the following file:
Generated on Fri May 16 11:56:15 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3