KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > workflow > designer > actions > DeleteWorkflow


1 package com.opensymphony.workflow.designer.actions;
2
3 import java.awt.event.ActionEvent JavaDoc;
4 import javax.swing.*;
5
6 import com.opensymphony.workflow.designer.WorkflowDesigner;
7
8 /**
9  * User: Hani Suleiman
10  * Date: Jan 13, 2004
11  * Time: 3:21:54 PM
12  */

13 public class DeleteWorkflow extends AbstractAction
14 {
15     private WorkflowDesigner designer;
16     private String JavaDoc name;
17
18     public DeleteWorkflow(WorkflowDesigner designer)
19     {
20         this.designer = designer;
21     }
22
23     public void actionPerformed(ActionEvent JavaDoc e)
24     {
25         designer.deleteWorkflow(name);
26     }
27
28     public void setWorkflow(String JavaDoc name)
29     {
30         this.name = name;
31     }
32 }
33
Popular Tags