⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 activitytypeschoiceelement.java

📁 jawe的最新版本,基于Java的图形化工作流编辑器。图形化工作流编辑器 。使用JAVA语言开发
💻 JAVA
字号:
package org.enhydra.jawe.base.panel;import java.util.ArrayList;import org.enhydra.shark.utilities.SequencedHashMap;import org.enhydra.shark.xpdl.XMLComplexChoice;import org.enhydra.shark.xpdl.XMLElement;import org.enhydra.shark.xpdl.XPDLConstants;import org.enhydra.shark.xpdl.elements.Activity;import org.enhydra.shark.xpdl.elements.ActivityTypes;/** * Helper element for displaying choices of other elements. * *  @author Sasa Bojanic */public class ActivityTypesChoiceElement extends XMLComplexChoice {      protected ActivityTypes controlled;            public ActivityTypesChoiceElement (ActivityTypes controlled) {         super(null, controlled.toName(), true);         this.controlled=controlled;         int type = ((Activity)controlled.getParent()).getActivityType();         SequencedHashMap chsMap=new SequencedHashMap();         chsMap.put(new Integer(XPDLConstants.ACTIVITY_TYPE_BLOCK),controlled.getBlockActivity());         chsMap.put(new Integer(XPDLConstants.ACTIVITY_TYPE_NO),controlled.getImplementation().getImplementationTypes().getNo());         chsMap.put(new Integer(XPDLConstants.ACTIVITY_TYPE_ROUTE),controlled.getRoute());         chsMap.put(new Integer(XPDLConstants.ACTIVITY_TYPE_SUBFLOW),controlled.getImplementation().getImplementationTypes().getSubFlow());         chsMap.put(new Integer(XPDLConstants.ACTIVITY_TYPE_TOOL),controlled.getImplementation().getImplementationTypes().getTools());         choosen=(XMLElement)chsMap.get(new Integer(type));         this.choices=new ArrayList(chsMap.values());      }            public void setChoosen (XMLElement ch) {         super.setChoosen(ch);         if (ch.getParent()==controlled) {            controlled.setChoosen(ch);         } else {            controlled.setImplementation();            controlled.getImplementation().getImplementationTypes().setChoosen(ch);         }      }                  protected void fillChoices () {      }      public void setReadOnly (boolean readOnly) {         this.isReadOnly=readOnly;      }            public String toName () {         return controlled.toName();      }      public XMLElement getControlledElement () {         return controlled;      }}   

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -