1 10 11 package org.enhydra.jawe.graph; 12 import org.enhydra.jawe.*; 13 import org.enhydra.jawe.xml.*; 14 import org.enhydra.jawe.xml.elements.*; 15 import org.jgraph.JGraph; 16 import org.jgraph.graph.*; 17 import org.jgraph.event.*; 18 19 import java.awt.*; 20 import java.awt.event.*; 21 import java.beans.*; 22 import java.net.URL ; 23 import java.util.*; 24 25 import javax.swing.*; 26 import javax.swing.undo.*; 27 import javax.swing.event.*; 28 import javax.swing.tree.*; 29 30 31 import java.awt.*; 32 import javax.swing.*; 33 34 39 public class BlockActivityEditor extends ProcessEditor { 40 41 private String blockActivityTitle; 42 43 public BlockActivityEditor(Window dialogOrFrame,WorkflowProcess wp, 44 BlockActivity ba,AbstractEditor parentEditor) { 45 super(dialogOrFrame,wp,parentEditor); 46 ((BlockActivityGraph)graph).setMyBlockActivity(ba); 47 } 48 49 52 protected AbstractGraph createGraph() { 53 JaWEGraphModel model = new JaWEGraphModel(); 54 graph=new BlockActivityGraph(model,this); 55 return graph; 56 } 57 58 61 public void showWindow (Window parentWindow,String name) { 62 blockActivityTitle=name; 63 super.showWindow(parentWindow,name); 64 } 65 66 69 public String getTitle () { 70 return blockActivityTitle; 71 } 72 73 76 public String toolbarToLoad () { 77 return "blockActivityToolbars"; 78 } 79 80 83 public String menubarToLoad () { 84 return "blockActivityMenubar"; 85 } 86 87 } 88 89 90 | Popular Tags |