Top Description Constructors Methods
org.eclipse.swt.events

public abstract Class FocusAdapter

extends Object
implements FocusListener
Class Inheritance
All Implemented Interfaces
org.eclipse.swt.events.FocusListener, org.eclipse.swt.internal.SWTEventListener, java.util.EventListener

This adapter class provides default implementations for the methods described by the FocusListener interface.

Classes that wish to deal with FocusEvents can extend this class and override only the methods which they are interested in.

See Also
FocusListener, FocusEvent, Sample code and further information

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
focusGained(FocusEvent
an event containing information about the focus change
e
)

Implements org.eclipse.swt.events.FocusListener.focusGained.

Sent when a control gets focus.
public void
focusLost(FocusEvent
an event containing information about the focus change
e
)

Implements org.eclipse.swt.events.FocusListener.focusLost.

Sent when a control loses focus.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FocusAdapterback to summary
public FocusAdapter()

Method Detail

focusGainedback to summary
public void focusGained(FocusEvent e)

Implements org.eclipse.swt.events.FocusListener.focusGained.

Sent when a control gets focus. The default behavior is to do nothing.

Parameters
e:FocusEvent

an event containing information about the focus change

Annotations
@Override
focusLostback to summary
public void focusLost(FocusEvent e)

Implements org.eclipse.swt.events.FocusListener.focusLost.

Sent when a control loses focus. The default behavior is to do nothing.

Parameters
e:FocusEvent

an event containing information about the focus change

Annotations
@Override