summaryrefslogtreecommitdiff
path: root/client/SubWindow.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2009-02-15 12:59:17 +0000
committerPaul Buetow <paul@buetow.org>2009-02-15 12:59:17 +0000
commit2a93a612375aa6c8fd35280778624d486a81d2d2 (patch)
tree5f0b88be2b6bb5b0eb8a33f5a3e996e2352655c5 /client/SubWindow.java
parent3f06de0d35403234601f3bc8325ec8d37071d4a3 (diff)
run astyle
Diffstat (limited to 'client/SubWindow.java')
-rw-r--r--client/SubWindow.java160
1 files changed, 80 insertions, 80 deletions
diff --git a/client/SubWindow.java b/client/SubWindow.java
index 6ec4872..e043679 100644
--- a/client/SubWindow.java
+++ b/client/SubWindow.java
@@ -13,89 +13,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.
+ 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);
+ }
+
+ /**
+ * 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)
*/
- 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);
+ public void windowClosed(WindowEvent e) {
+ netCalendarClient.removeFrame(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.
+
+ /*
+ * (non-Javadoc)
+ * @see java.awt.event.WindowListener#windowActivated(java.awt.event.WindowEvent)
*/
- public void init(String sTitleText, NetCalendarClient netCalendarClient) {
- initComponents();
- pack();
- setVisible(true);
- }
-
- /**
- * The implemented method should initialize all the GUI components.
+ public void windowActivated(WindowEvent e) { }
+
+ /*
+ * (non-Javadoc)
+ * @see java.awt.event.WindowListener#windowClosing(java.awt.event.WindowEvent)
*/
- 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
+ public void windowClosing(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)
*/
- 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#windowActivated(java.awt.event.WindowEvent)
- */
- public void windowActivated(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#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) {}
- }
+ public void windowOpened(WindowEvent e) {}
+ }
}