public interface FocusListener
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 event)
Sent when a control gets focus.
|
void |
focusLost(FocusEvent event)
Sent when a control loses focus.
|
void focusGained(FocusEvent event)
event
- an event containing information about the focus changevoid focusLost(FocusEvent event)
event
- an event containing information about the focus change
Copyright (c) EclipseSource and others 2002, 2020.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0