| org.sakaiproject.tool.assessment.data.model.Tree
All known Subclasses: org.sakaiproject.tool.assessment.business.questionpool.QuestionPoolTreeImpl,
Tree | public interface Tree extends Serializable(Code) | | originally Tree.java
author: esmiley@stanford.edu version: $Id: Tree.java 632 2005-07-14 21:22:50Z janderse@umich.edu $ |
currentObjectIsParent | public boolean currentObjectIsParent()(Code) | | |
getAllObjects | public Map getAllObjects()(Code) | | |
getChildList | public List getChildList(Long parentID)(Code) | | Parameters: parentID - |
getChildren | public Map getChildren(Long parentID)(Code) | | Parameters: parentID - |
getCurrentLevel | public String getCurrentLevel()(Code) | | Get the current level.
A String that represents the level we're on (1 is root node,2 is first level child, etc.. |
getCurrentObjectHTMLId | public String getCurrentObjectHTMLId()(Code) | | This is used to get the String id suitable for use in a
javascript tree.
|
getCurrentObjectProperties | public Collection getCurrentObjectProperties()(Code) | | This returns a collection of String properties that can be
displayed in a table. If (currentObjectId == null), returns
the list of column headers.
|
getRootNodeList | public List getRootNodeList()(Code) | | |
getSortProperty | public String getSortProperty()(Code) | | This gets the property by which siblings will be sorted.
|
getSortedObjects | public Collection getSortedObjects()(Code) | | A collection of objects in proper sorted order for a tree.
|
getSortedObjects | public Collection getSortedObjects(Long parentId)(Code) | | A collection of objects in proper sorted order for a subpool tree.
|
haveCommonRoot | public boolean haveCommonRoot(Long poolIdA, Long poolIdB)(Code) | | THis checks to see if given two pools have a common ancestor
|
isDescendantOf | public boolean isDescendantOf(Long poolA, Long poolB)(Code) | | Is a pool a descendant of the other?
|
poolLevel | public int poolLevel(Long poolId)(Code) | | This returns the level of the pool inside a pool tree, Root being 0.
|
setCurrentId | public void setCurrentId(Long id)(Code) | | Parameters: id - |
setPropertyMethods | public void setPropertyMethods(String[] methods)(Code) | | This takes in an array of method names used to get the properties.
These are used to return a collection of String properties that
can then be displayed in a javascript tree. This does not
have to be implemented -- it will be a dummy method for most
trees.
i.e.
String[] methods = new String[3];
methods[0] = "getName";
methods[1] = "getNumberOfSubpools";
methods[2] = "getDescription";
Which might produce:
{ "Biology 101", "3", "Basic Biology Questions" }
when getCurrentObjectProperties() is called.
|
setSortProperty | public void setSortProperty(String sortBy)(Code) | | This sets the property by which siblings will be sorted.
|
sortByProperty | public void sortByProperty(String sortProperty, boolean sortAscending)(Code) | | This sorts the tree by the property .
|
|
|