Package org.olat.core.gui.components.tree

Examples of org.olat.core.gui.components.tree.GenericTreeNode.addChild()


    gtnChild = new GenericTreeNode();   
    gtnChild.setTitle(translator.translate("menu.created.lastmonth"));
    gtnChild.setUserObject("created.lastmonth");
    gtnChild.setAltText(translator.translate("menu.created.lastmonth.alt"));
    gtn3.addChild(gtnChild);

    gtnChild = new GenericTreeNode();   
    gtnChild.setTitle(translator.translate("menu.created.sixmonth"));
    gtnChild.setUserObject("created.sixmonth");
    gtnChild.setAltText(translator.translate("menu.created.sixmonth.alt"));
View Full Code Here


    gtnChild = new GenericTreeNode();   
    gtnChild.setTitle(translator.translate("menu.created.sixmonth"));
    gtnChild.setUserObject("created.sixmonth");
    gtnChild.setAltText(translator.translate("menu.created.sixmonth.alt"));
    gtn3.addChild(gtnChild);
   
    gtnChild = new GenericTreeNode();   
    gtnChild.setTitle(translator.translate("menu.created.newUsersNotification"));
    gtnChild.setUserObject("created.newUsersNotification");
    gtnChild.setAltText(translator.translate("menu.created.newUsersNotification.alt"));
View Full Code Here

   
    gtnChild = new GenericTreeNode();   
    gtnChild.setTitle(translator.translate("menu.created.newUsersNotification"));
    gtnChild.setUserObject("created.newUsersNotification");
    gtnChild.setAltText(translator.translate("menu.created.newUsersNotification.alt"));
    gtn3.addChild(gtnChild);

    //add extension menues as child items
    ExtManager extm = ExtManager.getInstance();
    int cnt = extm.getExtensionCnt();
    for (int i = 0; i < cnt; i++) {
View Full Code Here

        gtnChild = new GenericTreeNode();
        String menuText = ae.getActionText(getLocale());
        gtnChild.setTitle(menuText);
        gtnChild.setUserObject(ae);
        gtnChild.setAltText(ae.getDescription(getLocale()));
        gtn3.addChild(gtnChild);
        // inform only once
        if (!extensionLogged) {
          logInfo("added menu entry for locale " + getLocale().toString() + " '" + menuText + "'", null);
        }
      }
View Full Code Here

    gtn = new GenericTreeNode();
    gtn.setTitle(translate("menu.homepage"));
    gtn.setUserObject(CMD_HOMEPAGE);
    gtn.setAltText(translate("menu.homepage.alt"));
    root.addChild(gtn);

    if ( !chosenIdentity.getStatus().equals(Identity.STATUS_DELETED) ) {
      gtn = new GenericTreeNode();
      gtn.setTitle(translate("menu.calendar"));
      gtn.setUserObject(CMD_CALENDAR);
View Full Code Here

    if ( !chosenIdentity.getStatus().equals(Identity.STATUS_DELETED) ) {
      gtn = new GenericTreeNode();
      gtn.setTitle(translate("menu.calendar"));
      gtn.setUserObject(CMD_CALENDAR);
      gtn.setAltText(translate("menu.calendar.alt"));
      root.addChild(gtn);
 
      gtn = new GenericTreeNode();
      gtn.setTitle(translate("menu.folder"));
      gtn.setUserObject(CMD_FOLDER);
      gtn.setAltText(translate("menu.folder.alt"));
View Full Code Here

 
      gtn = new GenericTreeNode();
      gtn.setTitle(translate("menu.folder"));
      gtn.setUserObject(CMD_FOLDER);
      gtn.setAltText(translate("menu.folder.alt"));
      root.addChild(gtn);
 
      gtn = new GenericTreeNode();
      gtn.setTitle(translate("menu.contact"));
      gtn.setUserObject(CMD_CONTACT);
      gtn.setAltText(translate("menu.contact.alt"));
View Full Code Here

 
      gtn = new GenericTreeNode();
      gtn.setTitle(translate("menu.contact"));
      gtn.setUserObject(CMD_CONTACT);
      gtn.setAltText(translate("menu.contact.alt"));
      root.addChild(gtn);
     
      //TODO:gs only show weblog if user wants this and a weblog exists
      //not yet active
//      gtn = new GenericTreeNode();
//      gtn.setTitle(translate("menu.weblog"));
View Full Code Here

    treeNode.setTitle(courseNode.getShortTitle());
    treeNode.setIconCssClass(CourseNodeFactory.getInstance().getCourseNodeConfiguration(courseNode.getType()).getIconCSSClass());
    // go through all children and add them as converted tree nodes
    for (int i = 0; i < courseNode.getChildCount(); i++) {
      CourseNode child = (CourseNode) courseNode.getChildAt(i);
      treeNode.addChild(convertToTreeNode(child));
    }
    return treeNode;
  }

  /**
 
View Full Code Here

    node.setAltText(courseNode.getLongTitle());
    node.setIdent(courseNode.getIdent());
    node.setIconCssClass("o_" + courseNode.getType() + "_icon");
    for (int i = 0; i < courseNode.getChildCount(); i++) {
      CourseNode childNode = (CourseNode)courseNode.getChildAt(i);
      node.addChild(buildTree(childNode));
    }
    return node;
  }
 
}
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.