Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 88 Rev 101
Line 420... Line 420...
420
	 */
420
	 */
421
	public void rafraichir(Object nouvelleDonnees,
421
	public void rafraichir(Object nouvelleDonnees,
422
			boolean repandreRafraichissement) {
422
			boolean repandreRafraichissement) {
423
		// si on a reçu un arbre
423
		// si on a reçu un arbre
424
		if (nouvelleDonnees instanceof Tree) {
424
		if (nouvelleDonnees instanceof Tree) {
-
 
425
		
425
			Tree nouvelArbre = (Tree) nouvelleDonnees;
426
			Tree nouvelArbre = (Tree) nouvelleDonnees;
Line 426... Line 427...
426
 
427
 
427
			if (nouvelArbre.getRootNode().getChildNodes().length <= 0) {
428
			if (nouvelArbre.getRootNode().getChildNodes().length <= 0) {
428
				// on crée une racine pour l'arbre
429
				// on crée une racine pour l'arbre
Line 436... Line 437...
436
			Node[] rootChild = getArbreMotsCles().getRootNode().getChildNodes();
437
			Node[] rootChild = getArbreMotsCles().getRootNode().getChildNodes();
437
			for (int i = 0; i < rootChild.length; i++) {
438
			for (int i = 0; i < rootChild.length; i++) {
Line 438... Line 439...
438
 
439
 
439
				rootChild[i].remove();
440
				rootChild[i].remove();
440
			}
441
			}
441
 
442
			
442
			getArbreMotsCles().getRootNode().appendChild(
443
			getArbreMotsCles().getRootNode().appendChild(
Line 443... Line 444...
443
					nouvelArbre.getRootNode());
444
					nouvelArbre.getRootNode());