Package org.eclipse.swt.events
Class ShellAdapter
- java.lang.Object
-
- org.eclipse.swt.events.ShellAdapter
-
- All Implemented Interfaces:
EventListener,ShellListener,SWTEventListener
public abstract class ShellAdapter extends Object implements ShellListener
This adapter class provides default implementations for the methods described by theShellListenerinterface.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.
-
-
Constructor Summary
Constructors Constructor Description ShellAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidshellActivated(ShellEvent e)Sent when a shell becomes the active window.voidshellClosed(ShellEvent e)Sent when a shell is closed.voidshellDeactivated(ShellEvent e)Sent when a shell stops being the active window.voidshellDeiconified(ShellEvent e)Sent when a shell is un-minimized.voidshellIconified(ShellEvent e)Sent when a shell is minimized.
-
-
-
Method Detail
-
shellActivated
public void shellActivated(ShellEvent e)
Sent when a shell becomes the active window. The default behavior is to do nothing.- Specified by:
shellActivatedin interfaceShellListener- Parameters:
e- an event containing information about the activation
-
shellClosed
public void shellClosed(ShellEvent e)
Sent when a shell is closed. The default behavior is to do nothing.- Specified by:
shellClosedin interfaceShellListener- Parameters:
e- an event containing information about the close
-
shellDeactivated
public void shellDeactivated(ShellEvent e)
Sent when a shell stops being the active window. The default behavior is to do nothing.- Specified by:
shellDeactivatedin interfaceShellListener- Parameters:
e- an event containing information about the deactivation
-
shellDeiconified
public void shellDeiconified(ShellEvent e)
Sent when a shell is un-minimized. The default behavior is to do nothing.- Specified by:
shellDeiconifiedin interfaceShellListener- Parameters:
e- an event containing information about the un-minimization
-
shellIconified
public void shellIconified(ShellEvent e)
Sent when a shell is minimized. The default behavior is to do nothing.- Specified by:
shellIconifiedin interfaceShellListener- Parameters:
e- an event containing information about the minimization
-
-