skip to main | skip to sidebar

Java Programs and Examples with Output

Pages

▼
 
  • RSS
  • Twitter
Monday, September 17, 2012

Tree Components Java Example

Posted by Admin at 11:24 AM – 0 comments
 

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;
 }
 
 

}



Leave a Reply

Newer Post Older Post
Subscribe to: Post Comments ( Atom )
  • Popular
  • Recent
  • Archives
Powered by Blogger.
 
 
 
© 2011 Java Programs and Examples with Output | Designs by Web2feel & Fab Themes

Bloggerized by DheTemplate.com - Main Blogger