RichFaces Showcase 4.1.0.20111101-M4

org.richfaces.demo.tree.model
Class CD

java.lang.Object
  extended by org.richfaces.demo.tree.model.NamedNode
      extended by org.richfaces.demo.tree.model.CD
All Implemented Interfaces:
Serializable, TreeNode

public class CD
extends NamedNode
implements TreeNode

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.richfaces.demo.tree.model.NamedNode
name, type
 
Constructor Summary
CD()
           
CD(String name, String artist, Company company, float price, int year)
           
 
Method Summary
 Enumeration<TreeNode> children()
           
 boolean getAllowsChildren()
           
 String getArtist()
           
 TreeNode getChildAt(int childIndex)
           
 int getChildCount()
           
 Company getCompany()
           
 int getIndex(TreeNode node)
           
 TreeNode getParent()
           
 float getPrice()
           
 int getYear()
           
 boolean isLeaf()
           
 void setArtist(String artist)
           
 void setCompany(Company company)
           
 void setPrice(float price)
           
 void setYear(int year)
           
 
Methods inherited from class org.richfaces.demo.tree.model.NamedNode
getName, getType, setName, setType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CD

public CD()

CD

public CD(String name,
          String artist,
          Company company,
          float price,
          int year)
Method Detail

getCompany

public Company getCompany()

setCompany

public void setCompany(Company company)

getChildAt

public TreeNode getChildAt(int childIndex)
Specified by:
getChildAt in interface TreeNode

getChildCount

public int getChildCount()
Specified by:
getChildCount in interface TreeNode

getParent

public TreeNode getParent()
Specified by:
getParent in interface TreeNode

getIndex

public int getIndex(TreeNode node)
Specified by:
getIndex in interface TreeNode

getAllowsChildren

public boolean getAllowsChildren()
Specified by:
getAllowsChildren in interface TreeNode

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in interface TreeNode

children

public Enumeration<TreeNode> children()
Specified by:
children in interface TreeNode

getArtist

public String getArtist()

setArtist

public void setArtist(String artist)

getPrice

public float getPrice()

setPrice

public void setPrice(float price)

getYear

public int getYear()

setYear

public void setYear(int year)

RichFaces Showcase 4.1.0.20111101-M4

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.