public interface FocusListener extends SWTEventListener
After creating an instance of a class that implements
this interface it can be added to a control using the
addFocusListener
method and removed using
the removeFocusListener
method. When a
control gains or loses focus, the appropriate method
will be invoked.
FocusAdapter
,
FocusEvent
Modifier and Type | Method and Description |
---|---|
void |
focusGained(FocusEvent e)
Sent when a control gets focus.
|
void |
focusLost(FocusEvent e)
Sent when a control loses focus.
|
void focusGained(FocusEvent e)
e
- an event containing information about the focus changevoid focusLost(FocusEvent e)
e
- an event containing information about the focus change
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.