Search in sources :

Example 6 with TextBoxListElement

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

the class EPTagViewController method initForm.

@Override
protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
    setFormDescription("tags.view.header");
    Map<String, String> tagsMap = new HashMap<>();
    for (String tag : tags) {
        tagsMap.put(tag, tag);
    }
    TextBoxListElement tagListElement = uifactory.addTextBoxListElement("artefact.tags", null, "tag.input.hint", tagsMap, formLayout, getTranslator());
    tagListElement.setEnabled(false);
}
Also used : HashMap(java.util.HashMap) TextBoxListElement(org.olat.core.gui.components.form.flexible.elements.TextBoxListElement)

Aggregations

TextBoxListElement (org.olat.core.gui.components.form.flexible.elements.TextBoxListElement)6 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 HashSet (java.util.HashSet)2 List (java.util.List)2 Map (java.util.Map)2 Set (java.util.Set)2 Collectors (java.util.stream.Collectors)2 NewControllerFactory (org.olat.NewControllerFactory)2 UserRequest (org.olat.core.gui.UserRequest)2 Component (org.olat.core.gui.components.Component)2 FormItem (org.olat.core.gui.components.form.flexible.FormItem)2 FormItemContainer (org.olat.core.gui.components.form.flexible.FormItemContainer)2 FormLink (org.olat.core.gui.components.form.flexible.elements.FormLink)2 FormBasicController (org.olat.core.gui.components.form.flexible.impl.FormBasicController)2 FormEvent (org.olat.core.gui.components.form.flexible.impl.FormEvent)2 FormLayoutContainer (org.olat.core.gui.components.form.flexible.impl.FormLayoutContainer)2 Link (org.olat.core.gui.components.link.Link)2 LinkFactory (org.olat.core.gui.components.link.LinkFactory)2 TooledController (org.olat.core.gui.components.stack.TooledController)2