public class MainWindowListener
extends java.lang.Object
implements java.awt.event.WindowListener
MainWindow
Constructor and Description |
---|
MainWindowListener(MainWindow mainWindow)
The constructor of the listener
|
Modifier and Type | Method and Description |
---|---|
void |
addOnCloseAction(java.util.function.Consumer<MainWindow> action)
Add the action "action" in the list of actions that must be executed when the
window is closed
|
void |
windowActivated(java.awt.event.WindowEvent e) |
void |
windowClosed(java.awt.event.WindowEvent e) |
void |
windowClosing(java.awt.event.WindowEvent e) |
void |
windowDeactivated(java.awt.event.WindowEvent e) |
void |
windowDeiconified(java.awt.event.WindowEvent e) |
void |
windowIconified(java.awt.event.WindowEvent e) |
void |
windowOpened(java.awt.event.WindowEvent e) |
public MainWindowListener(MainWindow mainWindow)
mainWindow
- The MainWindow linked to this listenerpublic void windowOpened(java.awt.event.WindowEvent e)
windowOpened
in interface java.awt.event.WindowListener
public void addOnCloseAction(java.util.function.Consumer<MainWindow> action)
action
- The action to be executedpublic void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
public void windowClosed(java.awt.event.WindowEvent e)
windowClosed
in interface java.awt.event.WindowListener
public void windowIconified(java.awt.event.WindowEvent e)
windowIconified
in interface java.awt.event.WindowListener
public void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified
in interface java.awt.event.WindowListener
public void windowActivated(java.awt.event.WindowEvent e)
windowActivated
in interface java.awt.event.WindowListener
public void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated
in interface java.awt.event.WindowListener