customedgeview.java
来自「osworkflow修改版本」· Java 代码 · 共 39 行
JAVA
39 行
package com.opensymphony.workflow.designer.views;import com.opensymphony.workflow.designer.*;import com.opensymphony.workflow.loader.ResultDescriptor;import org.jgraph.graph.*;/** * User: Hani Suleiman * Date: Dec 2, 2003 * Time: 2:22:44 PM */public class CustomEdgeView extends EdgeView{ public CustomEdgeView(Object obj, WorkflowGraph graph, CellMapper cm) { super(obj, graph, cm); } public void setTarget(CellView targetView) { super.setTarget(targetView); if(targetView==null || targetView.getParentView()==null) return; WorkflowCell cell = (WorkflowCell)targetView.getParentView().getCell(); ResultDescriptor d = ((ResultEdge)getCell()).getDescriptor(); if(cell instanceof StepCell) { d.setStep(cell.getId()); } else if(cell instanceof JoinCell) { d.setJoin(cell.getId()); } else if(cell instanceof SplitCell) { d.setSplit(cell.getId()); } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?