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

Add support for enter pressing in the text field. Add lombok craziness.

Change-Id: I6b46b99a0a2cb45078ee10d6a93f232d913ca3d3
Reviewed-on: http://gerrit.dmdirc.com/2224
Reviewed-by: Chris Smith <chris@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
tags/0.7rc1
Greg Holmes пре 12 година
родитељ
комит
48f4653db5

+ 6
- 7
src/com/dmdirc/addons/ui_swing/dialogs/channellist/SearchTermsPanel.java Прегледај датотеку

@@ -33,10 +33,14 @@ import javax.swing.JLabel;
33 33
 import javax.swing.JPanel;
34 34
 import javax.swing.JTextField;
35 35
 
36
+import lombok.AutoGenMethodStub;
37
+
36 38
 import net.miginfocom.swing.MigLayout;
37 39
 
38 40
 /** Gathers input for a group list search and begins the search. */
39
-public class SearchTermsPanel extends JPanel implements ActionListener, GroupListObserver {
41
+@AutoGenMethodStub
42
+public class SearchTermsPanel extends JPanel implements ActionListener,
43
+        GroupListObserver {
40 44
 
41 45
     /** Serial version UID. */
42 46
     private static final long serialVersionUID = 1L;
@@ -63,6 +67,7 @@ public class SearchTermsPanel extends JPanel implements ActionListener, GroupLis
63 67
     private void layoutComponents() {
64 68
         search = new JButton("Search");
65 69
         search.addActionListener(this);
70
+        searchTerms.addActionListener(this);
66 71
         setLayout(new MigLayout("fill, hidemode 3, ins 0"));
67 72
         add(new JLabel("Search terms: "), "align label");
68 73
         add(searchTerms, "growx, pushx");
@@ -80,12 +85,6 @@ public class SearchTermsPanel extends JPanel implements ActionListener, GroupLis
80 85
         search.setEnabled(false);
81 86
     }
82 87
 
83
-    /** {@inheritDoc} */
84
-    @Override
85
-    public void onGroupListStarted() {
86
-        //Ignore
87
-    }
88
-
89 88
     /** {@inheritDoc} */
90 89
     @Override
91 90
     public void onGroupListFinished() {

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