Search in sources :

Example 1 with MultiSelectionTreeImpl

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

the class FormUIFactory method addTreeMultiselect.

/**
 * Create a multiple selection element as a tree.
 * @param name
 * @param i18nLabel Can be null
 * @param formLayout
 * @param treemodel
 * @param selectableFilter
 * @return
 */
public MultipleSelectionElement addTreeMultiselect(String name, String i18nLabel, FormItemContainer formLayout, TreeModel treemodel, INodeFilter selectableFilter) {
    MultipleSelectionElement mse = new MultiSelectionTreeImpl(name, treemodel, selectableFilter);
    setLabelIfNotNull(i18nLabel, mse);
    formLayout.add(mse);
    return mse;
}
Also used : MultipleSelectionElement(org.olat.core.gui.components.form.flexible.elements.MultipleSelectionElement) MultiSelectionTreeImpl(org.olat.core.gui.components.form.flexible.impl.elements.MultiSelectionTreeImpl)

Example 2 with MultiSelectionTreeImpl

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

the class FormUIFactory method addTreeMultiselect.

/**
 * Create a multiple selection element as a tree.
 * @param name
 * @param i18nLabel Can be null
 * @param formLayout
 * @param treemodel
 * @param selectableFilter
 * @return
 */
public MultipleSelectionElement addTreeMultiselect(String name, String i18nLabel, FormItemContainer formLayout, TreeModel treemodel, INodeFilter selectableFilter) {
    MultipleSelectionElement mse = new MultiSelectionTreeImpl(name, treemodel, selectableFilter);
    setLabelIfNotNull(i18nLabel, mse);
    formLayout.add(mse);
    return mse;
}
Also used : MultipleSelectionElement(org.olat.core.gui.components.form.flexible.elements.MultipleSelectionElement) MultiSelectionTreeImpl(org.olat.core.gui.components.form.flexible.impl.elements.MultiSelectionTreeImpl)

Aggregations

MultipleSelectionElement (org.olat.core.gui.components.form.flexible.elements.MultipleSelectionElement)2 MultiSelectionTreeImpl (org.olat.core.gui.components.form.flexible.impl.elements.MultiSelectionTreeImpl)2