KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.opensymphony.workflow.designer.actions;
2
3 import java.awt.*;
4 import java.awt.event.ActionEvent JavaDoc;
5 import javax.swing.*;
6
7 import com.opensymphony.workflow.designer.ResourceManager;
8 import com.opensymphony.workflow.designer.WorkflowGraphModel;
9 import com.opensymphony.workflow.loader.WorkflowDescriptor;
10
11 /**
12  * User: Hani Suleiman
13  * Date: Oct 24, 2003
14  * Time: 2:29:02 PM
15  */

16 public class CreateStep extends AbstractAction
17 {
18   private WorkflowDescriptor workflow;
19   private WorkflowGraphModel model;
20   private Point location;
21
22   public CreateStep(WorkflowDescriptor workflow, WorkflowGraphModel model, Point location)
23   {
24     super(ResourceManager.getString("step"));
25     this.workflow = workflow;
26     this.model = model;
27     this.location = location;
28   }
29
30   public void actionPerformed(ActionEvent JavaDoc e)
31   {
32     CellFactory.createStep(workflow, model, location);
33   }
34 }
35
Popular Tags