Subversion Repositories eFlore/Applications.del

Rev

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

Rev 73 Rev 86
Line 47... Line 47...
47
 
47
 
Line 48... Line 48...
48
		vue.getEnSavoirPlus().addClickHandler(new ClickHandler() {
48
		vue.getEnSavoirPlus().addClickHandler(new ClickHandler() {
49
 
49
 
50
			@Override
-
 
51
			public void onClick(ClickEvent event) {
-
 
52
				// FIXME : Cacher les précédentes fenêtres affichées
-
 
53
				VerticalPanel zoneCache = vue.getZoneCache();
-
 
54
				Label enSavoirPlus = vue.getEnSavoirPlus();
50
			@Override
55
				zoneCache.setVisible(!zoneCache.isVisible());
51
			public void onClick(ClickEvent event) {
56
 
52
				
57
				if (!zoneCache.isVisible()) {
53
				if (!detailsOpen) {
58
					enSavoirPlus.setStyleName("boutonPlus");
54
					afficherDetails();
59
				} else {
55
				} else {
-
 
56
					cacherDetails();
60
					enSavoirPlus.setStyleName("boutonMoins");
57
				}
61
				}
58
				
Line 62... Line 59...
62
			}
59
			}
Line 68... Line 65...
68
			public void onClick(ClickEvent event) {
65
			public void onClick(ClickEvent event) {
69
				BusEvenementiel.getInstance().fireEvent(new EvenementValidation(observation));
66
				BusEvenementiel.getInstance().fireEvent(new EvenementValidation(observation));
70
			}
67
			}
71
		});
68
		});
72
	}
69
	}
-
 
70
 
-
 
71
	public void cacherDetails() {
-
 
72
		VerticalPanel zoneCache = vue.getZoneCache();
-
 
73
		Label enSavoirPlus = vue.getEnSavoirPlus();
-
 
74
 
-
 
75
		zoneCache.setVisible(false);
-
 
76
		enSavoirPlus.setStyleName("boutonPlus");
-
 
77
		
-
 
78
		detailsOpen=false;
-
 
79
	}
-
 
80
	
-
 
81
	public void afficherDetails() {
-
 
82
		ObservationRecherchePresenteur.getInstance().fermerTousPanneauxDetailsObservations();
-
 
83
		
-
 
84
		VerticalPanel zoneCache = vue.getZoneCache();
-
 
85
		Label enSavoirPlus = vue.getEnSavoirPlus();
-
 
86
 
-
 
87
		zoneCache.setVisible(true);
-
 
88
		enSavoirPlus.setStyleName("boutonMoins");
-
 
89
		
-
 
90
		detailsOpen=true;
-
 
91
	}
-
 
92
 
-
 
93
	public boolean isDetailsOpen() {
-
 
94
		return detailsOpen;
-
 
95
	}
-
 
96
 
-
 
97
	public ObservationVue getVue() {
-
 
98
		return vue;
-
 
99
	}
73
}
100
}