org.olat.course.run.userview
Class TreeEvaluation

java.lang.Object
  extended by org.olat.course.run.userview.TreeEvaluation

public class TreeEvaluation
extends java.lang.Object

Initial Date: Feb 6, 2004

Author:
Felix Jost

Constructor Summary
TreeEvaluation()
           
 
Method Summary
 void cacheCourseToTreeNode(CourseNode cn, TreeNode tn)
           
 TreeNode getCorrespondingTreeNode(CourseNode cn)
          used to quickly know if a given coursenode is still in the generated treemodel, and if yes, to fetch the treenode so we can reselect the user's selection even though we just built a new treemodel (which clears the selection of course)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeEvaluation

public TreeEvaluation()
Method Detail

cacheCourseToTreeNode

public void cacheCourseToTreeNode(CourseNode cn,
                                  TreeNode tn)

getCorrespondingTreeNode

public TreeNode getCorrespondingTreeNode(CourseNode cn)
used to quickly know if a given coursenode is still in the generated treemodel, and if yes, to fetch the treenode so we can reselect the user's selection even though we just built a new treemodel (which clears the selection of course)

Parameters:
cn - to courseNode to find
Returns:
null if the coursenode has no corresponding treenode in the newly built treemodel anymore (e.g. when the precondition evaluation changed so that the coursenode became invisible), or the TreeNode otherwise.