From 89c679eb813611a2ede208b4c8e27c7f596b3be7 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 18 Feb 2009 23:01:21 +0000 Subject: added copyright to header --- sources/client/SubWindow.java | 150 ++++++++++++++++++++++-------------------- 1 file changed, 77 insertions(+), 73 deletions(-) (limited to 'sources/client/SubWindow.java') 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) {} + } } -- cgit v1.2.3