Subversion Repositories eFlore/Applications.cel

Rev

Rev 2062 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2062 Rev 2148
Line 13... Line 13...
13
	
13
	
14
	//TODO rassembler tout ce qui construit les arbres de mots clés ici
14
	//TODO rassembler tout ce qui construit les arbres de mots clés ici
Line 15... Line 15...
15
	private static String[] caracteresInterdits = {"\\", "/", ","};
15
	private static String[] caracteresInterdits = {"\\", "/", ","};
16
	
16
	
17
	public static String obtenirCheminParent(String cheminMotCle, String motCle) {
17
	public static String obtenirCheminParent(String cheminMotCle, String motCle) {
Line 18... Line 18...
18
		return cheminMotCle.substring(0, cheminMotCle.length() - motCle.length() -1);
18
		return cheminMotCle.substring(0, cheminMotCle.length() - motCle.length() -1).toLowerCase();
19
	}
19
	}
Line 46... Line 46...
46
 
46
 
47
				String idMotCle = noeud.get("id_mot_cle")
47
				String idMotCle = noeud.get("id_mot_cle")
48
						.isString().stringValue();
48
						.isString().stringValue();
49
				String motCle = noeud.get("mot_cle").isString()
49
				String motCle = noeud.get("mot_cle").isString()
-
 
50
						.stringValue();
-
 
51
				
-
 
52
				// le chemin est mis en minuscule afin de fusionner toutes 
-
 
53
				// la variantes minuscules majuscule d'un mot clé
50
						.stringValue();
54
				// qui peuvent poser problème
51
				String chemin = noeud.get("chemin").isString()
55
				String chemin = noeud.get("chemin").isString()
Line 52... Line 56...
52
						.stringValue();
56
						.stringValue().toLowerCase();
53
				
57
				
Line 54... Line 58...
54
				String cheminParent = MotsClesUtilitaire.obtenirCheminParent(chemin, motCle);
58
				String cheminParent = MotsClesUtilitaire.obtenirCheminParent(chemin, motCle);
Line 63... Line 67...
63
				node.setId(idMotCle);
67
				node.setId(idMotCle);
64
				node.setText(motCle);
68
				node.setText(motCle);
65
				if(afficherCheckbox) {
69
				if(afficherCheckbox) {
66
					node.setChecked(false);
70
					node.setChecked(false);
67
				}
71
				}
-
 
72
 
68
				Node parentNode = arbreMotsCles.getNodeById(parent);
73
				Node parentNode = arbreMotsCles.getNodeById(parent);
69
				node.setUserObject(usObj);
74
				node.setUserObject(usObj);
70
				parentNode.appendChild(node);
75
				parentNode.appendChild(node);
Line 71... Line 76...
71
				
76