Subversion Repositories eFlore/Applications.cel

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 aperonnet 1
/**
2
 David Delon david.delon@clapas.net 2007
3
 
4
 */
5
 
6
 
7
/*
8
 * ListeObservationsVue.java  (Composite de Panel)
9
 *
10
 * Cas d'utilisation :
11
 *
12
 * Affichage de releve
13
 *
14
 * 1 : Recherche du nombre de releves associe au navigateur ou a l'utilisateur est connecte, en fonction des criteres de selection
15
 * 2 : Recherche des releves correspondant au critere precedent
16
 * 3 : Affichage des releves avec positionnement sur le dernier releve
17
 *
18
 * Selection de releve
19
 *
20
 * 1 : L'utilisateur selectionne un releve : lancement de l'affichage detaille pour le releve selectionne
21
 *
22
 *
23
 * Pagination :
24
 *
25
 * 1 : Avancement ou recul d'une page
26
 *
27
 *
28
 *
29
 *  Suppression d'une liste d'element
30
 */
31
 
32
 
33
/* Actions declenchees :
34
 *
35
 * onInventoryItemSelected(numero d'ordre de la ligne selectionne) : selection d'une ligne
36
 * onInventoryItemUnselected(numero d'ordre de la ligne selectionne) : deselection d'une ligne
37
 * onInventoryUpdated(localite) : action suite a la modification, suppression, creation d'un element d'inventaire
38
 *
39
 */
40
 
41
 
42
package org.tela_botanica.client.observation;
43
 
44
import org.tela_botanica.client.modeles.Observation;
45
 
46
import com.google.gwt.user.client.ui.Button;
47
import com.google.gwt.user.client.ui.ClickListener;
48
import com.google.gwt.user.client.ui.Composite;
49
import com.google.gwt.user.client.ui.DockPanel;
50
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
51
import com.google.gwt.user.client.ui.HasVerticalAlignment;
52
import com.google.gwt.user.client.ui.HorizontalPanel;
53
import com.google.gwt.user.client.ui.Label;
54
import com.google.gwt.user.client.ui.Widget;
55
 
56
 
