Tree Components open source
import org.apache.myfaces.custom.tree2.TreeNodeBase; /* * Inheriting the TreeNodeBase class * * and adding the attributes to the class * according to the requirement. * * compulsory attributes are : * * type * description * identifier * and leaf * * */ public class TreeNodeBase2 extends TreeNodeBase { /** * */ private static final long serialVersionUID = 1L; private boolean checkBoxStat; public TreeNodeBase2(java.lang.String type, java.lang.String description, java.lang.String identifier, boolean leaf,boolean checkBoxStat ) { super(type,description,identifier,leaf); this.checkBoxStat=checkBoxStat; } public boolean isCheckBoxStat() { return checkBoxStat; } public void setCheckBoxStat(boolean checkBoxStat) { this.checkBoxStat = checkBoxStat; } }