Esempio n. 1
0
 @Override
 public boolean selectionnerIntersection(
     FenetreControleur fenetreControleur,
     Ordonnanceur ordonnanceur,
     Intersection intersectionSelectionnee,
     List<Intersection> intersectionsSelectionnees) {
   fenetreControleur.autoriseBoutons(false);
   Livraison livraisonSelectionnee = intersectionSelectionnee.getLivraison();
   if (livraisonSelectionnee != null
       && livraisonSelectionnee != ordonnanceur.getDemandeLivraisons().getEntrepot()) {
     intersectionsSelectionnees.add(intersectionSelectionnee);
     Controleur.setEtatCourant(Controleur.getEtatUneLivrSelectionnee());
     return true;
   } else {
     return false;
   }
 }