Package org.eclipse.swt.events
Interface ShellListener
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
AnnotationBarHoverManager.Closer,ShellAdapter
Classes which implement this interface provide methods
that deal with changes in state of
Shells.
After creating an instance of a class that implements
this interface it can be added to a shell using the
addShellListener method and removed using
the removeShellListener method. When the
state of the shell changes, the appropriate method will
be invoked.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidSent when a shell becomes the active window.static ShellListenerStatic helper method to create aShellListenerfor theshellActivated(ShellEvent e)) method, given a lambda expression or a method reference.voidSent when a shell is closed.static ShellListenerStatic helper method to create aShellListenerfor theshellClosed(ShellEvent e)) method, given a lambda expression or a method reference.voidSent when a shell stops being the active window.static ShellListenerStatic helper method to create aShellListenerfor theshellDeactivated(ShellEvent e)) method, given a lambda expression or a method reference.voidSent when a shell is un-minimized.static ShellListenerStatic helper method to create aShellListenerfor theshellDeiconified(ShellEvent e)) method, given a lambda expression or a method reference.voidSent when a shell is minimized.static ShellListenerStatic helper method to create aShellListenerfor theshellIconified(ShellEvent e)) method, given a lambda expression or a method reference.
-
Method Details
-
shellActivated
Sent when a shell becomes the active window.- Parameters:
e- an event containing information about the activation
-
shellClosed
Sent when a shell is closed.- Parameters:
e- an event containing information about the close
-
shellDeactivated
Sent when a shell stops being the active window.- Parameters:
e- an event containing information about the deactivation
-
shellDeiconified
Sent when a shell is un-minimized.- Parameters:
e- an event containing information about the un-minimization
-
shellIconified
Sent when a shell is minimized.- Parameters:
e- an event containing information about the minimization
-
shellActivatedAdapter
Static helper method to create aShellListenerfor theshellActivated(ShellEvent e)) method, given a lambda expression or a method reference.- Parameters:
c- the consumer of the event- Returns:
- ShellListener
- Since:
- 3.107
-
shellClosedAdapter
Static helper method to create aShellListenerfor theshellClosed(ShellEvent e)) method, given a lambda expression or a method reference.- Parameters:
c- the consumer of the event- Returns:
- ShellListener
- Since:
- 3.107
-
shellDeactivatedAdapter
Static helper method to create aShellListenerfor theshellDeactivated(ShellEvent e)) method, given a lambda expression or a method reference.- Parameters:
c- the consumer of the event- Returns:
- ShellListener
- Since:
- 3.107
-
shellDeiconifiedAdapter
Static helper method to create aShellListenerfor theshellDeiconified(ShellEvent e)) method, given a lambda expression or a method reference.- Parameters:
c- the consumer of the event- Returns:
- ShellListener
- Since:
- 3.107
-
shellIconifiedAdapter
Static helper method to create aShellListenerfor theshellIconified(ShellEvent e)) method, given a lambda expression or a method reference.- Parameters:
c- the consumer of the event- Returns:
- ShellListener
- Since:
- 3.107
-