57
public class ListeObservationsVue extends Composite
58
		 {
59
 
60
	// Debut Barre de navigation
61
 
62
	private class NavBar extends Composite implements ClickListener {
63
 
64
 
65
		public final DockPanel bar = new DockPanel();
66
 
67
 
68
		public final Button gotoFirst = new Button("<<", this);
69
		public final Button gotoNext = new Button(">", this);
70
		public final Button gotoPrev = new Button("<", this);
71
		public final Button gotoEnd = new Button(">>", this);
72
		public final Label status = new Label();
73
 
74
 
75
		public NavBar() {
76
 
77
			initWidget(bar);
78
 
79
			status.setWordWrap(false);
80
 
81
			HorizontalPanel buttons = new HorizontalPanel();
82
 
83
			buttons.add(status);
84
			buttons.setCellHorizontalAlignment(status, HasHorizontalAlignment.ALIGN_RIGHT);
85
			buttons.setCellVerticalAlignment(status, HasVerticalAlignment.ALIGN_MIDDLE);
86
 
87
 
88
			buttons.add(gotoFirst);
89
			buttons.add(gotoPrev);
90
			buttons.add(gotoNext);
91
			buttons.add(gotoEnd);
92
 
93
			bar.add(buttons, DockPanel.EAST);
94
 
95
 
96
		}
97
 
98
 
99
		public void onClick(Widget sender) {
100
			if (sender == gotoNext) {
101
				// Move forward a page.
102
				startIndex += VISIBLE_TAXON_COUNT;
103
				if (startIndex >= count)
104
					startIndex -= VISIBLE_TAXON_COUNT;
105
			} else {
106
				if (sender == gotoPrev) {
107
					// Move back a page.
108
					startIndex -= VISIBLE_TAXON_COUNT;
109
					if (startIndex < 0)
110
						startIndex = 0;
111
				} else {
112
					if (sender == gotoEnd) {
113
						gotoEnd();
114
					} else {
115
						if (sender == gotoFirst) {
116
							startIndex = 0;
117
						}
118
					}
119
				}
120
			}
121
			getListeObservation();
122
		}
123
 
124
	}
125
 
126
	// Fin Barre de navigation
127
 
128
	// Conteneur (header et table sont dans panel)
129
//	private ContentPanel panel =null;
130
//	private Table table = null;
131
 
132
	// Services
133
	private String serviceBaseUrl = null;
134
	private String user;
135
	private ObservationMediateur observationMediateur = null;
136
 
137
	// Navigation
138
	private int startIndex = 0;
139
	private int count = 0;
140
	private static final int VISIBLE_TAXON_COUNT = 15;
141
	private NavBar navBar=null;
142
 
143
	// Filtre par defaut :
144
 
145
	private String identifiantLocalite = "all";
146
	private String localite = "all";
147
	private String annee = "all";
148
	private String mois = "all";
149
	private String jour = "all";
150
	private String rechercheLibre = "all";
151
	private String lieudit = "all";
152
	private String ordre= null;
153
 
154
 
155
 
156
 
157
	public ListeObservationsVue(ObservationMediateur observationMediateur) {
158
 
159
 
160
		// Traitement contexte utilisateur et service
161
 
162
		this.observationMediateur=observationMediateur;
163
 
164
 
165
	//    panel= new ContentPanel(Style.HEADER);
166
	  //  panel.setLayout(new FillLayout());
167
 
168
 
169
	    // Barre navigation integree au header
170
 
171
		navBar = new NavBar();
172
	//	panel.getHeader().addWidget(navBar);
173
 
174
 
175
		//  Contenu :
176
 
177
 
178
		//  Colonnes :
179
 
180
//		TableColumn[] columns = new TableColumn[6];
181
 
182
		// TODO : renderer date, alignement etc
183
	/*
184
		columns[0] = new TableColumn("etat","Aransmis", 50);
185
 
186
		columns[1] = new TableColumn("nom","Nom saisi", 250);
187
 
188
		columns[2] = new TableColumn("nomr","Nom retenu", 250);
189
 
190
		columns[3] = new TableColumn("lieu","Lieu", 350);
191
 
192
		columns[4] = new TableColumn("date","Date", 75);
193
 
194
		columns[5] = new TableColumn("ordre","Ordre", 50);
195
 
196
 
197
		TableColumnModel cm = new TableColumnModel(columns);
198
 
199
		// Table :
200
 
201
		table = new Table(Style.MULTI | Style.HORIZONTAL, cm);
202
		table.setBorders(false);
203
 
204
 
205
		panel.add(table);
206
 
207
 
208
 
209
		// Selection d'une ligne
210
		table.addListener(Events.RowClick, new Listener() {
211
 
212
		      public void handleEvent(BaseEvent be) {
213
		        TableItem item=(TableItem) be.item;
214
		        if (item!=null) {
215
		        	if (ordre==null) { // Affichage de la ligne selectionne
216
		        		ordre= (String) item.getValue(5);
217
	//	        		observationMediateur.onInventoryItemSelected(ordre);
218
		        	}
219
		        	else {
220
		        		// Si une ligne etait deja selectionne
221
		        		if (ordre.compareTo((String) item.getValue(5))==0) { // C'est la meme, on la deselectionne
222
		        			ordre=null;
223
		        			table.deselect(be.rowIndex);
224
		//        			observationMediateur.onInventoryItemUnselected();
225
		        		}
226
		        		else {
227
			        		ordre= (String) item.getValue(5); // C'est une autre, on la selectionne
228
//		        			observationMediateur.onInventoryItemSelected(ordre);
229
		        		}
230
 
231
		        	}
232
		        }
233
		      }
234
		});
235
		*/
236
 
237
	// initWidget(panel);
238
 
239
 
240
	}
241
 
242
 
243
	/**
244
	 * Suppression d'un ensemble d'element de la liste d'inventaire, on garde ici car s'applique a plusieurs elements
245
	 *
246
	 */
247
 
248
	public void deleteElement() {
249
/*
250
		setStatusDisabled();
251
		TableItem[] selection=table.getSelection();
252
 
253
		StringBuffer ids=new StringBuffer();
254
		for (int i = 0; i < selection.length; i++) {
255
			ids.append((String)(((TableItem) selection[i]).getValue(5)));
256
			if (i<(selection.length-1)) ids.append(",");
257
		}
258
 
259
		if (ids.length()>0) {
260
 
261
			HTTPRequest.asyncPost(serviceBaseUrl + "/Inventory/" + user
262
							+ "/" + ids.toString(), "action=DELETE",
263
 
264
							new ResponseTextHandler() {
265
								public void onCompletion(String str) {
266
	//										observationMediateur.onInventoryUpdated(identifiantLocalite,"all","all");
267
		//									observationMediateur.getEntryView().clear();
268
								}
269
							});
270
		}
271
 
272
		setStatusEnabled();
273
*/
274
	}
275
 
276
 
277
 
278
 
279
	/**
280
	 * Transmission de releve a Tela, on garde ici car s'applique a plusieurs elements
281
	 */
282
 
283
 
284
	public void transmitElement() {
285
 
286
		setStatusDisabled();
287
 
288
/*		TableItem[] selection=table.getSelection();
289
 
290
		StringBuffer ids=new StringBuffer();
291
		for (int i = 0; i < selection.length; i++) {
292
			ids.append((String)(((TableItem) selection[i]).getValue(5)));
293
			if (i<(selection.length-1)) ids.append(",");
294
		}
295
 
296
		if (ids.length()>0) {
297
 
298
			HTTPRequest.asyncPost(serviceBaseUrl + "/InventoryTransmit/" + user
299
							+ "/" + ids.toString(), "transmission=1",
300
 
301
							new ResponseTextHandler() {
302
								public void onCompletion(String str) {
303
											getListeObservation(); // Pour affichage logo
304
								}
305
							});
306
		}
307
 
308
		setStatusEnabled();
309
 
310
		*/
311
	}
312
 
313
 
314
	/**
315
	 * Recherche nombre d'enregistrement pour l'utilisateur et la localite en cours
316
	 *
317
	 */
318
 
319
	public void initialiser() {
320
 
321
		setStatusDisabled();
322
 
323
	//	observationMediateur.addListener(ObservationMediateur.NOMBRE_OBSERVATION,this);
324
		observationMediateur.getNombreObservation(identifiantLocalite,localite,annee, mois, jour ,lieudit,rechercheLibre); // Retour dans handlevent() NOMBRE_OBSERVATION
325
 
326
 
327
	}
328
 
329
	/**
330
	 * Mise a jour de l'affichage, a partir des donnaes d'inventaire deja
331
	 * saisies. La valeur de this.startIndex permet de determiner quelles
332
	 * donnaes seront affichees
333
	 *
334
	 */
335
 
336
	public void getListeObservation() {
337
 
338
	//	observationMediateur.addListener(ObservationMediateur.LISTE_OBSERVATION,this);
339
		observationMediateur.getListeObservation(identifiantLocalite,localite,annee, mois, jour ,lieudit,rechercheLibre, startIndex, VISIBLE_TAXON_COUNT); // Retour dans handlevent() LISTE_OBSERVATION
340
 
341
	}
342
 
343
	public void afficherListeObservation() {
344
 
345
		Observation[] listeObservation =observationMediateur.getObservation().getListeObservation();
346
 
347
		for (int i=0;i<listeObservation.length;i++) {
348
 
349
			Object[] values = new Object[6];
350
			values[0]="0";
351
			values[2]="2";
352
			values[3]="3";
353
			values[4]="4";
354
			values[5]="5";
355
			values[1]=listeObservation[i].getNomSaisi();
356
 
357
    	//	table.add(new TableItem(values));
358
 
359
		}
360
 
361
//      Ligne d'information
362
 
363
		// Toutes date par defaut
364
/*
365
 
366
		HTTPRequest.asyncGet(serviceBaseUrl + "/InventoryItemList/" + user + "/" + identifiantLocalite + "/" + URL.encodeComponent(localite) +"/" + annee  + "/"  + mois  + "/"  + jour   + "/" + URL.encodeComponent(rechercheLibre) + "/" + URL.encodeComponent(lieudit) + "/"
367
				+ startIndex + "/" + VISIBLE_TAXON_COUNT,
368
 
369
		new ResponseTextHandler() {
370
 
371
			public void onCompletion(String str) {
372
 
373
				JSONValue jsonValue = JSONParser.parse(str);
374
				JSONArray jsonArray;
375
				JSONArray jsonArrayNested;
376
 
377
				int i=0;
378
 
379
				if ((jsonArray = jsonValue.isArray()) != null) {
380
 
381
					StringBuffer lieu=null;
382
 
383
					int arraySize = jsonArray.size();
384
 
385
					for (i = 0; i < arraySize; ++i) {
386
						if ((jsonArrayNested = jsonArray.get(i).isArray()) != null) {
387
 
388
 
389
							Object[] values = new Object[6];
390
 
391
 
392
							// Statut Observation transmise ?
393
 
394
							String atransmit=((JSONString) jsonArrayNested .get(13)).stringValue();
395
 
396
							if (atransmit.compareTo("1")==0) {
397
								values[0] = new Image("tela.gif");
398
							}
399
							else {
400
								values[0] = new HTML("&nbsp;");
401
							}
402
 
403
 
404
							// Nom saisi
405
 
406
							values[1] = new HTML("<b>"+Util.toCelString(((JSONString) jsonArrayNested .get(0)).toString())+"</b>");
407
 
408
 
409
 
410
							// Nom retenu
411
							String aname=Util.toCelString(((JSONString) jsonArrayNested .get(2)).toString());
412
 
413
							if (aname.compareTo("null")==0) {
414
								values[2] = new HTML("&nbsp;");
415
							}
416
							else {
417
								values[2] = new HTML(aname);
418
							}
419
							/*
420
 
421
							 /*
422
							// Num nomenclatural
423
							String ann=((JSONString) jsonArrayNested .get(3)).stringValue();
424
 
425
							if (ann.compareTo("0")!=0) {
426
								observationText.append(""+ann+"-");
427
							}
428
							else {
429
								observationText.append("0-");
430
							}
431
 
432
 
433
							// Num Taxonomique
434
 
435
							String ant=((JSONString) jsonArrayNested .get(4)).stringValue();
436
 
437
							if (ant.compareTo("0")!=0) {
438
								observationText.append(ant+", ");
439
							}
440
							else {
441
								observationText.append("0, ");
442
							}
443
 
444
							// Famille
445
 
446
 
447
							String afamily=Util.toCelString(((JSONString) jsonArrayNested .get(5)).toString());
448
 
449
							if (afamily.compareTo("null")==0) {
450
								//
451
							}
452
							else {
453
								observationText.append(afamily+", ");
454
							}
455
							*/
456
		/*
457
 
458
//							Localisation - Lieu
459
 
460
							lieu=new StringBuffer();
461
 
462
							String aloc=Util.toCelString(((JSONString) jsonArrayNested .get(6)).toString());
463
 
464
								if (aloc.compareTo("000null")==0) {
465
									if (lieu.length()==0) {
466
										lieu.append("Commune absente");
467
									}
468
									else {
469
										lieu.append("commune absente");
470
									}
471
								}
472
								else {
473
									if (lieu.length()==0) {
474
										lieu.append("Commune de "+aloc);
475
									}
476
									else {
477
										lieu.append("commune de "+aloc);
478
									}
479
 
480
								}
481
 
482
 
483
								String alieudit=Util.toCelString(((JSONString) jsonArrayNested .get(9)).toString());
484
 
485
//								Localisation - Lieu dit
486
 
487
								if (alieudit.compareTo("000null")!=0) {
488
									lieu.append(", "+alieudit);
489
								}
490
 
491
 
492
//								Station -
493
 
494
								String astation=Util.toCelString(((JSONString) jsonArrayNested .get(10)).toString());
495
 
496
 
497
								if (astation.compareTo("000null")!=0) {
498
									lieu.append(", "+astation);
499
								}
500
 
501
 
502
//								Milieu
503
 
504
								String amilieu=Util.toCelString(((JSONString) jsonArrayNested .get(11)).toString());
505
 
506
 
507
								if (amilieu.compareTo("000null")!=0) {
508
									lieu.append(", "+amilieu);
509
								}
510
 
511
								String acomment=Util.toCelString(((JSONString) jsonArrayNested .get(12)).toString());
512
//								Commentaire
513
 
514
								if (acomment.compareTo("null")!=0) {
515
									lieu.append(", "+acomment);
516
								}
517
 
518
 
519
								if (lieu.toString().compareTo("")==0) {
520
									values[3] = new HTML("&nbsp;");
521
								}
522
								else {
523
									values[3] = new HTML(lieu.toString());
524
								}
525
 
526
 
527
								String adate=((JSONString) jsonArrayNested .get(8)).stringValue();
528
 
529
//								Date
530
								if (adate.compareTo("0000-00-00 00:00:00")!=0) {
531
									values[4]=new HTML("<b>"+adate+"</b>");
532
								}
533
								else {
534
									values[4] = new HTML("&nbsp;");
535
								}
536
 
537
 
538
 
539
							String aordre=((JSONString) jsonArrayNested.get(7)).stringValue();
540
 
541
							// Numero d'ordre (cache)
542
 
543
							values[5] = aordre;
544
 
545
 
546
 
547
 
548
					    	if (i>=table.getItemCount()) {
549
					    		TableItem item = new TableItem(values);
550
					    		table.add(item);
551
							}
552
							else {
553
								TableItem item=table.getItem(i);
554
								item.setValue(0,values[0]);
555
								item.setValue(1,values[1]);
556
								item.setValue(2,values[2]);
557
								item.setValue(3,values[3]);
558
								item.setValue(4,values[4]);
559
								item.setValue(5,values[5]);
560
							}
561
 
562
					    	// Spagetti
563
							if (ordre!=null) {
564
								if (aordre.compareTo(ordre)==0) {
565
									table.select(i);
566
								}
567
								else {
568
									table.deselect(i);
569
								}
570
							}
571
 
572
						}
573
 
574
					}
575
				}
576
 
577
				// Suppression fin ancien affichage
578
				if (i<table.getItemCount()) {
579
					 for (int j = table.getItemCount() -1 ; j >= i; j--) {
580
						 TableItem item=table.getItem(j);
581
						 table.remove(item);
582
					 }
583
				}
584
 
585
				setStatusEnabled();
586
 
587
 
588
			}
589
		});
590
				*/
591
 
592
 
593
	}
594
 
595
 
596
	/**
597
	 * Affichage message d'attente et desactivation navigation
598
	 *
599
	 * @param
600
	 * @return void
601
	 */
602
 
603
	private void setStatusDisabled() {
604
 
605
		navBar.gotoFirst.setEnabled(false);
606
		navBar.gotoPrev.setEnabled(false);
607
		navBar.gotoNext.setEnabled(false);
608
		navBar.gotoEnd.setEnabled(false);
609
 
610
		navBar.status.setText("Patientez ...");
611
	}
612
 
613
	/**
614
	 * Affichage numero de page et gestion de la navigation
615
	 *
616
	 */
617
 
618
	private void setStatusEnabled() {
619
 
620
		// Il y a forcemment un disabled avant d'arriver ici
621
 
622
		if (count > 0) {
623
 
624
			if (startIndex >= VISIBLE_TAXON_COUNT) { // Au dela de la
625
														// premiere page
626
				navBar.gotoPrev.setEnabled(true);
627
				navBar.gotoFirst.setEnabled(true);
628
				if (startIndex < (count - VISIBLE_TAXON_COUNT)) { // Pas la
629
																	// derniere
630
																	// page
631
					navBar.gotoNext.setEnabled(true);
632
					navBar.gotoEnd.setEnabled(true);
633
					navBar.status.setText((startIndex + 1) + " - "
634
							+ (startIndex + VISIBLE_TAXON_COUNT) + " sur " + count );
635
				} else { // Derniere page
636
					navBar.status.setText((startIndex + 1) + " - " + count + " sur " + count );
637
				}
638
			} else { // Premiere page
639
				if (count > VISIBLE_TAXON_COUNT) { // Des pages derrieres
640
					navBar.gotoNext.setEnabled(true);
641
					navBar.gotoEnd.setEnabled(true);
642
					navBar.status.setText((startIndex + 1) + " - "
643
							+ (startIndex + VISIBLE_TAXON_COUNT) + " sur " + count);
644
				} else {
645
					navBar.status.setText((startIndex + 1) + " - " + count + " sur " + count);
646
				}
647
			}
648
		}
649
 
650
		else { // Pas d'inventaire, pas de navigation
651
			navBar.status.setText("0 - 0 sur 0");
652
		}
653
	}
654
 
655
	/*
656
	 * Positionnement index de parcours (this.startIndex) pour affichage de la
657
	 * derniere page
658
	 *
659
	 * @param
660
	 * @return void
661
	 */
662
 
663
	private void gotoEnd() {
664
 
665
		if ((count == 0) || (count % VISIBLE_TAXON_COUNT) > 0) {
666
			startIndex = count - (count % VISIBLE_TAXON_COUNT);
667
		} else {
668
			startIndex = count - VISIBLE_TAXON_COUNT;
669
		}
670
 
671
	}
672
 
673
	/*
674
	 * Recherche en cours
675
	 *
676
	 */
677
 
678
	public void setRechercheLibre(String search) {
679
		this.rechercheLibre = search;
680
	}
681
 
682
 
683
 
684
	/*
685
	 * Departement en cours
686
	 *
687
	 */
688
 
689
	public void setIdLocation(String id_location) {
690
		this.identifiantLocalite = id_location;
691
	}
692
 
693
 
694
 
695
	/*
696
	 * Localite en cours
697
	 *
698
	 */
699
 
700
	public void setLocalite(String location) {
701
		this.localite = location;
702
	}
703
 
704
 
705
 
706
	/*
707
	 * Lieudit en cours
708
	 *
709
	 */
710
 
711
	public void setLieudit(String lieudit) {
712
		this.lieudit = lieudit;
713
	}
714
 
715
 
716
 
717
	/*
718
	 * Date en cours
719
	 *
720
	 */
721
 
722
 
723
	public void setAnnee(String year) {
724
		this.annee = year;
725
	}
726
 
727
 
728
	public void setMois(String month) {
729
		this.mois = month;
730
	}
731
 
732
	public void setJour(String day) {
733
		this.jour = day;
734
	}
735
 
736
 
737
	/*
738
	 * Utilisateur en cours
739
	 *
740
	 */
741
 
742
 
743
 
744
	public void setUser(String user) {
745
		this.user = user;
746
	}
747
 
748
 
749
	public void displayFilter() {
750
 
751
 
752
 
753
	// Mise a jour boutton export feuille de calcul
754
 
755
		/*
756
	observationMediateur.getActionView().getExportButton().setHTML("<a href=\""+observationMediateur.getServiceBaseUrl()+"/InventoryExport/"
757
			+  user + "/"
758
			+ URL.encodeComponent(identifiantLocalite) + "/"
759
			+ URL.encodeComponent(localite) + "/"
760
			+ URL.encodeComponent(lieudit)+ "/"
761
			+ annee + "/"
762
			+ mois  + "/"
763
			+ jour
764
			+ "\">"+"Export&nbsp;tableur</a>");
765
 
766
	*/
767
	// Mise a jour ligne de selection
768
 
769
 
770
 
771
	String dep;
772
	if (identifiantLocalite.compareTo("all")==0) {
773
		dep="Tous d&eacute;partements";
774
	}
775
	else {
776
		if (identifiantLocalite.compareTo("000null")==0) {
777
			dep="D&eacute;partements non renseign&eacute;es ";
778
		}
779
		else {
780
		dep="Département "+identifiantLocalite;
781
		}
782
	}
783
 
784
 
785
 
786
	String com;
787
	if (localite.compareTo("all")==0) {
788
		com=", toutes communes";
789
	}
790
	else {
791
		if (localite.compareTo("000null")==0) {
792
			com=", communes non renseign&eacute;es";
793
		}
794
		else {
795
		com=", commune de "+localite;
796
		}
797
	}
798
 
799
 
800
 
801
	String lieu;
802
 
803
	if (lieudit.compareTo("all")==0) {
804
		lieu=", tous lieux dits";
805
	}
806
	else {
807
		if (lieudit.compareTo("000null")==0) {
808
			lieu=", lieu-dit non renseign&eacute;es";
809
		}
810
		else {
811
			lieu=", lieu-dit "+ lieudit;
812
		}
813
	}
814
 
815
	String dat;
816
 
817
	if ((annee.compareTo("all")==0) && (mois.compareTo("all")==0) && (jour.compareTo("all")==0)) {
818
		dat=", toutes periodes";
819
	}
820
 
821
	else {
822
 
823
    	String yea="";
824
       	String da="";
825
       	String mont="";
826
 
827
    	if (annee.compareTo("all")==0) {
828
    		yea=", toutes ann&eacute;es";
829
    	}
830
    	else {
831
    		if (annee.compareTo("0")==0) {
832
    			yea=", periode non renseign&eacute;e";
833
    		}
834
    		else {
835
    			yea=", "+ annee;
836
 
837
            	if (mois.compareTo("all")==0) {
838
            		mont=", tous mois";
839
            	}
840
            	else {
841
            			mont="/"+ mois;
842
            	}
843
 
844
 
845
            	if (jour.compareTo("all")==0) {
846
            		da=", tous jours";
847
            	}
848
            	else {
849
            			da="/"+ jour;
850
            	}
851
    		}
852
    	}
853
 
854
        dat=yea + mont + da;
855
 
856
	}
857
 
858
 
859
	//panel.getHeader().setText(dep + com + lieu + dat);
860
 
861
 
862
 
863
}
864
 
865
 
866
 
867
	/// EVENEMENTS
868
 
869
/**
870
 * Evenements
871
 *
872
 */
873
	/*
874
	public void handleEvent(BaseEvent be) {
875
		switch (be.type) {
876
			case ObservationMediateur.NOMBRE_OBSERVATION:
877
				gotoEnd();
878
				getListeObservation();
879
				break;
880
			case ObservationMediateur.LISTE_OBSERVATION:
881
				afficherListeObservation();
882
				break;
883
		}
884
	}
885
*/
886
 
887
 
888
}
889
 
890
/* +--Fin du code ---------------------------------------------------------------------------------------+
891
* $Log: not supported by cvs2svn $
892
* Revision 1.3  2008-06-17 14:16:16  aperonnet
893
* *** empty log message ***
894
*
895
* Revision 1.2  2008-06-09 16:29:01  ddelon
896
* import branche observation
897
*
898
* Revision 1.1  2008-06-09 14:19:37  ddelon
899
* Initialisation observation
900
*
901
* Revision 1.3  2008-04-28 13:10:43  ddelon
902
* Integration MyGwt
903
*
904
* Revision 1.2  2008-01-30 08:55:40  ddelon
905
* fin mise en place mygwt
906
*
907
* Revision 1.1  2008-01-02 21:26:04  ddelon
908
* mise en place mygwt
909
*
910
* Revision 1.8  2007-12-22 14:48:53  ddelon
911
* Documentation et refactorisation
912
*
913
* Revision 1.7  2007-09-17 19:25:34  ddelon
914
* Documentation
915
*
916
*/