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

📄 extendedattribute.java

📁 jawe的最新版本,基于Java的图形化工作流编辑器。图形化工作流编辑器 。使用JAVA语言开发
💻 JAVA
字号:
package org.enhydra.shark.xpdl.elements;import org.enhydra.shark.xpdl.XMLAttribute;import org.enhydra.shark.xpdl.XMLComplexElement;import org.enhydra.shark.xpdl.XMLElement;import org.enhydra.shark.xpdl.XMLElementChangeInfo;/** *  Represents coresponding element from XPDL schema. * *  @author Sasa Bojanic */public class ExtendedAttribute extends XMLComplexElement {   public ExtendedAttribute (ExtendedAttributes parent) {      super(parent, true);   }   protected void fillStructure () {      XMLAttribute attrName=new XMLAttribute(this,"Name", true); // required      XMLAttribute attrValue=new XMLAttribute(this,"Value", false);      add(attrName);      add(attrValue);   }   public void makeAs (XMLElement el) {      super.makeAs(el);      setValue(el.toValue());   }      public void setValue(String v) {      if (isReadOnly) {         throw new RuntimeException("Can't set the value of read only element!");      }      boolean notify=false;      String oldValue=value;      if (!this.value.equals(v)) {         notify=true;      }      this.value = v;            if (notify && (notifyMainListeners || notifyListeners)) {         XMLElementChangeInfo info=createInfo(oldValue, value, null, XMLElementChangeInfo.UPDATED);         if (notifyListeners) {                        notifyListeners(info);         }         if (notifyMainListeners) {            notifyMainListeners(info);         }      }   }      public String getName() {      return get("Name").toValue();   }   public void setName(String name) {      set("Name",name);   }   public String getVValue() {      return get("Value").toValue();   }   public void setVValue(String value) {      set("Value",value);   }}

⌨️ 快捷键说明

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