Search in sources :

Example 1 with StaticTextElementImpl

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

the class FormUIFactory method addStaticTextElement.

/**
 * Add a static text.
 * @param name
 * @param i18nLabel
 * @param translatedText
 * @param formLayout
 * @return
 */
public StaticTextElement addStaticTextElement(String name, String i18nLabel, String translatedText, FormItemContainer formLayout) {
    StaticTextElement ste = new StaticTextElementImpl(name, translatedText == null ? "" : translatedText);
    setLabelIfNotNull(i18nLabel, ste);
    formLayout.add(ste);
    return ste;
}
Also used : StaticTextElementImpl(org.olat.core.gui.components.form.flexible.impl.elements.StaticTextElementImpl) StaticTextElement(org.olat.core.gui.components.form.flexible.elements.StaticTextElement)

Example 2 with StaticTextElementImpl

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

the class FormUIFactory method addStaticTextElement.

/**
 * Add a static text.
 * @param name
 * @param i18nLabel
 * @param translatedText
 * @param formLayout
 * @return
 */
public StaticTextElement addStaticTextElement(String name, String i18nLabel, String translatedText, FormItemContainer formLayout) {
    StaticTextElement ste = new StaticTextElementImpl(name, translatedText == null ? "" : translatedText);
    setLabelIfNotNull(i18nLabel, ste);
    formLayout.add(ste);
    return ste;
}
Also used : StaticTextElementImpl(org.olat.core.gui.components.form.flexible.impl.elements.StaticTextElementImpl) StaticTextElement(org.olat.core.gui.components.form.flexible.elements.StaticTextElement)

Aggregations

StaticTextElement (org.olat.core.gui.components.form.flexible.elements.StaticTextElement)2 StaticTextElementImpl (org.olat.core.gui.components.form.flexible.impl.elements.StaticTextElementImpl)2