Browse Source

Mass deprecation/deletion

Change-Id: I65a4cbe48f772dc7e400d585b1bfab15521fdd12
Depends-On: Ib499b44b594fa6dd85ac65fba5b95f16beb23c48
Reviewed-on: http://gerrit.dmdirc.com/1873
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com>
tags/0.7rc1
Chris Smith 13 years ago
parent
commit
6440080ca0

+ 7
- 7
src/com/dmdirc/addons/systray/SystrayPlugin.java View File

@@ -124,7 +124,7 @@ public final class SystrayPlugin extends Plugin implements ActionListener,
124 124
         if (e.getActionCommand().equals("Show/hide")) {
125 125
             final SwingController controller = (SwingController) PluginManager
126 126
                     .getPluginManager().getPluginInfoByName("ui_swing").getPlugin();
127
-            controller.getMainWindow().setVisible(!controller.getMainWindow().isVisible());
127
+            controller.getMainFrame().setVisible(!controller.getMainFrame().isVisible());
128 128
         } else if (e.getActionCommand().equals("Quit")) {
129 129
             Main.quit();
130 130
         }
@@ -190,12 +190,12 @@ public final class SystrayPlugin extends Plugin implements ActionListener,
190 190
         if (e.getButton() == MouseEvent.BUTTON1) {
191 191
             final SwingController controller = (SwingController) PluginManager
192 192
                     .getPluginManager().getPluginInfoByName("ui_swing").getPlugin();
193
-            if (controller.getMainWindow().isVisible()) {
194
-                controller.getMainWindow().setVisible(false);
193
+            if (controller.getMainFrame().isVisible()) {
194
+                controller.getMainFrame().setVisible(false);
195 195
             } else {
196
-                controller.getMainWindow().setVisible(true);
197
-                controller.getMainWindow().setState(Frame.NORMAL);
198
-                controller.getMainWindow().toFront();
196
+                controller.getMainFrame().setVisible(true);
197
+                controller.getMainFrame().setState(Frame.NORMAL);
198
+                controller.getMainFrame().toFront();
199 199
             }
200 200
         }
201 201
     }
@@ -249,7 +249,7 @@ public final class SystrayPlugin extends Plugin implements ActionListener,
249 249
                 "autominimise")) {
250 250
             final SwingController controller = (SwingController) PluginManager
251 251
                     .getPluginManager().getPluginInfoByName("ui_swing").getPlugin();
252
-            controller.getMainWindow().setVisible(false);
252
+            controller.getMainFrame().setVisible(false);
253 253
         }
254 254
     }
255 255
 

+ 0
- 31
src/com/dmdirc/addons/ui_dummy/DummyController.java View File

@@ -28,22 +28,15 @@ import com.dmdirc.config.prefs.PreferencesInterface;
28 28
 import com.dmdirc.plugins.Plugin;
29 29
 import com.dmdirc.ui.core.components.StatusBarManager;
30 30
 import com.dmdirc.ui.core.dialogs.sslcertificate.SSLCertificateDialogModel;
31
-import com.dmdirc.ui.interfaces.MainWindow;
32 31
 import com.dmdirc.ui.interfaces.UIController;
33
-import com.dmdirc.ui.interfaces.UpdaterDialog;
34
-import com.dmdirc.updater.Update;
35 32
 
36 33
 import java.net.URI;
37
-import java.util.List;
38 34
 
39 35
 /**
40 36
  * Implements a dummy UI controller.
41 37
  */
