Search in sources :

Example 6 with TaxonomyModel

use of org.olat.modules.taxonomy.model.TaxonomyModel in project OpenOLAT by OpenOLAT.

the class TaxonomyAllTreesBuilder method buildTreeModel.

public TaxonomyModel buildTreeModel() {
    TaxonomyModel taxonomyTreesModel = new TaxonomyModel();
    loadTreeModel(taxonomyTreesModel);
    return taxonomyTreesModel;
}
Also used : TaxonomyModel(org.olat.modules.taxonomy.model.TaxonomyModel)

Example 7 with TaxonomyModel

use of org.olat.modules.taxonomy.model.TaxonomyModel in project OpenOLAT by OpenOLAT.

the class TaxonomyAllTreesBuilder method buildTreeModel.

public TaxonomyModel buildTreeModel(Taxonomy taxonomy) {
    TaxonomyModel taxonomyTreesModel = new TaxonomyModel();
    loadTreeModel(taxonomyTreesModel, taxonomy);
    return taxonomyTreesModel;
}
Also used : TaxonomyModel(org.olat.modules.taxonomy.model.TaxonomyModel)

Example 8 with TaxonomyModel

use of org.olat.modules.taxonomy.model.TaxonomyModel in project openolat by klemens.

the class MoveTaxonomyLevelController method initForm.

@Override
protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
    taxonomyModel = new TaxonomyModel();
    taxonomyEl = uifactory.addTreeMultiselect("taxonomy", null, formLayout, taxonomyModel, this);
    taxonomyEl.setMultiSelect(false);
    taxonomyEl.setRootVisible(true);
    uifactory.addFormCancelButton("cancel", formLayout, ureq, getWindowControl());
    uifactory.addFormSubmitButton("move.taxonomy.level", formLayout);
}
Also used : TaxonomyModel(org.olat.modules.taxonomy.model.TaxonomyModel)

Aggregations

TaxonomyModel (org.olat.modules.taxonomy.model.TaxonomyModel)8 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 UserRequest (org.olat.core.gui.UserRequest)2 FormItemContainer (org.olat.core.gui.components.form.flexible.FormItemContainer)2 FormBasicController (org.olat.core.gui.components.form.flexible.impl.FormBasicController)2 GenericTreeNode (org.olat.core.gui.components.tree.GenericTreeNode)2 MenuTreeItem (org.olat.core.gui.components.tree.MenuTreeItem)2 TreeNode (org.olat.core.gui.components.tree.TreeNode)2 Controller (org.olat.core.gui.control.Controller)2 Event (org.olat.core.gui.control.Event)2 WindowControl (org.olat.core.gui.control.WindowControl)2 INode (org.olat.core.util.nodes.INode)2 Taxonomy (org.olat.modules.taxonomy.Taxonomy)2 TaxonomyLevel (org.olat.modules.taxonomy.TaxonomyLevel)2