Examples of INode


Examples of org.olat.core.util.nodes.INode

    if (row>=orderedNodesList_.size()) {
      throw new IllegalStateException("row count too big: "+row+", only having "+orderedNodesList_.size()+" elements");
    }
    CourseNode node = orderedNodesList_.get(row);
    int recursionLevel = 0;
    INode parent = node.getParent();
    while(parent!=null) {
      recursionLevel++;
      parent = parent.getParent();
    }
   
    // Store node data in hash map. This hash map serves as data model for
    // the user assessment overview table. Leave user data empty since not used in
    // this table. (use only node data)
View Full Code Here

Examples of org.olat.core.util.nodes.INode

   * @return <code>true</code> if all course node configurations are valid,
   *         <code>false</code> if at least one course node has a config
   *         error.
   */
  private boolean isAllParentsConfigValid(CourseEditorTreeNode child) {
    INode parent = child.getParent();
    if(parent==null) {
      return !child.getCourseNode().isConfigValid().isError();
    }else {
      boolean myConfigIsValid = !child.getCourseNode().isConfigValid().isError();
      if(myConfigIsValid) {
View Full Code Here

Examples of org.olat.core.util.nodes.INode

    List<AjaxTreeNode> childAjaxTreeNodes = new ArrayList<AjaxTreeNode>();
    TreeNode treeNode = findNode(nodeId, getRootNode());
    // Now build the ajax tree nodes for each child
    int childCount = treeNode.getChildCount();
    for (int i = 0; i < childCount; i++) {
      INode childNode = treeNode.getChildAt(i);
      AjaxTreeNode childAjaxNode = buildAjaxTreeNode((TreeNode) childNode);
      childAjaxTreeNodes.add(childAjaxNode);
    }
    return childAjaxTreeNodes;   
  }
View Full Code Here

Examples of org.olat.core.util.nodes.INode

      return false;
    } else if (currentRunStructure.getNode(cetn.getCourseNode().getIdent()) == null) {
      // No course node in runstructure
      return true;
    } else {
      INode node = currentRunStructure.getNode(cetn.getCourseNode().getIdent());
      String runPath = getPositionPathFor(node);
      String editorPath = getPositionPathFor(cetn);
      return (!(runPath.equals(editorPath))) && cetn.isDirty(); // TODO: pb: Review : cetn.isDirty() added by chg to FIX OLAT-1662
    }
  }
View Full Code Here

Examples of org.olat.core.util.nodes.INode

    }
  }

  private String getPositionPathFor(INode node) {
    String path = "";
    INode parent = node.getParent();
    if (parent == null) {
      path = "__root__";
    }
    while (parent!= null) {
      path += parent.getIdent() + ":" + node.getPosition() + "]";
      parent = parent.getParent();
    }
    return path;
  }
View Full Code Here

Examples of thaumcraft.api.nodes.INode

            }
        } else {
            infoList.add(I18n.format("blockTracker.info.thaumcraft") + " -");
        }
        if(container instanceof INode) {
            INode node = (INode)container;
            infoList.add(I18n.format("blockTracker.info.thaumcraft.nodetype") + " " + I18n.format("nodetype." + node.getNodeType() + ".name"));
            if(node.getNodeModifier() != null) infoList.add(I18n.format("blockTracker.info.thaumcraft.nodeModifier") + " " + I18n.format("nodemod." + node.getNodeModifier() + ".name"));
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.