org.olat.core.gui.components.tree
Class GenericTreeModel

java.lang.Object
  extended by org.olat.core.gui.components.tree.GenericTreeModel
All Implemented Interfaces:
java.io.Serializable, TreeModel
Direct Known Subclasses:
CatalogTreeModel, CourseEditorTreeModel, CPManifestTreeModel, FolderTreeModel, IdentitySelectionTreeModel, InsertItemTreeModel, InsertTreeModel, OlatRootFolderTreeModel, PublishTreeModel, QTIEditorTreeModel, ScormCPManifestTreeModel

public class GenericTreeModel
extends java.lang.Object
implements TreeModel

Initial Date: Feb 13, 2004

Author:
Mike Stock
See Also:
Serialized Form

Constructor Summary
GenericTreeModel()
           
 
Method Summary
 TreeNode findNodeByUserObject(java.lang.Object object)
          Searches (by breadth-first search) the node in this model whose user object is equal to the given object.
 TreeNode getNodeById(java.lang.String nodeId)
           
 TreeNode getRootNode()
           
 void setRootNode(TreeNode rootNode)
          Sets the rootNode.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericTreeModel

public GenericTreeModel()
Method Detail

getRootNode

public TreeNode getRootNode()
Specified by:
getRootNode in interface TreeModel
Returns:
See Also:
TreeModel.getRootNode()

getNodeById

public TreeNode getNodeById(java.lang.String nodeId)
Specified by:
getNodeById in interface TreeModel
Returns:
See Also:
TreeModel.getNodeById(java.lang.String)

findNodeByUserObject

public TreeNode findNodeByUserObject(java.lang.Object object)
Searches (by breadth-first search) the node in this model whose user object is equal to the given object.

Parameters:
object -
Returns:
The node whose user object is equal to the given object or null

setRootNode

public void setRootNode(TreeNode rootNode)
Sets the rootNode.

Parameters:
rootNode - The rootNode to set