Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1221 Rev 1549
Line 40... Line 40...
40
		addHandler(EvenementValidation.TYPE, new GestionnaireEvenementValidation() {
40
		addHandler(EvenementValidation.TYPE, new GestionnaireEvenementValidation() {
Line 41... Line 41...
41
 
41
 
42
			@Override
42
			@Override
43
			public void onValidationObservation(EvenementValidation event) {
43
			public void onValidationObservation(EvenementValidation event) {
44
				doValidationObservation(event.getObservation());
44
				doValidationObservation(event.getObservation());
45
				cache.setPageCourante(ConstantesNavigation.PAGE_VALIDATION);
45
				cache.setPageCourante(ConstantesNavigation.PAGE_DETAIL_OBS);
46
			}
46
			}
Line 47... Line 47...
47
		});
47
		});
Line 48... Line 48...
48
		
48
		
49
		addHandler(EvenementValidationPictoflora.TYPE, new GestionnaireEvenementValidationPictoflora() {
49
		addHandler(EvenementValidationPictoflora.TYPE, new GestionnaireEvenementValidationPictoflora() {
50
			
50
			
51
			@Override
51
			@Override
52
			public void onValidationObservation(EvenementValidationPictoflora event) {
52
			public void onValidationObservation(EvenementValidationPictoflora event) {
53
				doValidationObservationPictoflora(event.getObservation());
53
				doValidationObservationPictoflora(event.getObservation());
Line 54... Line 54...
54
				cache.setPageCourante(ConstantesNavigation.PAGE_VALIDATION_PICTOFLORA);
54
				cache.setPageCourante(ConstantesNavigation.PAGE_DETAIL_IMG);
Line 84... Line 84...
84
 
84
 
Line 85... Line 85...
85
	}
85
	}
86
 
86
 
87
	private void doValidationObservation(Observation observation) {
87
	private void doValidationObservation(Observation observation) {
88
		CacheClient.getInstance().setObservationCourante(observation);
88
		CacheClient.getInstance().setObservationCourante(observation);
Line 89... Line 89...
89
		History.newItem(ConstantesNavigation.PAGE_VALIDATION + "~" + observation.getId(), true);
89
		History.newItem(ConstantesNavigation.PAGE_DETAIL_OBS + "~" + observation.getId(), true);
90
	}
90
	}
91
	
91
	
92
	private void doValidationObservationPictoflora(Observation observation) {
92
	private void doValidationObservationPictoflora(Observation observation) {
Line 93... Line 93...
93
		CacheClient.getInstance().setObservationCourante(observation);
93
		CacheClient.getInstance().setObservationCourante(observation);
94
		History.newItem(ConstantesNavigation.PAGE_VALIDATION_PICTOFLORA + "~" + observation.getId(), true);
94
		History.newItem(ConstantesNavigation.PAGE_DETAIL_IMG + "~" + observation.getId(), true);
95
	}
95
	}