Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 89 Rev 90
Line 1... Line 1...
1
package org.tela_botanica.client.vues;
1
package org.tela_botanica.client.vues;
Line -... Line 2...
-
 
2
 
2
 
3
import java.util.Comparator;
Line 3... Line 4...
3
import java.util.Iterator;
4
import java.util.Iterator;
4
 
5
 
5
import org.tela_botanica.client.interfaces.Filtrable;
6
import org.tela_botanica.client.interfaces.Filtrable;
Line 449... Line 450...
449
				node_lieu.setId(""+(id_location+location+lieuDit));
450
				node_lieu.setId(""+(id_location+location+lieuDit));
450
				node_lieu.setText(lieuDit);
451
				node_lieu.setText(lieuDit);
451
				String[] usObj3 = {lieuDit};
452
				String[] usObj3 = {lieuDit};
452
				node_lieu.setUserObject(usObj3);
453
				node_lieu.setUserObject(usObj3);
453
				node_loc.appendChild(node_lieu) ;
454
				node_loc.appendChild(node_lieu) ;
-
 
455
				
-
 
456
				root.sort(comparerNoeuds()) ;
454
			}
457
			}
Line 455... Line 458...
455
				
458
				
456
				arbreEntitesGeographiques.doLayout() ;
459
				arbreEntitesGeographiques.doLayout() ;
457
		}
460
		}
Line 529... Line 532...
529
		
532
		
Line 530... Line 533...
530
		if (estInstancie) {
533
		if (estInstancie) {
531
			
534
			
-
 
535
		}
-
 
536
	}
-
 
537
	
-
 
538
	public Comparator<TreeNode> comparerNoeuds()
-
 
539
	{
-
 
540
		return new Comparator<TreeNode>() {
-
 
541
 
-
 
542
			public int compare(TreeNode o1, TreeNode o2) {
-
 
543
				
-
 
544
				String n1 = o1.getText() ;
-
 
545
				String n2 = o2.getText() ;
-
 
546
				
-
 
547
				return n1.compareTo(n2) ;
-
 
548
			}
-
 
549
			
Line 532... Line 550...
532
		}
550
		} ;