actionproxy.java

来自「osworkflow修改版本」· Java 代码 · 共 42 行

JAVA
42
字号
package com.opensymphony.workflow.designer.proxy;import com.opensymphony.workflow.loader.ActionDescriptor;import org.jgraph.graph.DefaultGraphCell;/** * @author Gulei */public class ActionProxy implements DefaultGraphCell.ValueChangeHandler{  private ActionDescriptor action;  public ActionProxy(ActionDescriptor d)  {    action = d;  }  public String toString()  {    return action == null ? "" : action.getName();  }  public Object valueChanged(Object newValue)  {    if(action==null) return "";    String name = action.getName();    action.setName(newValue.toString());    return name;  }  public Object clone()  {    System.out.println(getClass() + " WARNING: Unexpected clone called on " + this);    return this;  }  public ActionDescriptor getDescriptor()  {    return action;  }}

⌨️ 快捷键说明

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