Top Description Constructors Methods
org.eclipse.swt.events

public abstract Class ShellAdapter

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

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

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

An alternative to this class are the static helper methods in ShellListener, which accept a lambda expression or a method reference that implements the event consumer.

See Also
ShellListener, ShellEvent, Sample code and further information

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
shellActivated(ShellEvent
an event containing information about the activation
e
)

Implements org.eclipse.swt.events.ShellListener.shellActivated.

Sent when a shell becomes the active window.
public void
shellClosed(ShellEvent
an event containing information about the close
e
)

Implements org.eclipse.swt.events.ShellListener.shellClosed.

Sent when a shell is closed.
public void
shellDeactivated(ShellEvent
an event containing information about the deactivation
e
)

Implements org.eclipse.swt.events.ShellListener.shellDeactivated.

Sent when a shell stops being the active window.
public void
shellDeiconified(ShellEvent
an event containing information about the un-minimization
e
)

Implements org.eclipse.swt.events.ShellListener.shellDeiconified.

Sent when a shell is un-minimized.
public void
shellIconified(ShellEvent
an event containing information about the minimization
e
)

Implements org.eclipse.swt.events.ShellListener.shellIconified.

Sent when a shell is minimized.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ShellAdapterback to summary
public ShellAdapter()

Method Detail

shellActivatedback to summary
public void shellActivated(ShellEvent e)

Implements org.eclipse.swt.events.ShellListener.shellActivated.

Sent when a shell becomes the active window. The default behavior is to do nothing.

Parameters
e:ShellEvent

an event containing information about the activation

Annotations
@Override
shellClosedback to summary
public void shellClosed(ShellEvent e)

Implements org.eclipse.swt.events.ShellListener.shellClosed.

Sent when a shell is closed. The default behavior is to do nothing.

Parameters
e:ShellEvent

an event containing information about the close

Annotations
@Override
shellDeactivatedback to summary
public void shellDeactivated(ShellEvent e)

Implements org.eclipse.swt.events.ShellListener.shellDeactivated.

Sent when a shell stops being the active window. The default behavior is to do nothing.

Parameters
e:ShellEvent

an event containing information about the deactivation

Annotations
@Override
shellDeiconifiedback to summary
public void shellDeiconified(ShellEvent e)

Implements org.eclipse.swt.events.ShellListener.shellDeiconified.

Sent when a shell is un-minimized. The default behavior is to do nothing.

Parameters
e:ShellEvent

an event containing information about the un-minimization

Annotations
@Override
shellIconifiedback to summary
public void shellIconified(ShellEvent e)

Implements org.eclipse.swt.events.ShellListener.shellIconified.

Sent when a shell is minimized. The default behavior is to do nothing.

Parameters
e:ShellEvent

an event containing information about the minimization

Annotations
@Override