Package org.olat.core.gui.control.generic.folder

Examples of org.olat.core.gui.control.generic.folder.FolderTreeModel


      selectLink.setEnabled(false);
      //
      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");
      //
View Full Code Here


    }   

    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);

    selTree.addListener(this);
    main.put(selTree);
View Full Code Here

  public void event(UserRequest ureq, Component source, Event event) {
    if (source == selTree) {
      if (event.getCommand().equals(COMMAND_PROCESS_MOVE)) {
        // ok, do the move
        FolderTreeModel ftm = (FolderTreeModel) selTree.getTreeModel();
        String selectedPath = ftm.getSelectedPath(selTree.getSelectedNode());
        if (selectedPath == null) {
          abortFailed(ureq, "failed");
          return;
        }
        VFSStatus vfsStatus = VFSConstants.SUCCESS;
View Full Code Here

TOP

Related Classes of org.olat.core.gui.control.generic.folder.FolderTreeModel

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.