Преглед изворни кода

Remove Window and InputWindow.

pull/701/head
Chris Smith пре 7 година
родитељ
комит
1433ddfb6e

+ 0
- 6
src/main/java/com/dmdirc/events/LinkChannelClickedEvent.java Прегледај датотеку

@@ -23,18 +23,12 @@
23 23
 package com.dmdirc.events;
24 24
 
25 25
 import com.dmdirc.interfaces.WindowModel;
26
-import com.dmdirc.interfaces.ui.Window;
27 26
 
28 27
 /**
29 28
  * Raised when a channel link has been clicked.
30 29
  */
31 30
 public class LinkChannelClickedEvent extends LinkEvent {
32 31
 
33
-    @Deprecated
34
-    public LinkChannelClickedEvent(final Window window, final String target) {
35
-        super(window.getContainer(), target);
36
-    }
37
-
38 32
     public LinkChannelClickedEvent(final WindowModel window, final String target) {
39 33
         super(window, target);
40 34
     }

+ 0
- 6
src/main/java/com/dmdirc/events/LinkNicknameClickedEvent.java Прегледај датотеку

@@ -23,18 +23,12 @@
23 23
 package com.dmdirc.events;
24 24
 
25 25
 import com.dmdirc.interfaces.WindowModel;
26
-import com.dmdirc.interfaces.ui.Window;
27 26
 
28 27
 /**
29 28
  * Raised when a nickname link has been clicked.
30 29
  */
31 30
 public class LinkNicknameClickedEvent extends LinkEvent {
32 31
 
33
-    @Deprecated
34
-    public LinkNicknameClickedEvent(final Window window, final String target) {
35
-        super(window.getContainer(), target);
36
-    }
37
-
38 32
     public LinkNicknameClickedEvent(final WindowModel window, final String target) {
39 33
         super(window, target);
40 34
     }

+ 0
- 6
src/main/java/com/dmdirc/events/LinkUrlClickedEvent.java Прегледај датотеку

@@ -23,18 +23,12 @@
23 23
 package com.dmdirc.events;
24 24
 
25 25
 import com.dmdirc.interfaces.WindowModel;
26
-import com.dmdirc.interfaces.ui.Window;
27 26
 
28 27
 /**
29 28
  * Raised when a URL link has been clicked.
30 29
  */
31 30
 public class LinkUrlClickedEvent extends LinkEvent {
32 31
 
33
-    @Deprecated
34
-    public LinkUrlClickedEvent(final Window window, final String target) {
35
-        super(window.getContainer(), target);
36
-    }
37
-
38 32
     public LinkUrlClickedEvent(final WindowModel window, final String target) {
39 33
         super(window, target);
40 34
     }

+ 0
- 40
src/main/java/com/dmdirc/interfaces/ui/InputWindow.java Прегледај датотеку

@@ -1,40 +0,0 @@
1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.ui;
24
-
25
-import com.dmdirc.ui.input.InputHandler;
26
-
27
-/**
28
- * The Input Window interface specifies additional methods that windows should implement if they
29
- * have an input field.
30
- */
31
-public interface InputWindow extends Window {
32
-
33
-    /**
34
-     * Retrieves the input handler for this input window.
35
-     *
36
-     * @return This window's input handler
37
-     */
38
-    InputHandler getInputHandler();
39
-
40
-}

+ 0
- 40
src/main/java/com/dmdirc/interfaces/ui/Window.java Прегледај датотеку

@@ -1,40 +0,0 @@
1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.ui;
24
-
25
-import com.dmdirc.interfaces.WindowModel;
26
-
27
-/**
28
- * The Window interface specifies common methods that should be implemented by all windows. It is
29
- * assumed that all windows have a main text area.
30
- */
31
-public interface Window {
32
-
33
-    /**
34
-     * Retrieves the container that owns this command window.
35
-     *
36
-     * @return The container that owns this command window.
37
-     */
38
-    WindowModel getContainer();
39
-
40
-}

Loading…
Откажи
Сачувај