Procházet zdrojové kódy

Add an init method to TextFrame.

pull/178/head
Greg Holmes před 9 roky
rodič
revize
58834c2592

+ 8
- 0
ui_swing/src/com/dmdirc/addons/ui_swing/components/frames/ChannelFrame.java Zobrazit soubor

@@ -128,6 +128,14 @@ public final class ChannelFrame extends InputTextFrame implements ActionListener
128 128
                 owner.getChannelInfo().getName());
129 129
     }
130 130
 
131
+    /**
132
+     * Initialises the instance, adding any required listeners.
133
+     */
134
+    @Override
135
+    public void init() {
136
+        // TODO: Move adding listeners and things to here
137
+    }
138
+
131 139
     /**
132 140
      * Initialises the components in this frame.
133 141
      *

+ 8
- 0
ui_swing/src/com/dmdirc/addons/ui_swing/components/frames/ComponentFrame.java Zobrazit soubor

@@ -58,6 +58,14 @@ public class ComponentFrame extends TextFrame {
58 58
         initComponents(componentSupplier);
59 59
     }
60 60
 
61
+    /**
62
+     * Initialises the instance, adding any required listeners.
63
+     */
64
+    @Override
65
+    public void init() {
66
+        // TODO: Move adding listeners and things to here
67
+    }
68
+
61 69
     /**
62 70
      * Initialises components in this frame.
63 71
      */

+ 8
- 0
ui_swing/src/com/dmdirc/addons/ui_swing/components/frames/CustomFrame.java Zobrazit soubor

@@ -54,6 +54,14 @@ public class CustomFrame extends TextFrame {
54 54
         initComponents();
55 55
     }
56 56
 
57
+    /**
58
+     * Initialises the instance, adding any required listeners.
59
+     */
60
+    @Override
61
+    public void init() {
62
+        // TODO: Move adding listeners and things to here
63
+    }
64
+
57 65
     /**
58 66
      * Initialises components in this frame.
59 67
      */

+ 8
- 0
ui_swing/src/com/dmdirc/addons/ui_swing/components/frames/CustomInputFrame.java Zobrazit soubor

@@ -56,6 +56,14 @@ public class CustomInputFrame extends InputTextFrame {
56 56
         initComponents();
57 57
     }
58 58
 
59
+    /**
60
+     * Initialises the instance, adding any required listeners.
61
+     */
62
+    @Override
63
+    public void init() {
64
+        // TODO: Move adding listeners and things to here
65
+    }
66
+
59 67
     /**
60 68
      * Initialises components in this frame.
61 69
      */

+ 8
- 0
ui_swing/src/com/dmdirc/addons/ui_swing/components/frames/InputTextFrame.java Zobrazit soubor

@@ -116,6 +116,14 @@ public abstract class InputTextFrame extends TextFrame implements InputWindow, M
116 116
                 new InputFieldCopyAction(getTextPane(), getInputField().getTextField()));
117 117
     }
118 118
 
119
+    /**
120
+     * Initialises the instance, adding any required listeners.
121
+     */
122
+    @Override
123
+    public void init() {
124
+        // TODO: Move adding listeners and things to here
125
+    }
126
+
119 127
     /**
120 128
      * Initialises the components for this frame.
121 129
      *

+ 8
- 0
ui_swing/src/com/dmdirc/addons/ui_swing/components/frames/ServerFrame.java Zobrazit soubor

@@ -94,6 +94,14 @@ public final class ServerFrame extends InputTextFrame implements CertificateProb
94 94
         owner.addCertificateProblemListener(this);
95 95
     }
96 96
 
97
+    /**
98
+     * Initialises the instance, adding any required listeners.
99
+     */
100
+    @Override
101
+    public void init() {
102
+        // TODO: Move adding listeners and things to here
103
+    }
104
+
97 105
     /**
98 106
      * Initialises components in this frame.
99 107
      */

+ 7
- 0
ui_swing/src/com/dmdirc/addons/ui_swing/components/frames/TextFrame.java Zobrazit soubor

@@ -159,6 +159,13 @@ public abstract class TextFrame extends JPanel implements com.dmdirc.interfaces.
159 159
         setLayout(new MigLayout("fill"));
160 160
     }
161 161
 
162
+    /**
163
+     * Initialises the instance, adding any required listeners.
164
+     */
165
+    public void init() {
166
+        // TODO: Move adding listeners and things to here
167
+    }
168
+
162 169
     /**
163 170
      * Determines if this frame should be popped out of the client or not. Once this is set to true
164 171
      * it will pop out of the client as a free floating Desktop window.

Načítá se…
Zrušit
Uložit