Search in sources :

Example 1 with SpacerElementImpl

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

the class FormUIFactory method addSpacerElement.

/**
 * Inserts an HTML horizontal bar (<HR>) element.
 *
 * @param name
 * @param formLayout
 * @return
 */
public SpacerElement addSpacerElement(String name, FormItemContainer formLayout, boolean onlySpaceAndNoLine) {
    SpacerElement spacer = new SpacerElementImpl(name);
    if (onlySpaceAndNoLine) {
        spacer.setSpacerCssClass("o_spacer_noline");
    }
    formLayout.add(spacer);
    return spacer;
}
Also used : SpacerElement(org.olat.core.gui.components.form.flexible.elements.SpacerElement) SpacerElementImpl(org.olat.core.gui.components.form.flexible.impl.elements.SpacerElementImpl)

Example 2 with SpacerElementImpl

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

the class FormUIFactory method addSpacerElement.

/**
 * Inserts an HTML horizontal bar (<HR>) element.
 *
 * @param name
 * @param formLayout
 * @return
 */
public SpacerElement addSpacerElement(String name, FormItemContainer formLayout, boolean onlySpaceAndNoLine) {
    SpacerElement spacer = new SpacerElementImpl(name);
    if (onlySpaceAndNoLine) {
        spacer.setSpacerCssClass("o_spacer_noline");
    }
    formLayout.add(spacer);
    return spacer;
}
Also used : SpacerElement(org.olat.core.gui.components.form.flexible.elements.SpacerElement) SpacerElementImpl(org.olat.core.gui.components.form.flexible.impl.elements.SpacerElementImpl)

Aggregations

SpacerElement (org.olat.core.gui.components.form.flexible.elements.SpacerElement)2 SpacerElementImpl (org.olat.core.gui.components.form.flexible.impl.elements.SpacerElementImpl)2