Search in sources :

Example 1 with FileUploadController

use of org.olat.modules.forms.ui.FileUploadController in project OpenOLAT by OpenOLAT.

the class FileUploadHandler method getContent.

@Override
public PageRunElement getContent(UserRequest ureq, WindowControl wControl, PageElement element, PageElementRenderingHints hints) {
    if (element instanceof FileUpload) {
        FileUpload fileUpload = (FileUpload) element;
        Controller ctrl = new FileUploadController(ureq, wControl, fileUpload);
        return new PageRunControllerElement(ctrl);
    }
    return null;
}
Also used : PageRunControllerElement(org.olat.modules.portfolio.ui.editor.PageRunControllerElement) FileUploadController(org.olat.modules.forms.ui.FileUploadController) FileUploadEditorController(org.olat.modules.forms.ui.FileUploadEditorController) Controller(org.olat.core.gui.control.Controller) PageElementEditorController(org.olat.modules.portfolio.ui.editor.PageElementEditorController) FileUpload(org.olat.modules.forms.model.xml.FileUpload) FileUploadController(org.olat.modules.forms.ui.FileUploadController)

Example 2 with FileUploadController

use of org.olat.modules.forms.ui.FileUploadController in project openolat by klemens.

the class FileUploadHandler method getContent.

@Override
public PageRunElement getContent(UserRequest ureq, WindowControl wControl, PageElement element, PageElementRenderingHints hints) {
    if (element instanceof FileUpload) {
        FileUpload fileUpload = (FileUpload) element;
        Controller ctrl = new FileUploadController(ureq, wControl, fileUpload);
        return new PageRunControllerElement(ctrl);
    }
    return null;
}
Also used : PageRunControllerElement(org.olat.modules.portfolio.ui.editor.PageRunControllerElement) FileUploadController(org.olat.modules.forms.ui.FileUploadController) FileUploadEditorController(org.olat.modules.forms.ui.FileUploadEditorController) Controller(org.olat.core.gui.control.Controller) PageElementEditorController(org.olat.modules.portfolio.ui.editor.PageElementEditorController) FileUpload(org.olat.modules.forms.model.xml.FileUpload) FileUploadController(org.olat.modules.forms.ui.FileUploadController)

Aggregations

Controller (org.olat.core.gui.control.Controller)2 FileUpload (org.olat.modules.forms.model.xml.FileUpload)2 FileUploadController (org.olat.modules.forms.ui.FileUploadController)2 FileUploadEditorController (org.olat.modules.forms.ui.FileUploadEditorController)2 PageElementEditorController (org.olat.modules.portfolio.ui.editor.PageElementEditorController)2 PageRunControllerElement (org.olat.modules.portfolio.ui.editor.PageRunControllerElement)2