public interface ShellListener extends SWTEventListener
Shell
s.
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.
ShellAdapter
,
ShellEvent
Modifier and Type | Method and Description |
---|---|
void |
shellActivated(ShellEvent e)
Sent when a shell becomes the active window.
|
static ShellListener |
shellActivatedAdapter(Consumer<ShellEvent> c)
Static helper method to create a
ShellListener for the
shellActivated(ShellEvent e) ) method, given a lambda expression or a method reference. |
void |
shellClosed(ShellEvent e)
Sent when a shell is closed.
|
static ShellListener |
shellClosedAdapter(Consumer<ShellEvent> c)
Static helper method to create a
ShellListener for the
shellClosed(ShellEvent e) ) method, given a lambda expression or a method reference. |
void |
shellDeactivated(ShellEvent e)
Sent when a shell stops being the active window.
|
static ShellListener |
shellDeactivatedAdapter(Consumer<ShellEvent> c)
Static helper method to create a
ShellListener for the
shellDeactivated(ShellEvent e) ) method, given a lambda expression or a method reference. |
void |
shellDeiconified(ShellEvent e)
Sent when a shell is un-minimized.
|
static ShellListener |
shellDeiconifiedAdapter(Consumer<ShellEvent> c)
Static helper method to create a
ShellListener for the
shellDeiconified(ShellEvent e) ) method, given a lambda expression or a method reference. |
void |
shellIconified(ShellEvent e)
Sent when a shell is minimized.
|
static ShellListener |
shellIconifiedAdapter(Consumer<ShellEvent> c)
Static helper method to create a
ShellListener for the
shellIconified(ShellEvent e) ) method, given a lambda expression or a method reference. |
void shellActivated(ShellEvent e)
e
- an event containing information about the activationvoid shellClosed(ShellEvent e)
e
- an event containing information about the closevoid shellDeactivated(ShellEvent e)
e
- an event containing information about the deactivationvoid shellDeiconified(ShellEvent e)
e
- an event containing information about the un-minimizationvoid shellIconified(ShellEvent e)
e
- an event containing information about the minimizationstatic ShellListener shellActivatedAdapter(Consumer<ShellEvent> c)
ShellListener
for the
shellActivated(ShellEvent e)
) method, given a lambda expression or a method reference.c
- the consumer of the eventstatic ShellListener shellClosedAdapter(Consumer<ShellEvent> c)
ShellListener
for the
shellClosed(ShellEvent e)
) method, given a lambda expression or a method reference.c
- the consumer of the eventstatic ShellListener shellDeactivatedAdapter(Consumer<ShellEvent> c)
ShellListener
for the
shellDeactivated(ShellEvent e)
) method, given a lambda expression or a method reference.c
- the consumer of the eventstatic ShellListener shellDeiconifiedAdapter(Consumer<ShellEvent> c)
ShellListener
for the
shellDeiconified(ShellEvent e)
) method, given a lambda expression or a method reference.c
- the consumer of the eventstatic ShellListener shellIconifiedAdapter(Consumer<ShellEvent> c)
ShellListener
for the
shellIconified(ShellEvent e)
) method, given a lambda expression or a method reference.c
- the consumer of the event
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.