Search in sources :

Example 6 with ImageFormItem

use of org.olat.core.gui.components.image.ImageFormItem in project openolat by klemens.

the class FileElementImpl method setPreview.

@Override
public void setPreview(UserSession usess, boolean enable) {
    if (enable) {
        previewEl = new ImageFormItem(usess, this.getName() + "_PREVIEW");
        previewEl.setRootForm(getRootForm());
    } else {
        previewEl = null;
    }
}
Also used : ImageFormItem(org.olat.core.gui.components.image.ImageFormItem)

Aggregations

ImageFormItem (org.olat.core.gui.components.image.ImageFormItem)6 File (java.io.File)4 NameValuePair (org.olat.core.gui.components.form.flexible.impl.NameValuePair)2 Translator (org.olat.core.gui.translator.Translator)2 Media (org.olat.modules.portfolio.Media)2