Package org.olat.commons.file.filechooser

Examples of org.olat.commons.file.filechooser.FileChooserController


    this.addCallback = rac;
    this.limitTypes = lt;
    this.translator = new PackageTranslator(PACKAGE, ureq.getLocale());

    // prepare generic filechoser for add file
    cfc = new FileChooserController(ureq, getWindowControl(), this, (int)QuotaManager.getInstance().getDefaultQuota(QuotaConstants.IDENTIFIER_DEFAULT_REPO).getUlLimitKB()
        .longValue(), false);
    if (suffixFilter != null) {
      VFSItemFileTypeFilter fypeFilter = new VFSItemFileTypeFilter(suffixFilter);
      cfc.setSuffixFilter(fypeFilter);
    }
View Full Code Here


  /**
   * @see org.olat.core.gui.control.DefaultController#event(org.olat.core.gui.UserRequest, org.olat.core.gui.components.Component, org.olat.core.gui.control.Event)
   */
  public void event(UserRequest ureq, Component source, Event event) {
    if (source == ulButton) {
      fileChooserController = new FileChooserController(ureq, getWindowControl(), this, getUploadLimit(ureq) , true);
      cmc = new CloseableModalController(getWindowControl(), translate("close"), fileChooserController.getInitialComponent(), true, "Upload");
      cmc.activate();
    }
  }
View Full Code Here

    this.callback = callback;
    myPanel = new Panel("importPanel");
    myPanel.addListener(this);
   
    // prepare generic filechoser for add file
    cfc = new FileChooserController(ureq, getWindowControl(), this,
      (int)QuotaManager.getInstance().getDefaultQuota(QuotaConstants.IDENTIFIER_DEFAULT_REPO).getUlLimitKB().longValue(), false);
    cfc.setSuffixFilter(zipTypeFilter);
    myPanel.setContent(cfc.getInitialComponent());
    this.putInitialPanel(myPanel);
  }
View Full Code Here

TOP

Related Classes of org.olat.commons.file.filechooser.FileChooserController

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.