package com.vci.client.ui.tree; import javax.swing.tree.DefaultMutableTreeNode; public class VCIBaseTreeNode extends DefaultMutableTreeNode{ /** * */ private static final long serialVersionUID = -7558494492422856368L; private Object obj = null; //the related obj of current tree node private boolean isLeaf = false; // node is leaf or not private boolean isExpand=false; // node has expanded or not /** * constructor * * @param nodeName, the display name * @param obj, the related obj */ public VCIBaseTreeNode(String nodeName, Object obj) { this.setUserObject(nodeName); this.obj = obj; } public boolean isExpand() { return isExpand; } public void setExpand(boolean isExpand) { this.isExpand = isExpand; } public boolean isLeaf() { return isLeaf; } public void setLeaf(boolean isLeaf) { this.isLeaf = isLeaf; } public Object getObj() { return obj; } public void setObj(Object obj) { this.obj = obj; } }