formulanode.java
来自「OBPM是一个开源」· Java 代码 · 共 72 行
JAVA
72 行
package cn.myapps.core.formula;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
public class FormulaNode {
private String id;
private String text;
private Collection children = new ArrayList();
private FormulaNode parent;
private String valuetype;
public String getValuetype() {
return valuetype;
}
public void setValuetype(String valuetype) {
this.valuetype = valuetype;
}
public FormulaNode getParent() {
return parent;
}
public void setParent(FormulaNode parent) {
this.parent = parent;
}
public Collection getChildren() {
return children;
}
public void setChildren(Collection thechildren) {
if (thechildren!=null) {
this.children.clear();
for (Iterator iter = thechildren.iterator(); iter.hasNext();) {
Object element = (Object) iter.next();
this.children.add(element);
}
}
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public void addChild(FormulaNode child) {
children.add(child);
}
public void delChild(FormulaNode child) {
children.remove(child);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?