Package org.olat.core.gui.media

Examples of org.olat.core.gui.media.MimedFileMediaResource


  @Override
  protected void event(UserRequest ureq, Component source, Event event) {
    if (source == showFileButton){
      File exportFile = new File(exportDir, targetFileName);
      MediaResource resource = new MimedFileMediaResource(exportFile, "application/vnd.ms-excel; charset="+charset, true);
      ureq.getDispatchResult().setResultingMediaResource(resource);
      showFileButton.setDirty(false);
    }
  }
View Full Code Here

TOP

Related Classes of org.olat.core.gui.media.MimedFileMediaResource

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.