Package org.eclipse.swt.events
Class ShellAdapter
java.lang.Object
org.eclipse.swt.events.ShellAdapter
- All Implemented Interfaces:
EventListener
,ShellListener
,SWTEventListener
This adapter class provides default implementations for the
methods described by the
ShellListener
interface.
Classes that wish to deal with ShellEvent
s 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.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sent when a shell becomes the active window.void
Sent when a shell is closed.void
Sent when a shell stops being the active window.void
Sent when a shell is un-minimized.void
Sent when a shell is minimized.
-
Constructor Details
-
ShellAdapter
public ShellAdapter()
-
-
Method Details
-
shellActivated
Sent when a shell becomes the active window. The default behavior is to do nothing.- Specified by:
shellActivated
in interfaceShellListener
- Parameters:
e
- an event containing information about the activation
-
shellClosed
Sent when a shell is closed. The default behavior is to do nothing.- Specified by:
shellClosed
in interfaceShellListener
- Parameters:
e
- an event containing information about the close
-
shellDeactivated
Sent when a shell stops being the active window. The default behavior is to do nothing.- Specified by:
shellDeactivated
in interfaceShellListener
- Parameters:
e
- an event containing information about the deactivation
-
shellDeiconified
Sent when a shell is un-minimized. The default behavior is to do nothing.- Specified by:
shellDeiconified
in interfaceShellListener
- Parameters:
e
- an event containing information about the un-minimization
-
shellIconified
Sent when a shell is minimized. The default behavior is to do nothing.- Specified by:
shellIconified
in interfaceShellListener
- Parameters:
e
- an event containing information about the minimization
-