Search in sources :

Example 11 with DefaultTreeNode

use of org.primefaces.model.DefaultTreeNode in project opentheso by miledrousset.

the class UnderTree method initTree.

/**
 * Récupère les facettes pour remplir la racine de l'arbre selon la langue et le thésaurus sélectionnés
 * @param idTheso
 * @param langue
 */
public void initTree(String idTheso, String langue) {
    List<NodeConceptTree> racineNode = new FacetHelper().getIdParentOfFacet(connect.getPoolConnexion(), idTheso, langue);
    for (NodeConceptTree nct : racineNode) {
        TreeNode dynamicTreeNode = (TreeNode) new MyTreeNode(1, nct.getIdConcept(), idTheso, langue, "", "", "", "dossier", nct.getTitle() + "(" + nct.getIdConcept() + ")", root);
        new DefaultTreeNode("fake", dynamicTreeNode);
    }
}
Also used : NodeConceptTree(mom.trd.opentheso.bdd.helper.nodes.concept.NodeConceptTree) MyTreeNode(mom.trd.opentheso.bdd.helper.nodes.MyTreeNode) TreeNode(org.primefaces.model.TreeNode) DefaultTreeNode(org.primefaces.model.DefaultTreeNode) DefaultTreeNode(org.primefaces.model.DefaultTreeNode) FacetHelper(mom.trd.opentheso.bdd.helper.FacetHelper) MyTreeNode(mom.trd.opentheso.bdd.helper.nodes.MyTreeNode)

Example 12 with DefaultTreeNode

use of org.primefaces.model.DefaultTreeNode in project opentheso by miledrousset.

the class SelectedTerme method majPref.

private void majPref() {
    nodeSe = new NodeSearch();
    images = new ArrayList<>();
    root = (TreeNode) new DefaultTreeNode("Root", null);
}
Also used : DefaultTreeNode(org.primefaces.model.DefaultTreeNode) NodeSearch(mom.trd.opentheso.bdd.helper.nodes.search.NodeSearch)

Aggregations

DefaultTreeNode (org.primefaces.model.DefaultTreeNode)12 TreeNode (org.primefaces.model.TreeNode)8 MyTreeNode (mom.trd.opentheso.bdd.helper.nodes.MyTreeNode)7 ArrayList (java.util.ArrayList)5 GroupHelper (mom.trd.opentheso.bdd.helper.GroupHelper)4 NodeConceptTree (mom.trd.opentheso.bdd.helper.nodes.concept.NodeConceptTree)4 ConceptHelper (mom.trd.opentheso.bdd.helper.ConceptHelper)3 FacetHelper (mom.trd.opentheso.bdd.helper.FacetHelper)2 NodeGroup (mom.trd.opentheso.bdd.helper.nodes.group.NodeGroup)2 NodeSearch (mom.trd.opentheso.bdd.helper.nodes.search.NodeSearch)2 Ledger (eu.ggnet.dwoss.mandator.api.value.Ledger)1 PostConstruct (javax.annotation.PostConstruct)1 FacesMessage (javax.faces.application.FacesMessage)1 Concept (mom.trd.opentheso.bdd.datas.Concept)1 Term (mom.trd.opentheso.bdd.datas.Term)1 OrphanHelper (mom.trd.opentheso.bdd.helper.OrphanHelper)1 TermHelper (mom.trd.opentheso.bdd.helper.TermHelper)1 StructIdBroaderTerm (mom.trd.opentheso.dragdrop.StructIdBroaderTerm)1