This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
java.awt.event
interface FocusListener
- All Superinterfaces:
- EventListener
- All Known Implementing Classes:
- AWTEventMulticaster, BasicButtonListener, BasicComboBoxEditor, BasicComboBoxEditor.UIResource, MetalComboBoxEditor, MetalComboBoxEditor.UIResource, BasicComboBoxUI.FocusHandler, BasicListUI.FocusHandler, BasicSliderUI.FocusHandler, BasicTableUI.FocusHandler, BasicToolBarUI.ToolBarFocusListener, BasicTreeUI.FocusHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler, DefaultCaret, BasicTextUI.BasicCaret, FocusAdapter, BasicSplitPaneUI.FocusHandler, BasicTabbedPaneUI.FocusHandler, JComponent.AccessibleJComponent.AccessibleFocusHandler
public interface FocusListener
extends EventListener
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.
Method Summary |
void |
Invoked when a component gains the keyboard focus.
|
void |
Invoked when a component loses the keyboard focus.
|
focusGained
public void focusGained(FocusEvent e)
-
Invoked when a component gains the keyboard focus.
- Parameters:
e
focusLost
public void focusLost(FocusEvent e)
-
Invoked when a component loses the keyboard focus.
- Parameters:
e
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.