Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1221 Rev 1222
Line 52... Line 52...
52
		zoneEntete.clear();
52
		zoneEntete.clear();
Line 53... Line 53...
53
		
53
		
54
		
54
		
55
		//3. Gérer le titre
55
		//3. Gérer le titre
56
		String titre = "IdentiPlante";
56
		String titre = "IdentiPlante";
57
		if (eventValue.equals(ConstantesNavigation.PAGE_RECHERCHE_IMAGES)) {
57
		if (eventValue.startsWith(ConstantesNavigation.PAGE_RECHERCHE_IMAGES)) {
Line 58... Line 58...
58
			titre = "PictoFlora";
58
			titre = "PictoFlora";
59
		}
59
		}
60
			
60
			
61
		if (eventValue.equals(ConstantesNavigation.HOME)) {
61
		if (eventValue.startsWith(ConstantesNavigation.HOME)) {
62
			String home = cache.getHome();
62
			String home = cache.getHome();
63
			if (home.equals(ConstantesNavigation.PAGE_RECHERCHE_IMAGES)) {
63
			if (home.startsWith(ConstantesNavigation.PAGE_RECHERCHE_IMAGES)) {
Line 64... Line 64...
64
				titre = "PictoFlora";
64
				titre = "PictoFlora";
Line 73... Line 73...
73
		EntetePresenteur entetePresenteur = new EntetePresenteur(new EnteteVue(titre));
73
		EntetePresenteur entetePresenteur = new EntetePresenteur(new EnteteVue(titre));
74
		entetePresenteur.go(zoneEntete);
74
		entetePresenteur.go(zoneEntete);
Line 75... Line 75...
75
		
75
		
76
		
76
		
77
		//Actions en fonction de la valeur de l'évènement
77
		//Actions en fonction de la valeur de l'évènement
78
		if (eventValue.equals(ConstantesNavigation.PAGE_RECHERCHE_IMAGES)) {
78
		if (eventValue.startsWith(ConstantesNavigation.PAGE_RECHERCHE_IMAGES)) {
79
			cache.setHome(ConstantesNavigation.PAGE_RECHERCHE_IMAGES);
79
			cache.setHome(ConstantesNavigation.PAGE_RECHERCHE_IMAGES);
80
			lancerMoteurRechercheImages(contenu);
80
			lancerMoteurRechercheImages(contenu);
81
		} else if (eventValue.startsWith(ConstantesNavigation.PAGE_VALIDATION)) {
81
		} else if (eventValue.startsWith(ConstantesNavigation.PAGE_VALIDATION)) {
82
			IdentiplanteDeterminationPresenteur presenteur = new IdentiplanteDeterminationPresenteur(new IdentiplanteDeterminationVue(), new ObservationServiceConcret());
82
			IdentiplanteDeterminationPresenteur presenteur = new IdentiplanteDeterminationPresenteur(new IdentiplanteDeterminationVue(), new ObservationServiceConcret());
83
			presenteur.go(contenu);
83
			presenteur.go(contenu);
84
		} else if (eventValue.startsWith(ConstantesNavigation.PAGE_VALIDATION_PICTOFLORA)) {
84
		} else if (eventValue.startsWith(ConstantesNavigation.PAGE_VALIDATION_PICTOFLORA)) {
85
			PictofloraDeterminationPresenteur presenteur = new PictofloraDeterminationPresenteur(new PictofloraDeterminationVue(), new ObservationServiceConcret(), new ProtocoleServiceConcret());
85
			PictofloraDeterminationPresenteur presenteur = new PictofloraDeterminationPresenteur(new PictofloraDeterminationVue(), new ObservationServiceConcret(), new ProtocoleServiceConcret());
86
			presenteur.go(contenu);
86
			presenteur.go(contenu);
87
		} else if (eventValue.equals(ConstantesNavigation.PAGE_COMPARAISON_EFLORE)) {
87
		} else if (eventValue.startsWith(ConstantesNavigation.PAGE_COMPARAISON_EFLORE)) {
88
			ComparaisonEflorePresenteur presenteur = new ComparaisonEflorePresenteur(new ComparaisonEfloreVue(), new ImageServiceConcret());
88
			ComparaisonEflorePresenteur presenteur = new ComparaisonEflorePresenteur(new ComparaisonEfloreVue(), new ImageServiceConcret());
89
			presenteur.go(contenu);
89
			presenteur.go(contenu);
90
		} else if (eventValue.equals(ConstantesNavigation.PAGE_RECHERCHE_OBSERVATIONS)) {
90
		} else if (eventValue.startsWith(ConstantesNavigation.PAGE_RECHERCHE_OBSERVATIONS)) {
91
			cache.setHome(ConstantesNavigation.PAGE_RECHERCHE_OBSERVATIONS);
91
			cache.setHome(ConstantesNavigation.PAGE_RECHERCHE_OBSERVATIONS);
92
			lancerMoteurRechercheObservation(contenu);
92
			lancerMoteurRechercheObservation(contenu);
93
		} else if (eventValue.equals(ConstantesNavigation.HOME)) {
93
		} else if (eventValue.startsWith(ConstantesNavigation.HOME)) {
94
			String home = cache.getHome();
94
			String home = cache.getHome();
95
			if (home.equals(ConstantesNavigation.PAGE_RECHERCHE_IMAGES)) {
95
			if (home.startsWith(ConstantesNavigation.PAGE_RECHERCHE_IMAGES)) {
96
				lancerMoteurRechercheImages(contenu);
96
				lancerMoteurRechercheImages(contenu);
97
			} else {
97
			} else {
98
				lancerMoteurRechercheObservation(contenu);
98
				lancerMoteurRechercheObservation(contenu);