Package org.olat.core.gui.control.generic.ajax.tree

Examples of org.olat.core.gui.control.generic.ajax.tree.TreeController


    this.customLinkTreeModel = customLinkTreeModel;
    boolean ajax = getWindowControl().getWindowBackOffice().getWindowManager().isAjaxEnabled();
    if (ajax) {
      // For real browsers we use the cool ajax tree
      ajaxTreeController = new TreeController(ureq, getWindowControl(), customLinkTreeModel.getRootNode().getTitle(), customLinkTreeModel, null);
      ajaxTreeController.addControllerListener(this);
      mainVC.put("internalLinkTree", ajaxTreeController.getInitialComponent());
      // choose and cancel link
      chooseLink = LinkFactory.createButton("selectfile", mainVC, this);
      cancelLink = LinkFactory.createButton("cancel", mainVC, this);
View Full Code Here


      // Main view is a velocity container
      contentVC = createVelocityContainer("filechooserajax");
      // Build tree model
      treeModel = new VFSAjaxTreeModel(rootContainer, customItemFilter);
      // Create the ajax tree controller, add it to your main view
      treeCtr = new TreeController(ureq, getWindowControl(), rootContainer.getName(), treeModel, null);
      listenTo(treeCtr);
      contentVC.put("treeCtr", treeCtr.getInitialComponent());
      // cancel and select links
      cancelLink = LinkFactory.createButton("cancel", contentVC, this);
      // select link is disabled until an item is selected
View Full Code Here

    CatalogEntry rootce = (CatalogEntry) cm.getRootCatalogEntries().get(0);
    // Build tree model
    treeModel = new CatalogAjaxTreeModel(rootce, toBeMovedEntry, ownedEntries, false, false);
   
    // Create the ajax tree controller, add it to your main view
    treeCtr = new TreeController(ureq, getWindowControl(), rootce.getName(), treeModel, null);
    listenTo(treeCtr);
    contentVC.put("treeCtr", treeCtr.getInitialComponent());
   
    cancelLink = LinkFactory.createButton("cancel", contentVC, this);
    // select link is disabled until an item is selected
View Full Code Here

    CatalogEntry rootce = (CatalogEntry) cm.getRootCatalogEntries().get(0);
    // Build tree model
    treeModel = new CatalogAjaxTreeModel(rootce, null, null, false, false);
   
    // Create the ajax tree controller, add it to your main view
    treeCtr = new TreeController(ureq, getWindowControl(), rootce.getName(), treeModel, null);
    listenTo(treeCtr);
    contentVC.put("treeCtr", treeCtr.getInitialComponent());

    cancelLink = LinkFactory.createButton("cancel", contentVC, this);
    // select link is disabled until an item is selected
View Full Code Here

    this.cp = cp;

    String rootTitle = cp.getFirstOrganizationInManifest().getTitle();
    CPManager cpMgm = CPManager.getInstance();
    treeModel = cpMgm.getTreeDataModel(cp);
    treeCtr = new TreeController(ureq, control, rootTitle, treeModel, null);
    treeCtr.setTreeInlineEditing(true, null, null);

    // do not sort jsTree (structure is given by manifest)
    treeCtr.setTreeSorting(false, false, false);
    listenTo(treeCtr);
View Full Code Here

    // Build tree model
    treeModel = buildTreeModel();
   
    // Create the ajax tree controller, add it to your main view
    treeCtr = new TreeController(ureq, getWindowControl(), "Time machine", treeModel, "myjsCallback");
    treeCtr.setTreeSorting(false, false, false);
    listenTo(treeCtr);
    contentVC.put("treeCtr", treeCtr.getInitialComponent());
    // Add link for sorting
    sortLink = LinkFactory.createButton("GuiDemoAjaxTreeController.sortlink", contentVC, this);
View Full Code Here

TOP

Related Classes of org.olat.core.gui.control.generic.ajax.tree.TreeController

Copyright © 2018 www.massapicom. 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.