summaryrefslogtreecommitdiff
path: root/sources/client/SubWindow.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2009-02-18 23:01:21 +0000
committerPaul Buetow <paul@buetow.org>2009-02-18 23:01:21 +0000
commit89c679eb813611a2ede208b4c8e27c7f596b3be7 (patch)
treef44c19435286e78b9e8002990e1b55183a4fbc49 /sources/client/SubWindow.java
parent177f346a9bbe455dc12fd26dfa2c586585c28c1e (diff)
added copyright to header
Diffstat (limited to 'sources/client/SubWindow.java')
-rw-r--r--sources/client/SubWindow.java150
1 files changed, 77 insertions, 73 deletions
diff --git a/sources/client/SubWindow.java b/sources/client/SubWindow.java
index e043679..36e9529 100644
--- a/sources/client/SubWindow.java
+++ b/sources/client/SubWindow.java
@@ -1,3 +1,7 @@
+/* NetCalendar 2006, 2009 (c) Dipl.-Inform. (FH) Paul C. Buetow
+ * http://netcalendar.buetow.org - netcalendar@dev.buetow.org
+ */
+
package client;
import java.awt.event.WindowEvent;
@@ -13,89 +17,89 @@ import javax.swing.*;
*
*/
public abstract class SubWindow extends JFrame {
- protected final static long serialVersionUID = 1L;
- protected NetCalendarClient netCalendarClient;
- private SubWindow subWindow;
-
- /**
- * Creates the window and shows it.
- * @param sTitleText Specifies the title text of this JFrame.
- * @param netCalendarClient Specifies the calendar client session object to use.
- */
- public SubWindow(String sTitleText, NetCalendarClient netCalendarClient) {
- super(netCalendarClient.getSessionString() + sTitleText);
- netCalendarClient.addFrame(this);
- this.netCalendarClient = netCalendarClient;
- this.subWindow = this;
- this.addWindowListener(new MyWindowListener());
- setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
- setLocationRelativeTo(netCalendarClient);
- }
-
- /**
- * Creates the window and shows it.
- * @param sTitleText Specifies the title text of this JFrame.
- * @param netCalendarClient Specifies the calendar client session object to use.
- */
- public void init(String sTitleText, NetCalendarClient netCalendarClient) {
- initComponents();
- pack();
- setVisible(true);
- }
+ protected final static long serialVersionUID = 1L;
+ protected NetCalendarClient netCalendarClient;
+ private SubWindow subWindow;
- /**
- * The implemented method should initialize all the GUI components.
- */
- protected abstract void initComponents();
-
- /**
- * This private class is only needed for removing the current JFrame of the outer class
- * from the NetCalendarClient object's frame Vector.
- * @author buetow
- */
- private class MyWindowListener implements WindowListener {
- /*
- * (non-Javadoc)
- * @see java.awt.event.WindowListener#windowClosed(java.awt.event.WindowEvent)
+ /**
+ * Creates the window and shows it.
+ * @param sTitleText Specifies the title text of this JFrame.
+ * @param netCalendarClient Specifies the calendar client session object to use.
*/
- public void windowClosed(WindowEvent e) {
- netCalendarClient.removeFrame(subWindow);
+ public SubWindow(String sTitleText, NetCalendarClient netCalendarClient) {
+ super(netCalendarClient.getSessionString() + sTitleText);
+ netCalendarClient.addFrame(this);
+ this.netCalendarClient = netCalendarClient;
+ this.subWindow = this;
+ this.addWindowListener(new MyWindowListener());
+ setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+ setLocationRelativeTo(netCalendarClient);
}
- /*
- * (non-Javadoc)
- * @see java.awt.event.WindowListener#windowActivated(java.awt.event.WindowEvent)
+ /**
+ * Creates the window and shows it.
+ * @param sTitleText Specifies the title text of this JFrame.
+ * @param netCalendarClient Specifies the calendar client session object to use.
*/
- public void windowActivated(WindowEvent e) { }
+ public void init(String sTitleText, NetCalendarClient netCalendarClient) {
+ initComponents();
+ pack();
+ setVisible(true);
+ }
- /*
- * (non-Javadoc)
- * @see java.awt.event.WindowListener#windowClosing(java.awt.event.WindowEvent)
+ /**
+ * The implemented method should initialize all the GUI components.
*/
- public void windowClosing(WindowEvent e) {}
+ protected abstract void initComponents();
- /*
- * (non-Javadoc)
- * @see java.awt.event.WindowListener#windowDeactivated(java.awt.event.WindowEvent)
+ /**
+ * This private class is only needed for removing the current JFrame of the outer class
+ * from the NetCalendarClient object's frame Vector.
+ * @author buetow
*/
- public void windowDeactivated(WindowEvent e) {}
+ private class MyWindowListener implements WindowListener {
+ /*
+ * (non-Javadoc)
+ * @see java.awt.event.WindowListener#windowClosed(java.awt.event.WindowEvent)
+ */
+ public void windowClosed(WindowEvent e) {
+ netCalendarClient.removeFrame(subWindow);
+ }
- /*
- * (non-Javadoc)
- * @see java.awt.event.WindowListener#windowDeiconified(java.awt.event.WindowEvent)
- */
- public void windowDeiconified(WindowEvent e) {}
+ /*
+ * (non-Javadoc)
+ * @see java.awt.event.WindowListener#windowActivated(java.awt.event.WindowEvent)
+ */
+ public void windowActivated(WindowEvent e) { }
- /*
- * (non-Javadoc)
- * @see java.awt.event.WindowListener#windowIconified(java.awt.event.WindowEvent)
- */
- public void windowIconified(WindowEvent e) { }
+ /*
+ * (non-Javadoc)
+ * @see java.awt.event.WindowListener#windowClosing(java.awt.event.WindowEvent)
+ */
+ public void windowClosing(WindowEvent e) {}
- /*
- * (non-Javadoc)
- * @see java.awt.event.WindowListener#windowOpened(java.awt.event.WindowEvent)
- */
- public void windowOpened(WindowEvent e) {}
- }
+ /*
+ * (non-Javadoc)
+ * @see java.awt.event.WindowListener#windowDeactivated(java.awt.event.WindowEvent)
+ */
+ public void windowDeactivated(WindowEvent e) {}
+
+ /*
+ * (non-Javadoc)
+ * @see java.awt.event.WindowListener#windowDeiconified(java.awt.event.WindowEvent)
+ */
+ public void windowDeiconified(WindowEvent e) {}
+
+ /*
+ * (non-Javadoc)
+ * @see java.awt.event.WindowListener#windowIconified(java.awt.event.WindowEvent)
+ */
+ public void windowIconified(WindowEvent e) { }
+
+ /*
+ * (non-Javadoc)
+ * @see java.awt.event.WindowListener#windowOpened(java.awt.event.WindowEvent)
+ */
+ public void windowOpened(WindowEvent e) {}
+ }
}