1,5 → 1,6 |
package org.tela_botanica.client.vues; |
|
import java.util.Comparator; |
import java.util.Iterator; |
|
import org.tela_botanica.client.interfaces.Filtrable; |
451,6 → 452,8 |
String[] usObj3 = {lieuDit}; |
node_lieu.setUserObject(usObj3); |
node_loc.appendChild(node_lieu) ; |
|
root.sort(comparerNoeuds()) ; |
} |
|
arbreEntitesGeographiques.doLayout() ; |
531,5 → 534,20 |
|
} |
} |
|
public Comparator<TreeNode> comparerNoeuds() |
{ |
return new Comparator<TreeNode>() { |
|
public int compare(TreeNode o1, TreeNode o2) { |
|
String n1 = o1.getText() ; |
String n2 = o2.getText() ; |
|
return n1.compareTo(n2) ; |
} |
|
} ; |
} |
|
} |