org.richfaces.demo.tree
Class Library

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

public class Library
extends java.lang.Object
implements org.richfaces.model.TreeNode

See Also:
Serialized Form

Constructor Summary
Library()
           
 
Method Summary
 void addArtist(Artist artist)
           
 void addChild(java.lang.Object identifier, org.richfaces.model.TreeNode child)
           
 org.richfaces.model.TreeNode getChild(java.lang.Object id)
           
 java.util.Iterator getChildren()
           
 java.lang.Object getData()
           
 java.util.ArrayList getLibraryAsList()
           
 org.richfaces.model.TreeNode getParent()
           
 java.lang.Object getState1()
           
 java.lang.Object getState2()
           
 java.lang.String getType()
           
 boolean isLeaf()
           
 void removeChild(java.lang.Object id)
           
 void setData(java.lang.Object data)
           
 void setParent(org.richfaces.model.TreeNode parent)
           
 void setState1(java.lang.Object state1)
           
 void setState2(java.lang.Object state2)
           
 void walk(org.richfaces.model.TreeNode node, java.util.List<org.richfaces.model.TreeNode> appendTo, java.lang.Class<? extends org.richfaces.model.TreeNode> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Library

public Library()
Method Detail

addArtist

public void addArtist(Artist artist)

addChild

public void addChild(java.lang.Object identifier,
                     org.richfaces.model.TreeNode child)
Specified by:
addChild in interface org.richfaces.model.TreeNode

getChild

public org.richfaces.model.TreeNode getChild(java.lang.Object id)
Specified by:
getChild in interface org.richfaces.model.TreeNode

getChildren

public java.util.Iterator getChildren()
Specified by:
getChildren in interface org.richfaces.model.TreeNode

getData

public java.lang.Object getData()
Specified by:
getData in interface org.richfaces.model.TreeNode

getParent

public org.richfaces.model.TreeNode getParent()
Specified by:
getParent in interface org.richfaces.model.TreeNode

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in interface org.richfaces.model.TreeNode

removeChild

public void removeChild(java.lang.Object id)
Specified by:
removeChild in interface org.richfaces.model.TreeNode

setData

public void setData(java.lang.Object data)
Specified by:
setData in interface org.richfaces.model.TreeNode

setParent

public void setParent(org.richfaces.model.TreeNode parent)
Specified by:
setParent in interface org.richfaces.model.TreeNode

getType

public java.lang.String getType()

getState1

public java.lang.Object getState1()

setState1

public void setState1(java.lang.Object state1)

getState2

public java.lang.Object getState2()

setState2

public void setState2(java.lang.Object state2)

walk

public void walk(org.richfaces.model.TreeNode node,
                 java.util.List<org.richfaces.model.TreeNode> appendTo,
                 java.lang.Class<? extends org.richfaces.model.TreeNode> type)

getLibraryAsList

public java.util.ArrayList getLibraryAsList()


Copyright © 2009. All Rights Reserved.