42 38
 public final class DummyController extends Plugin implements UIController {
43 39
 
44
-    /** Main window. */
45
-    private final MainWindow mainWindow = new DummyMainWindow();
46
-
47 40
     /**
48 41
      * Creates a new instance of DummyController.
49 42
      */
@@ -51,18 +44,6 @@ public final class DummyController extends Plugin implements UIController {
51 44
         StatusBarManager.getStatusBarManager().registerStatusBar(new DummyStatusBar());
52 45
     }
53 46
 
54
-    /** {@inheritDoc} */
55
-    @Override
56
-    public MainWindow getMainWindow() {
57
-        return mainWindow;
58
-    }
59
-
60
-    /** {@inheritDoc} */
61
-    @Override
62
-    public UpdaterDialog getUpdaterDialog(final List<Update> updates) {
63
-        throw new UnsupportedOperationException("Not supported yet.");
64
-    }
65
-
66 47
     /** {@inheritDoc} */
67 48
     @Override
68 49
     public void showFirstRunWizard() {
@@ -81,12 +62,6 @@ public final class DummyController extends Plugin implements UIController {
81 62
         throw new UnsupportedOperationException("Not supported yet.");
82 63
     }
83 64
 
84
-    /** {@inheritDoc} */
85
-    @Override
86
-    public void initUISettings() {
87
-        // Do nothing
88
-    }
89
-
90 65
     /** {@inheritDoc} */
91 66
     @Override
92 67
     public void showURLDialog(final URI url) {
@@ -105,12 +80,6 @@ public final class DummyController extends Plugin implements UIController {
105 80
         System.out.println(message);
106 81
     }
107 82
 
108
-    /** {@inheritDoc} */
109
-    @Override
110
-    public String getUserInput(final String prompt) {
111
-        throw new UnsupportedOperationException("Not supported yet.");
112
-    }
113
-
114 83
     /** {@inheritDoc} */
115 84
     @Override
116 85
     public void showSSLCertificateDialog(final SSLCertificateDialogModel model) {

+ 0
- 67
src/com/dmdirc/addons/ui_dummy/DummyMainWindow.java View File

@@ -1,67 +0,0 @@
1
-/*
2
- * Copyright (c) 2006-2011 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
- *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
10
- *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
13
- *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
21
- */
22
-
23
-package com.dmdirc.addons.ui_dummy;
24
-
25
-import com.dmdirc.ui.interfaces.MainWindow;
26
-
27
-import javax.swing.ImageIcon;
28
-
29
-/**
30
- * Dummy main window, used for testing.
31
- */
32
-public final class DummyMainWindow implements MainWindow {
33
-
34
-    /** Are we visible? */
35
-    private boolean visible = true;
36
-
37
-    /** {@inheritDoc} */
38
-    @Override
39
-    public ImageIcon getIcon() {
40
-        return null;
41
-    }
42
-
43
-    /** {@inheritDoc} */
44
-    @Override
45
-    public void quit() {
46
-        // Do nothing
47
-    }
48
-
49
-    /** {@inheritDoc} */
50
-    @Override
51
-    public String getTitlePrefix() {
52
-        return "DMDirc: Dummy UI: ";
53
-    }
54
-
55
-    /** {@inheritDoc} */
56
-    @Override
57
-    public void setVisible(final boolean visible) {
58
-        this.visible = visible;
59
-    }
60
-
61
-    /** {@inheritDoc} */
62
-    @Override
63
-    public boolean isVisible() {
64
-        return visible;
65
-    }
66
-
67
-}

+ 13
- 23
src/com/dmdirc/addons/ui_swing/MainFrame.java View File

@@ -47,7 +47,6 @@ import com.dmdirc.logger.Logger;
47 47
 import com.dmdirc.ui.CoreUIUtils;
48 48
 import com.dmdirc.ui.IconManager;
49 49
 import com.dmdirc.ui.WindowManager;
50
-import com.dmdirc.ui.interfaces.MainWindow;
51 50
 import com.dmdirc.ui.interfaces.Window;
52 51
 import com.dmdirc.util.QueuedLinkedHashSet;
53 52
 import com.dmdirc.util.ReturnableThread;
@@ -72,8 +71,8 @@ import net.miginfocom.swing.MigLayout;
72 71
  * The main application frame.
73 72
  */
74 73
 public final class MainFrame extends JFrame implements WindowListener,
75
-        MainWindow, ConfigChangeListener, SelectionListener,
76
-        SwingWindowListener, FrameInfoListener {
74
+        ConfigChangeListener, SelectionListener, SwingWindowListener,
75
+        FrameInfoListener {
77 76
 
78 77
     /**
79 78
      * A version number for this class. It should be changed whenever the class
@@ -202,19 +201,6 @@ public final class MainFrame extends JFrame implements WindowListener,
202 201
         });
203 202
     }
204 203
 
205
-    /** {@inheritDoc}. */
206
-    @Override
207
-    public ImageIcon getIcon() {
208
-        return UIUtilities.invokeAndWait(new ReturnableThread<ImageIcon>() {
209
-
210
-            /** {@inheritDoc} */
211
-            @Override
212
-            public void run() {
213
-                setObject(imageIcon);
214
-            }
215
-        });
216
-    }
217
-
218 204
     /**
219 205
      * Returns the window that is currently active.
220 206
      *
@@ -247,9 +233,12 @@ public final class MainFrame extends JFrame implements WindowListener,
247 233
         }
248 234
     }
249 235
 
250
-    /** {@inheritDoc}. */
251
-    @Override
252
-    public String getTitlePrefix() {
236
+    /**
237
+     * Gets the string which should be prefixed to this frame's title.
238
+     * 
239
+     * @return This frame's title prefix
240
+     */
241
+    private String getTitlePrefix() {
253 242
         return "DMDirc" + (showVersion ? " " + version : "");
254 243
     }
255 244
 
@@ -493,8 +482,9 @@ public final class MainFrame extends JFrame implements WindowListener,
493 482
         return splitPane;
494 483
     }
495 484
 
496
-    /** {@inheritDoc}. */
497
-    @Override
485
+    /**
486
+     * Exits with an "OK" status code.
487
+     */
498 488
     public void quit() {
499 489
         quit(0);
500 490
     }
@@ -537,11 +527,11 @@ public final class MainFrame extends JFrame implements WindowListener,
537 527
     public void doQuit(final int exitCode) {
538 528
         this.exitCode = exitCode;
539 529
 
540
-        new LoggingSwingWorker() {
530
+        new LoggingSwingWorker<Void, Void>() {
541 531
 
542 532
             /** {@inheritDoc} */
543 533
             @Override
544
-            protected Object doInBackground() {
534
+            protected Void doInBackground() {
545 535
                 ActionManager.getActionManager().triggerEvent(
546 536
                         CoreActionType.CLIENT_CLOSING, null);
547 537
                 ServerManager.getServerManager().closeAll(IdentityManager.

+ 4
- 59
src/com/dmdirc/addons/ui_swing/SwingController.java View File

@@ -30,7 +30,6 @@ import com.dmdirc.addons.ui_swing.components.addonpanel.ThemePanel;
30 30
 import com.dmdirc.addons.ui_swing.components.statusbar.FeedbackNag;
31 31
 import com.dmdirc.addons.ui_swing.components.statusbar.SwingStatusBar;
32 32
 import com.dmdirc.addons.ui_swing.dialogs.DialogKeyListener;
33
-import com.dmdirc.addons.ui_swing.dialogs.StandardInputDialog;
34 33
 import com.dmdirc.addons.ui_swing.dialogs.StandardMessageDialog;
35 34
 import com.dmdirc.addons.ui_swing.dialogs.channelsetting.ChannelSettingsDialog;
36 35
 import com.dmdirc.addons.ui_swing.dialogs.error.ErrorListDialog;
@@ -39,7 +38,6 @@ import com.dmdirc.addons.ui_swing.dialogs.prefs.URLConfigPanel;
39 38
 import com.dmdirc.addons.ui_swing.dialogs.prefs.UpdateConfigPanel;
40 39
 import com.dmdirc.addons.ui_swing.dialogs.serversetting.ServerSettingsDialog;
41 40
 import com.dmdirc.addons.ui_swing.dialogs.sslcertificate.SSLCertificateDialog;
42
-import com.dmdirc.addons.ui_swing.dialogs.updater.SwingUpdaterDialog;
43 41
 import com.dmdirc.addons.ui_swing.dialogs.url.URLDialog;
44 42
 import com.dmdirc.addons.ui_swing.wizard.WizardListener;
45 43
 import com.dmdirc.addons.ui_swing.wizard.firstrun.SwingFirstRunWizard;
@@ -51,7 +49,6 @@ import com.dmdirc.config.prefs.PreferencesInterface;
51 49
 import com.dmdirc.config.prefs.PreferencesDialogModel;
52 50
 import com.dmdirc.config.prefs.PreferencesSetting;
53 51
 import com.dmdirc.config.prefs.PreferencesType;
54
-import com.dmdirc.util.validators.NotEmptyValidator;
55 52
 import com.dmdirc.util.validators.NumericalValidator;
56 53
 import com.dmdirc.logger.ErrorLevel;
57 54
 import com.dmdirc.logger.Logger;
@@ -62,7 +59,6 @@ import com.dmdirc.ui.core.dialogs.sslcertificate.SSLCertificateDialogModel;
62 59
 import com.dmdirc.ui.core.util.URLHandler;
63 60
 import com.dmdirc.ui.interfaces.InputWindow;
64 61
 import com.dmdirc.ui.interfaces.UIController;
65
-import com.dmdirc.updater.Update;
66 62
 import com.dmdirc.util.ReturnableThread;
67 63
 
68 64
 import java.awt.Font;
@@ -146,12 +142,6 @@ public class SwingController extends Plugin implements UIController {
146 142
         return mainFrameCreated.get();
147 143
     }
148 144
 
149
-    /** {@inheritDoc} */
150
-    @Override
151
-    public MainFrame getMainWindow() {
152
-        return getMainFrame();
153
-    }
154
-
155 145
     /**
156 146
      * Returns a URL Handler which may be used when working with the Swing UI.
157 147
      *
@@ -190,21 +180,6 @@ public class SwingController extends Plugin implements UIController {
190 180
         return statusBar;
191 181
     }
192 182
 
193
-    /** {@inheritDoc} */
194
-    @Override
195
-    public SwingUpdaterDialog getUpdaterDialog(final List<Update> updates) {
196
-        return UIUtilities.invokeAndWait(
197
-                new ReturnableThread<SwingUpdaterDialog>() {
198
-
199
-            /** {@inheritDoc} */
200
-            @Override
201
-            public void run() {
202
-                setObject(SwingUpdaterDialog.getSwingUpdaterDialog(updates,
203
-                        me));
204
-            }
205
-        });
206
-    }
207
-
208 183
     /** {@inheritDoc} */
209 184
     @Override
210 185
     public void showFirstRunWizard() {
@@ -325,9 +300,10 @@ public class SwingController extends Plugin implements UIController {
325 300
         }
326 301
     }
327 302
 
328
-    /** {@inheritDoc} */
329
-    @Override
330
-    public void initUISettings() {
303
+    /**
304
+     * Initialises the global UI settings for the Swing UI.
305
+     */
306
+    private void initUISettings() {
331 307
         // This will do nothing on non OS X Systems
332 308
         if (Apple.isApple()) {
333 309
             final Apple apple = Apple.getApple();
@@ -428,37 +404,6 @@ public class SwingController extends Plugin implements UIController {
428 404
         errorDialog.display();
429 405
     }
430 406
 
431
-    /** {@inheritDoc} */
432
-    @Override
433
-    public String getUserInput(final String prompt) {
434
-        final StandardInputDialog dialog = new StandardInputDialog(me,
435
-                ModalityType.MODELESS, "Input required", prompt,
436
-                new NotEmptyValidator()) {
437
-
438
-            /**
439
-             * A version number for this class. It should be changed whenever
440
-             * the class structure is changed (or anything else that would
441
-             * prevent serialized objects being unserialized with the new
442
-             * class).
443
-             */
444
-            private static final long serialVersionUID = 1;
445
-
446
-            /** {@inheritDoc} */
447
-            @Override
448
-            public boolean save() {
449
-                return true;
450
-            }
451
-
452
-            /** {@inheritDoc} */
453
-            @Override
454
-            public void cancelled() {
455
-                //Do nothing.
456
-            }
457
-        };
458
-        dialog.displayBlocking();
459
-        return dialog.getText();
460
-    }
461
-
462 407
     /** {@inheritDoc} */
463 408
     @Override
464 409
     public PreferencesInterface getPluginPrefsPanel() {

+ 2
- 1
src/com/dmdirc/addons/ui_swing/components/addonbrowser/DownloaderWindow.java View File

@@ -9,6 +9,7 @@ import com.dmdirc.Main;
9 9
 import com.dmdirc.addons.ui_swing.SwingController;
10 10
 import com.dmdirc.addons.ui_swing.UIUtilities;
11 11
 import com.dmdirc.ui.CoreUIUtils;
12
+import com.dmdirc.ui.IconManager;
12 13
 import com.dmdirc.util.DownloadListener;
13 14
 import com.dmdirc.util.Downloader;
14 15
 
@@ -54,7 +55,7 @@ public class DownloaderWindow extends JDialog implements Runnable, DownloadListe
54 55
         pack();
55 56
         setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
56 57
         CoreUIUtils.centreWindow(this);
57
-        setIconImage(controller.getMainFrame().getIcon().getImage());
58
+        setIconImage(IconManager.getIconManager().getImage("icon"));
58 59
         setVisible(true);
59 60
         
60 61
         new Thread(this, "Addon downloader thread").start();

+ 2
- 2
src/com/dmdirc/addons/ui_swing/dialogs/prefs/SwingPreferencesDialog.java View File

@@ -88,9 +88,9 @@ public final class SwingPreferencesDialog extends StandardDialog implements
88 88
      * @param controller The controller which owns this preferences window.
89 89
      */
90 90
     private SwingPreferencesDialog(final SwingController controller) {
91
-        super(controller.getMainWindow(), ModalityType.MODELESS);
91
+        super(controller.getMainFrame(), ModalityType.MODELESS);
92 92
 
93
-        this.parentWindow = controller.getMainWindow();
93
+        this.parentWindow = controller.getMainFrame();
94 94
 
95 95
         initComponents();
96 96
 

+ 1
- 2
src/com/dmdirc/addons/ui_swing/dialogs/updater/SwingUpdaterDialog.java View File

@@ -28,7 +28,6 @@ import com.dmdirc.addons.ui_swing.components.renderers.UpdateComponentTableCellR
28 28
 import com.dmdirc.addons.ui_swing.components.renderers.UpdateStatusTableCellRenderer;
29 29
 import com.dmdirc.addons.ui_swing.components.text.TextLabel;
30 30
 import com.dmdirc.addons.ui_swing.dialogs.StandardDialog;
31
-import com.dmdirc.ui.interfaces.UpdaterDialog;
32 31
 import com.dmdirc.updater.Update;
33 32
 import com.dmdirc.updater.UpdateChecker;
34 33
 import com.dmdirc.updater.UpdateCheckerListener;
@@ -53,7 +52,7 @@ import net.miginfocom.swing.MigLayout;
53 52
  * and walks them through the process of downloading the update.
54 53
  */
55 54
 public final class SwingUpdaterDialog extends StandardDialog implements
56
-        ActionListener, UpdaterDialog, UpdateCheckerListener {
55
+        ActionListener, UpdateCheckerListener {
57 56
 
58 57
     /**
59 58
      * A version number for this class. It should be changed whenever the class

+ 1
- 1
src/com/dmdirc/addons/ui_swing/wizard/firstrun/SwingFirstRunWizard.java View File

@@ -104,7 +104,7 @@ public final class SwingFirstRunWizard implements WizardListener,
104 104
                 @Override
105 105
                 public void processEvent(final ActionType type,
106 106
                         final StringBuffer format, final Object... arguments) {
107
-                    ProfileManagerDialog.showProfileManagerDialog(controller.getMainWindow());
107
+                    ProfileManagerDialog.showProfileManagerDialog(controller.getMainFrame());
108 108
                 }
109 109
             }, CoreActionType.CLIENT_OPENED);
110 110
 

+ 0
- 31
src/com/dmdirc/addons/ui_web/WebInterfaceUI.java View File

@@ -24,18 +24,13 @@ package com.dmdirc.addons.ui_web;
24 24
 
25 25
 import com.dmdirc.Channel;
26 26
 import com.dmdirc.Server;
27
-import com.dmdirc.addons.ui_web.uicomponents.WebMainWindow;
28 27
 import com.dmdirc.addons.ui_web.uicomponents.WebStatusBar;
29 28
 import com.dmdirc.config.prefs.PreferencesInterface;
30 29
 import com.dmdirc.ui.core.components.StatusBarManager;
31 30
 import com.dmdirc.ui.core.dialogs.sslcertificate.SSLCertificateDialogModel;
32
-import com.dmdirc.ui.interfaces.MainWindow;
33 31
 import com.dmdirc.ui.interfaces.UIController;
34
-import com.dmdirc.ui.interfaces.UpdaterDialog;
35
-import com.dmdirc.updater.Update;
36 32
 
37 33
 import java.net.URI;
38
-import java.util.List;
39 34
 
40 35
 import org.mortbay.jetty.Handler;
41 36
 import org.mortbay.jetty.security.Constraint;
@@ -112,19 +107,6 @@ public class WebInterfaceUI implements UIController {
112 107
         webServer.addHandler(newHandler);
113 108
     }
114 109
 
115
-    /** {@inheritDoc} */
116
-    @Override
117
-    public MainWindow getMainWindow() {
118
-        return new WebMainWindow();
119
-    }
120
-
121
-    /** {@inheritDoc} */
122
-    @Override
123
-    public UpdaterDialog getUpdaterDialog(final List<Update> updates) {
124
-        //TODO FIXME
125
-        throw new UnsupportedOperationException("Not supported yet.");
126
-    }
127
-
128 110
     /** {@inheritDoc} */
129 111
     @Override
130 112
     public void showFirstRunWizard() {
@@ -143,12 +125,6 @@ public class WebInterfaceUI implements UIController {
143 125
         // Do nothing
144 126
     }
145 127
 
146
-    /** {@inheritDoc} */
147
-    @Override
148
-    public void initUISettings() {
149
-        // Do nothing
150
-    }
151
-
152 128
     /** {@inheritDoc} */
153 129
     @Override
154 130
     public void showURLDialog(final URI url) {
@@ -167,13 +143,6 @@ public class WebInterfaceUI implements UIController {
167 143
         // Do nothing
168 144
     }
169 145
 
170
-    /** {@inheritDoc} */
171
-    @Override
172
-    public String getUserInput(final String prompt) {
173
-        //TODO FIXME
174
-        throw new UnsupportedOperationException("Not supported yet.");
175
-    }
176
-
177 146
     /** {@inheritDoc} */
178 147
     @Override
179 148
     public void showSSLCertificateDialog(final SSLCertificateDialogModel model) {

+ 0
- 70
src/com/dmdirc/addons/ui_web/uicomponents/WebMainWindow.java View File

@@ -1,70 +0,0 @@
1
-/*
2
- * Copyright (c) 2006-2011 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
- *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
10
- *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
13
- *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
21
- */
22
-
23
-package com.dmdirc.addons.ui_web.uicomponents;
24
-
25
-import com.dmdirc.ui.interfaces.MainWindow;
26
-
27
-import javax.swing.ImageIcon;
28
-
29
-/**
30
- *
31
- * @author chris
32
- */
33
-public class WebMainWindow implements MainWindow {
34
-
35
-    /** {@inheritDoc} */
36
-    @Override
37
-    public ImageIcon getIcon() {
38
-        //TODO FIXME
39
-        throw new UnsupportedOperationException("Not supported yet.");
40
-    }
41
-
42
-    /** {@inheritDoc} */
43
-    @Override
44
-    public void quit() {
45
-        //TODO FIXME
46
-        throw new UnsupportedOperationException("Not supported yet.");
47
-    }
48
-    
49
-    /** {@inheritDoc} */
50
-    @Override
51
-    public String getTitlePrefix() {
52
-        //TODO FIXME
53
-        throw new UnsupportedOperationException("Not supported yet.");
54
-    }
55
-
56
-    /** {@inheritDoc} */
57
-    @Override
58
-    public void setVisible(final boolean visible) {
59
-        //TODO FIXME
60
-        throw new UnsupportedOperationException("Not supported yet.");
61
-    }
62
-
63
-    /** {@inheritDoc} */
64
-    @Override
65
-    public boolean isVisible() {
66
-        //TODO FIXME
67
-        throw new UnsupportedOperationException("Not supported yet.");
68
-    }
69
-
70
-}

Loading…
Cancel
Save