Gridarta Editor
EditWindowListener.java
Go to the documentation of this file.
1 /*
2  * Gridarta MMORPG map editor for Crossfire, Daimonin and similar games.
3  * Copyright (C) 2000-2015 The Gridarta Developers.
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 package net.sf.gridarta.textedit.scripteditor;
21 
22 import java.awt.event.WindowEvent;
23 import java.awt.event.WindowListener;
24 import org.jetbrains.annotations.NotNull;
25 
30 public class EditWindowListener implements WindowListener {
31 
32  @NotNull
33  private final ScriptEditControl control; // controller
34 
39  public EditWindowListener(@NotNull final ScriptEditControl control) {
40  this.control = control;
41  }
42 
43  @Override
44  public void windowOpened(final WindowEvent e) {
45  }
46 
51  @Override
52  public void windowClosing(final WindowEvent e) {
54  }
55 
56  @Override
57  public void windowClosed(final WindowEvent e) {
58  control.closeAllTabs(); // (just make sure tabs are removed...)
59  }
60 
61  @Override
62  public void windowIconified(final WindowEvent e) {
63 
64  }
65 
66  @Override
67  public void windowDeiconified(final WindowEvent e) {
68 
69  }
70 
71  @Override
72  public void windowActivated(final WindowEvent e) {
73 
74  }
75 
76  @Override
77  public void windowDeactivated(final WindowEvent e) {
78 
79  }
80 
81 }
net.sf.gridarta.textedit.scripteditor.ScriptEditControl.closeAllTabs
boolean closeAllTabs()
Definition: ScriptEditControl.java:307
net.sf.gridarta.textedit.scripteditor.EditWindowListener
Definition: EditWindowListener.java:30
net.sf.gridarta.textedit.scripteditor.EditWindowListener.EditWindowListener
EditWindowListener(@NotNull final ScriptEditControl control)
Definition: EditWindowListener.java:39
net.sf.gridarta.textedit.scripteditor.EditWindowListener.control
final ScriptEditControl control
Definition: EditWindowListener.java:33
net.sf.gridarta.textedit.scripteditor.EditWindowListener.windowOpened
void windowOpened(final WindowEvent e)
Definition: EditWindowListener.java:44
net.sf.gridarta.textedit.scripteditor.EditWindowListener.windowClosing
void windowClosing(final WindowEvent e)
Definition: EditWindowListener.java:52
net.sf.gridarta.textedit.scripteditor.EditWindowListener.windowClosed
void windowClosed(final WindowEvent e)
Definition: EditWindowListener.java:57
net.sf.gridarta.textedit.scripteditor.EditWindowListener.windowDeiconified
void windowDeiconified(final WindowEvent e)
Definition: EditWindowListener.java:67
net.sf.gridarta.textedit.scripteditor.EditWindowListener.windowActivated
void windowActivated(final WindowEvent e)
Definition: EditWindowListener.java:72
net.sf.gridarta.textedit.scripteditor.ScriptEditControl
Definition: ScriptEditControl.java:59
net.sf.gridarta.textedit.scripteditor.EditWindowListener.windowIconified
void windowIconified(final WindowEvent e)
Definition: EditWindowListener.java:62
net.sf.gridarta.textedit.scripteditor.EditWindowListener.windowDeactivated
void windowDeactivated(final WindowEvent e)
Definition: EditWindowListener.java:77