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
 
22
 
23
 package com.dmdirc.ui.swing.dialogs.actioneditor;
23
 package com.dmdirc.ui.swing.dialogs.actioneditor;
24
 
24
 
25
+import com.dmdirc.actions.interfaces.ActionType;
26
+
25
 import javax.swing.JPanel;
27
 import javax.swing.JPanel;
26
 
28
 
27
 /**
29
 /**
35
      * objects being unserialized with the new class).
37
      * objects being unserialized with the new class).
36
      */
38
      */
37
     private static final long serialVersionUID = 1;
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
         super();
49
         super();
42
         
50
         
51
+        this.trigger = trigger;
52
+        
43
         initComponents();
53
         initComponents();
44
         addListeners();
54
         addListeners();
45
         layoutComponents();
55
         layoutComponents();
56
     /** Lays out the components. */
66
     /** Lays out the components. */
57
     private void layoutComponents() {
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