Search in sources :

Example 1 with FileElementImpl

use of org.olat.core.gui.components.form.flexible.impl.elements.FileElementImpl in project OpenOLAT by OpenOLAT.

the class FormUIFactory method addFileElement.

/**
 * Add a file upload element
 * @param name
 * @param i18nKey
 * @param formLayout
 * @return
 */
public FileElement addFileElement(WindowControl wControl, String name, String i18nLabel, FormItemContainer formLayout) {
    FileElement fileElement = new FileElementImpl(wControl, name);
    setLabelIfNotNull(i18nLabel, fileElement);
    formLayout.add(fileElement);
    return fileElement;
}
Also used : FileElementImpl(org.olat.core.gui.components.form.flexible.impl.elements.FileElementImpl) FileElement(org.olat.core.gui.components.form.flexible.elements.FileElement)

Example 2 with FileElementImpl

use of org.olat.core.gui.components.form.flexible.impl.elements.FileElementImpl in project openolat by klemens.

the class FormUIFactory method addFileElement.

/**
 * Add a file upload element
 * @param name
 * @param i18nKey
 * @param formLayout
 * @return
 */
public FileElement addFileElement(WindowControl wControl, String name, String i18nLabel, FormItemContainer formLayout) {
    FileElement fileElement = new FileElementImpl(wControl, name);
    setLabelIfNotNull(i18nLabel, fileElement);
    formLayout.add(fileElement);
    return fileElement;
}
Also used : FileElementImpl(org.olat.core.gui.components.form.flexible.impl.elements.FileElementImpl) FileElement(org.olat.core.gui.components.form.flexible.elements.FileElement)

Aggregations

FileElement (org.olat.core.gui.components.form.flexible.elements.FileElement)2 FileElementImpl (org.olat.core.gui.components.form.flexible.impl.elements.FileElementImpl)2