Package org.eclipse.swt.events
Interface ShellListener
-
- All Superinterfaces:
EventListener,SWTEventListener
- All Known Implementing Classes:
AnnotationBarHoverManager.Closer,ShellAdapter
public interface ShellListener extends SWTEventListener
Classes which implement this interface provide methods that deal with changes in state ofShells.After creating an instance of a class that implements this interface it can be added to a shell using the
addShellListenermethod and removed using theremoveShellListenermethod. When the state of the shell changes, the appropriate method will be invoked.- See Also:
ShellAdapter,ShellEvent
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidshellActivated(ShellEvent e)Sent when a shell becomes the active window.static ShellListenershellActivatedAdapter(Consumer<ShellEvent> c)Static helper method to create aShellListenerfor theshellActivated(ShellEvent e)) method, given a lambda expression or a method reference.voidshellClosed(ShellEvent e)Sent when a shell is closed.static ShellListenershellClosedAdapter(Consumer<ShellEvent> c)Static helper method to create aShellListenerfor theshellClosed(ShellEvent e)) method, given a lambda expression or a method reference.voidshellDeactivated(ShellEvent e)Sent when a shell stops being the active window.static ShellListenershellDeactivatedAdapter(Consumer<ShellEvent> c)Static helper method to create aShellListenerfor theshellDeactivated(ShellEvent e)) method, given a lambda expression or a method reference.voidshellDeiconified(ShellEvent e)Sent when a shell is un-minimized.static ShellListenershellDeiconifiedAdapter(Consumer<ShellEvent> c)Static helper method to create aShellListenerfor theshellDeiconified(ShellEvent e)) method, given a lambda expression or a method reference.voidshellIconified(ShellEvent e)Sent when a shell is minimized.static ShellListenershellIconifiedAdapter(Consumer<ShellEvent> c)Static helper method to create aShellListenerfor theshellIconified(ShellEvent e)) method, given a lambda expression or a method reference.
-
-
-
Method Detail
-
shellActivated
void shellActivated(ShellEvent e)
Sent when a shell becomes the active window.- Parameters:
e- an event containing information about the activation
-
shellClosed
void shellClosed(ShellEvent e)
Sent when a shell is closed.- Parameters:
e- an event containing information about the close
-
shellDeactivated
void shellDeactivated(ShellEvent e)
Sent when a shell stops being the active window.- Parameters:
e- an event containing information about the deactivation
-
shellDeiconified
void shellDeiconified(ShellEvent e)
Sent when a shell is un-minimized.- Parameters:
e- an event containing information about the un-minimization
-
shellIconified
void shellIconified(ShellEvent e)
Sent when a shell is minimized.- Parameters:
e- an event containing information about the minimization
-
shellActivatedAdapter
static ShellListener shellActivatedAdapter(Consumer<ShellEvent> c)
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 ShellListener shellClosedAdapter(Consumer<ShellEvent> c)
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 ShellListener shellDeactivatedAdapter(Consumer<ShellEvent> c)
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 ShellListener shellDeiconifiedAdapter(Consumer<ShellEvent> c)
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 ShellListener shellIconifiedAdapter(Consumer<ShellEvent> c)
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
-
-