Search in sources :

Example 1 with SingleSelectionImpl

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

the class FormUIFactory method addRadiosVertical.

/**
 * Add vertical aligned radio buttons<br>
 *
 * @param name
 * @param i18nLabel
 * @param formLayout
 * @param theKeys
 * @param theValues
 * @return
 */
public SingleSelection addRadiosVertical(final String name, final String i18nLabel, FormItemContainer formLayout, final String[] theKeys, final String[] theValues) {
    SingleSelection ss = new SingleSelectionImpl(name, name, SingleSelection.Layout.vertical);
    ss.setKeysAndValues(theKeys, theValues, null);
    setLabelIfNotNull(i18nLabel, ss);
    formLayout.add(ss);
    return ss;
}
Also used : SingleSelection(org.olat.core.gui.components.form.flexible.elements.SingleSelection) SingleSelectionImpl(org.olat.core.gui.components.form.flexible.impl.elements.SingleSelectionImpl)

Example 2 with SingleSelectionImpl

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

the class FormUIFactory method addRadiosVertical.

/**
 * Add vertical aligned radio buttons<br>
 *
 * @param name
 * @param i18nLabel
 * @param formLayout
 * @param theKeys
 * @param theValues
 * @return
 */
public SingleSelection addRadiosVertical(final String name, final String i18nLabel, FormItemContainer formLayout, final String[] theKeys, final String[] theValues) {
    SingleSelection ss = new SingleSelectionImpl(name, name, SingleSelection.Layout.vertical);
    ss.setKeysAndValues(theKeys, theValues, null);
    setLabelIfNotNull(i18nLabel, ss);
    formLayout.add(ss);
    return ss;
}
Also used : SingleSelection(org.olat.core.gui.components.form.flexible.elements.SingleSelection) SingleSelectionImpl(org.olat.core.gui.components.form.flexible.impl.elements.SingleSelectionImpl)

Example 3 with SingleSelectionImpl

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

the class FormUIFactory method addRadiosHorizontal.

/**
 * Add horizontal aligned radio buttons. <br>
 *
 * @param name
 * @param i18nLabel
 * @param formLayout
 * @param theKeys
 * @param theValues
 * @return
 */
public SingleSelection addRadiosHorizontal(final String name, final String i18nLabel, FormItemContainer formLayout, final String[] theKeys, final String[] theValues) {
    SingleSelection ss = new SingleSelectionImpl(name, name, SingleSelection.Layout.horizontal);
    ss.setKeysAndValues(theKeys, theValues, null);
    setLabelIfNotNull(i18nLabel, ss);
    formLayout.add(ss);
    return ss;
}
Also used : SingleSelection(org.olat.core.gui.components.form.flexible.elements.SingleSelection) SingleSelectionImpl(org.olat.core.gui.components.form.flexible.impl.elements.SingleSelectionImpl)

Example 4 with SingleSelectionImpl

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

the class FormUIFactory method addRadiosHorizontal.

/**
 * Add horizontal aligned radio buttons. <br>
 *
 * @param name
 * @param i18nLabel
 * @param formLayout
 * @param theKeys
 * @param theValues
 * @return
 */
public SingleSelection addRadiosHorizontal(final String name, final String i18nLabel, FormItemContainer formLayout, final String[] theKeys, final String[] theValues) {
    SingleSelection ss = new SingleSelectionImpl(name, name, SingleSelection.Layout.horizontal);
    ss.setKeysAndValues(theKeys, theValues, null);
    setLabelIfNotNull(i18nLabel, ss);
    formLayout.add(ss);
    return ss;
}
Also used : SingleSelection(org.olat.core.gui.components.form.flexible.elements.SingleSelection) SingleSelectionImpl(org.olat.core.gui.components.form.flexible.impl.elements.SingleSelectionImpl)

Aggregations

SingleSelection (org.olat.core.gui.components.form.flexible.elements.SingleSelection)4 SingleSelectionImpl (org.olat.core.gui.components.form.flexible.impl.elements.SingleSelectionImpl)4