KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.opensymphony.workflow.designer.actions;
2
3 import java.awt.Point JavaDoc;
4 import java.awt.event.ActionEvent JavaDoc;
5
6 import javax.swing.AbstractAction JavaDoc;
7
8 import com.opensymphony.workflow.designer.WorkflowGraphModel;
9 import com.opensymphony.workflow.loader.WorkflowDescriptor;
10
11 /**
12  * @author jackflit
13  * Date: 2003-11-18
14  */

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