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);
}
}
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);
}
Aggregations