Browse Source

work on issue 1027: New Actions Editor UI

git-svn-id: http://svn.dmdirc.com/trunk@4143 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Gregory Holmes 16 years ago
parent
commit
0793f9fe63

+ 21
- 2
src/com/dmdirc/ui/swing/dialogs/actioneditor/ActionConditionsPanel.java View File

@@ -22,6 +22,8 @@
22 22
 
23 23
 package com.dmdirc.ui.swing.dialogs.actioneditor;
24 24
 
25
+import com.dmdirc.actions.interfaces.ActionType;
26
+
25 27
 import javax.swing.JPanel;
26 28
 
27 29
 /**
@@ -35,11 +37,19 @@ public class ActionConditionsPanel extends JPanel {
35 37
      * objects being unserialized with the new class).
36 38
      */
37 39
     private static final long serialVersionUID = 1;
40
+    /** Action trigger. */
41
+    private ActionType trigger;
38 42
 
39
-    /** Instantiates the panel. */
40
-    public ActionConditionsPanel() {
43
+    /** 
44
+     * Instantiates the panel.
45
+     * 
46
+     * @param trigger Action trigger
47
+     */
48
+    public ActionConditionsPanel(final ActionType trigger) {
41 49
         super();
42 50
         
51
+        this.trigger = trigger;
52
+        
43 53
         initComponents();
44 54
         addListeners();
45 55
         layoutComponents();
@@ -56,4 +66,13 @@ public class ActionConditionsPanel extends JPanel {
56 66
     /** Lays out the components. */
57 67
     private void layoutComponents() {
58 68
     }
69
+    
70
+    /**
71
+     * Sets the trigger for this conditions panel.
72
+     * 
73
+     * @param trigger Action trigger.
74
+     */
75
+    public void setActionTrigger(final ActionType trigger) {
76
+        this.trigger = trigger;
77
+    }
59 78
 }

Loading…
Cancel
Save