package com.vci.client.workflow.editor;
|
|
import java.io.Serializable;
|
|
public class FlowNode implements Serializable{
|
|
private static final long serialVersionUID = 370713807085188646L;
|
|
private String type;
|
private String name;
|
private String icon = "";
|
private int width = 0;
|
private int height = 0;
|
|
public FlowNode(String type){
|
this.type= type;
|
}
|
public FlowNode(String type, String name) {
|
this.type = type;
|
this.name = name;
|
}
|
|
public String getIcon() {
|
return icon;
|
}
|
|
public void setIcon(String icon) {
|
this.icon = icon;
|
}
|
|
public int getWidth() {
|
return width;
|
}
|
|
public void setWidth(int width) {
|
this.width = width;
|
}
|
|
public int getHeight() {
|
return height;
|
}
|
|
public void setHeight(int height) {
|
this.height = height;
|
}
|
|
public String getType() {
|
return type;
|
}
|
|
public void setType(String type) {
|
this.type = type;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String toString() {
|
// String name=this.getProperty("name");
|
// if(name==null || (!this.type.equals("task") && !this.type.equals("sub-process") && !this.type.equals("transition"))){
|
// name="";
|
// }
|
return name;
|
}
|
|
@Override
|
protected Object clone() {
|
return new FlowNode(this.type, this.name);
|
}
|
}
|