|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.gui.control.generic.ajax.tree.AjaxTreeModel
org.olat.ims.cp.CPTreeDataModel
public class CPTreeDataModel
Description:
This is the TreeDataModel which is used for the GUI. (Visual Representation
of the manifest-data-model)
Initial Date: 23.07.2008
| Constructor Summary | |
|---|---|
CPTreeDataModel(java.lang.String orgaIdentifyer,
java.lang.String rootNodeId)
Constructor |
|
| Method Summary | |
|---|---|
java.util.List<AjaxTreeNode> |
getChildrenFor(java.lang.String nodeId)
Returns the list of children for this node. |
java.lang.String |
getIdentifierForNodeID(java.lang.String nodeID)
manifest-node-identifiers are mapped to tree-model-node-id's Returns the corresponding identifier for the given nodeID |
java.lang.String |
getNodeIDForIdentifier(java.lang.String identifier)
manifest-node-identifiers are mapped to tree-model-node-id's Returns the corresponding identifier for the given nodeID |
java.lang.String |
getPath(java.lang.String identifier)
Returns the path of the given item in the tree. |
void |
setContentPackage(ContentPackage cp)
Sets the contentPackage, this model belongs to |
| Methods inherited from class org.olat.core.gui.control.generic.ajax.tree.AjaxTreeModel |
|---|
getCustomRootIconCssClass, getTreeModelIdentifyer, setCustomRootIconCssClass |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CPTreeDataModel(java.lang.String orgaIdentifyer,
java.lang.String rootNodeId)
orgaIdentifyer - The identifier of the organization element of the
imsmanifest file.rootNodeId - The root node id of the ext-js tree. (We use an md5 hash
to make sure it doesn't contain any weird characters.)| Method Detail |
|---|
public void setContentPackage(ContentPackage cp)
cp - public java.lang.String getIdentifierForNodeID(java.lang.String nodeID)
nodeID -
public java.lang.String getNodeIDForIdentifier(java.lang.String identifier)
nodeID -
public java.util.List<AjaxTreeNode> getChildrenFor(java.lang.String nodeId)
AjaxTreeModel
getChildrenFor in class AjaxTreeModelnodeId - The ID of the given node.
public java.lang.String getPath(java.lang.String identifier)
Example: /0/12/3
The empty string signifies the root node.
identifier - The identifier of the page
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||