563,5 → 563,36 |
|
} ; |
} |
|
public void raz() { |
|
arbreCharge = false ; |
arbreEntitesGeographiques.clear() ; |
|
// on crée une racine pour l'arbre |
TreeNode root = new TreeNode("Localités"); |
root.setId("racine_entite"); |
String[] usObject = { "Localités" }; |
root.setUserObject(usObject); |
|
arbreEntitesGeographiques.setRootNode(root); |
|
arbreEntitesGeographiques.getRootNode().addListener(new TreeNodeListenerAdapter() { |
|
public void onExpand(Node node) { |
if(!arbreCharge) |
{ |
observationMediateur.obtenirDatesObservation() ; |
arbreCharge = true ; |
} |
} |
|
}) ; |
|
arbreCharge = false ; |
|
this.doLayout() ; |
|
} |
|
} |