1 10 11 package org.enhydra.jawe.graph; 12 13 import org.enhydra.jawe.*; 14 import org.enhydra.jawe.xml.*; 15 16 import org.jgraph.graph.*; 17 18 import java.util.*; 19 import java.awt.*; 20 21 24 public class End extends Activity { 25 26 29 public End() { 30 this(null); 31 } 32 33 36 public End(Object userObject) { 37 super(userObject); 38 activityVisualType=JaWEConstants.TYPE_OF_ELEMENT_ENDING; 39 } 40 41 public void showPropertyDialog(Window parentWindow,AbstractGraph graph){} 42 43 47 public boolean acceptsTarget() { 48 if (getIncomingTransitions().size()<1) { 49 return true; 50 } 51 else { 52 return false; 53 } 54 } 55 56 59 public XMLElement get (String what) { 60 return null; 61 } 62 63 66 public void set (String what,Object value) { 67 return; 68 } 69 70 73 public String toString () { 74 String toRet=ResourceManager.getLanguageDependentString("EndKey"); 75 if (toRet!=null) { 76 return toRet; 77 } else { 78 return ""; 79 } 80 } 81 82 } 83 | Popular Tags |