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

Examples of org.olat.core.gui.components.tree.SelectionTree


      // choose and cancel link
      chooseLink = LinkFactory.createButton("selectfile", mainVC, this);
      cancelLink = LinkFactory.createButton("cancel", mainVC, this);
    } else {
      // Legacy mode with old selection component
      jumpInSelectionTree = new SelectionTree("internalLinkTree", trans);
      jumpInSelectionTree.setTreeModel(customLinkTreeModel);
      jumpInSelectionTree.addListener(this);
      jumpInSelectionTree.setFormButtonKey("select");
      mainVC.put("internalLinkTree", jumpInSelectionTree);
    }
View Full Code Here


      //
      putInitialPanel(contentVC);
    } else {
      // fallback to old-school selection tree
      nonAjaxfolderTreeModel = new FolderTreeModel(ureq.getLocale(), rootContainer,  false, true, !onlyLeafsSelectable, false, customItemFilter);
      nonAjaxSelectionTree = new SelectionTree("stTree", getTranslator());
      nonAjaxSelectionTree.setTreeModel(nonAjaxfolderTreeModel);
      nonAjaxSelectionTree.addListener(this);
      nonAjaxSelectionTree.setFormButtonKey("select");
      //
      putInitialPanel(nonAjaxSelectionTree);
View Full Code Here

    folderComponent.addListener(this);
    folderContainer.put("foldercomp", folderComponent);
    if (WebDAVManager.getInstance().isEnabled() && displayWebDAVLink)
      folderContainer.contextPut("webdavlink", FolderManager.getWebDAVLink());

    selTree = new SelectionTree("seltree", getTranslator());
    selTree.addListener(this);
    folderContainer.put("seltree", selTree);

    // jump to either the forum or the folder if the business-launch-path says so.
    ContextEntry ce = bc.popLauncherContextEntry();
View Full Code Here

    //check if command is executed on a file list containing invalid filenames or paths
    if(fileSelection.getInvalidFileNames().size()>0) {   
      main.contextPut("invalidFileNames", fileSelection.getInvalidFileNames());
    }   

    selTree = new SelectionTree("seltree", trans);
    selTree.setFormButtonKey(move ? "move" : "copy");
    selTree.setActionCommand(COMMAND_PROCESS_MOVE);
    FolderTreeModel ftm = new FolderTreeModel(ureq.getLocale(), fc.getRootContainer(),
        true, false, true, fc.getRootContainer().canWrite() == VFSConstants.YES, null);
    selTree.setTreeModel(ftm);
View Full Code Here

    ICourse course = CourseFactory.getCourseEditSession(ores.getResourceableId());
    addLoggingResourceable(LoggingResourceable.wrap(course));
    addLoggingResourceable(LoggingResourceable.wrap(moveCopyFrom.getCourseNode()));

    insertTree = new SelectionTree("copy_node_selection", getTranslator());
    insertTree.setFormButtonKey("insertAtSelectedTreepos");
    insertTree.addListener(this);
    insertModel = new InsertTreeModel(course.getEditorTreeModel());
    insertTree.setTreeModel(insertModel);   
   
View Full Code Here

    this.moveMe = moveMe;
    List<CatalogEntry> ownedEntries = getOwnedEntries(ureq);
    List<CatalogEntry> catEntryList = fetchChildren(ownedEntries);

    mainVC = createVelocityContainer("catMove");
    selectionTree = new SelectionTree("catSelection", trans);
    selectionTree.addListener(this);
    selectionTree.setMultiselect(false);
    selectionTree.setFormButtonKey("cat.move.submit");
    selectionTree.setShowCancelButton(true);
    selectionTree.setTreeModel(new CatalogTreeModel(catEntryList, moveMe, ownedEntries));
View Full Code Here

    super(ureq, wControl);
    this.toBeAddedEntry = toBeAddedEntry;
    List<CatalogEntry> catEntryList = CatalogManager.getInstance().getAllCatalogNodes();

    mainVC = createVelocityContainer("catMove");
    selectionTree = new SelectionTree("catSelection", getTranslator());
    selectionTree.addListener(this);
    selectionTree.setMultiselect(false);
    selectionTree.setFormButtonKey("cat.move.submit");
    selectionTree.setShowCancelButton(true);
    selectionTree.setTreeModel(new CatalogTreeModel(catEntryList, null, null));
View Full Code Here

 
  public void event(UserRequest ureq, Component source, Event event) {
    if (source == searchForm) {
      mainVC.contextPut("displayBackLink", Boolean.TRUE);
      if (event == Form.EVNT_VALIDATION_OK) {
        eventSelectionTree = new SelectionTree("eventSelection", getTranslator());
        eventSelectionTree.addListener(this);
        eventSelectionTree.setFormButtonKey("cal.goto.event");
        eventSelectionTree.setShowCancelButton(true);
        eventSelectionTree.setMultiselect(false);
        eventSelectionTree.setShowAltTextAsHoverOnTitle(true);
View Full Code Here

        getWindowControl().setInfo(translate(NLS_PUBLISHED_LATEST, Formatter.getInstance(ureq.getLocale()).formatDateAndTime(d)));
      }
      menuTree.setTreeModel(cetm);
      menuTree.addListener(this);

      selTree = new SelectionTree("selection", getTranslator());
      selTree.setTreeModel(cetm);
      selTree.setActionCommand("processpublish");
      selTree.setFormButtonKey("publizieren");
      selTree.addListener(this);
View Full Code Here

  public InsertNodeController(UserRequest ureq, WindowControl wControl, OLATResourceable ores, String type) {
    super(ureq, wControl);
    this.ores = ores;
    this.type = type;

    insertTree = new SelectionTree("insert_new_node_selection", getTranslator());
    insertTree.setFormButtonKey("insertAtSelectedTreepos");
    insertTree.addListener(this);
    ICourse course = CourseFactory.getCourseEditSession(ores.getResourceableId());
    insertModel = new InsertTreeModel(course.getEditorTreeModel());
    insertTree.setTreeModel(insertModel);   
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.tree.SelectionTree

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.