Subversion Repositories eFlore/Archives.cel-v1

Rev

Rev 27 | Rev 29 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27 Rev 28
Line 1... Line 1...
1
package org.tela_botanica.client;
1
package org.tela_botanica.client;
Line 2... Line 2...
2
 
2
 
3
 
3
 
-
 
4
// TODO : sortie User vers une classe ...
-
 
5
// TODO : sortie les boutons supprimer et exporter et inclure ici : vraiment ?
-
 
6
 
-
 
7
// TODO : optimisation, ne pas rechercher stations ou date si non affichés
-
 
8
 
-
 
9
 
-
 
10
 
-
 
11
 
-
 
12
import net.mygwt.ui.client.Style;
-
 
13
import net.mygwt.ui.client.widget.Viewport;
-
 
14
import net.mygwt.ui.client.widget.WidgetContainer;
-
 
15
import net.mygwt.ui.client.widget.layout.BorderLayout;
Line 4... Line 16...
4
// TODO : sortie User vers une classe ...
16
import net.mygwt.ui.client.widget.layout.BorderLayoutData;
5
// TODO : sortie les boutons supprimer et exporter et inclure ici
17
import net.mygwt.ui.client.widget.layout.FillLayout;
6
 
18
 
7
import com.google.gwt.i18n.client.Dictionary;
19
import com.google.gwt.i18n.client.Dictionary;
Line 14... Line 26...
14
import com.google.gwt.user.client.ResponseTextHandler;
26
import com.google.gwt.user.client.ResponseTextHandler;
15
import com.google.gwt.user.client.ui.TextBox;
27
import com.google.gwt.user.client.ui.TextBox;
Line 16... Line 28...
16
 
28
 
Line -... Line 29...
-
 
29
public class Mediator implements AutoCompleteAsyncTextBoxListener {
-
 
30
		
-
 
31
		// General
-
 
32
	
-
 
33
	
-
 
34
		private WidgetContainer west = null;
-
 
35
		private WidgetContainer south = null;
Line 17... Line 36...
17
public class Mediator implements AutoCompleteAsyncTextBoxListener {
36
		private WidgetContainer center = null;
Line 18... Line 37...
18
		
37
		private WidgetContainer north = null;
-
 
38
	
19
		
39
		private String serviceBaseUrl = getServiceBaseUrlFromDictionnary(); // Recherche url de base des services distants
20
		private String serviceBaseUrl = getServiceBaseUrlFromDictionnary(); // Recherche url de base des services distants
40
		
21
		
41
		// Utilisateur
-
 
42
		
22
		// Utilisateur
43
		private ConnexionView connexionView=null; // Information de connexion
23
		private TopPanel topPanel=null; // Information de connexion
44
		private String user = null; // Identifiant utilisateur connecte ou bien identifiant de session en cours
24
		private String user = null; // Utilisateur connecte ou bien identifiant de session
45
		private boolean connected=false; // Positionne a vrai si identification reussie
25
		private boolean connected=false;
46
		
26
 
47
 
27
		// Filtres 
48
		// Filtres sur les releves 
Line 28... Line 49...
28
		private LeftPanel leftPanel=null; // Containeur filtre date, lieu, lieu-dit ...
49
		private InventoryFilterView inventoryFilterView=null; // Containeur filtre date, lieu, lieu-dit ...
Line 29... Line 50...
29
		private LocationList locationList = null; // Filtre sur lieu de releve
50
		private LocationFilterPanel locationFilterPanel = null; // Filtre sur lieu de releve
Line 30... Line 51...
30
		private DateList dateList = null; // Filtre sur date d'observation
51
		private DateFilterPanel dateFilterPanel = null; // Filtre sur date d'observation
31
		private StationList stationList = null; // Filtre sur station d'observation
52
		private StationFilterPanel stationFilterPanel = null; // Filtre sur station d'observation
Line 32... Line 53...
32
		
53
 
Line 42... Line 63...
42
		private TextBox lieudit = null;  // lieu dit observation
63
		private TextBox lieudit = null;  // lieu dit observation
43
		private TextBox comment = null; // commentaire observation
64
		private TextBox comment = null; // commentaire observation
44
		private InventoryItem inventoryItem=null;  // Une observation saisie
65
		private InventoryItem inventoryItem=null;  // Une observation saisie
Line 45... Line 66...
45
 
66
 
-
 
67
		
46
 
68
		// Liste de releves saisis
-
 
69
		
-
 
70
		private InventoryListView inventoryListView = null;  // Liste de releves
-
 
71
		
47
		// Liste des observations
72
 
-
 
73
		// Actions sur les releves
Line 48... Line 74...
48
		private InventoryItemList inventoryItemList = null; // Liste de releves saisis
74
		private ActionView actionView=null; // Action sur les observations
Line 49... Line 75...
49
		private ActionPanel actionPanel=null; // Action sur les observations
75
		private SearchPanel searchPanel = null; // Recherche dans les relevés saisis
Line 50... Line 76...
50
		
76
 
Line 51... Line -...
51
		
-
 
Line -... Line 77...
-
 
77
		
Line -... Line 78...
-
 
78
		// Informations 
52
		// Informations 
79
		
Line -... Line 80...
-
 
80
		private InfoPopup infoPopup=null; // Information complementaire sur un taxon (photo, repartition)
-
 
81
		
-
 
82
		
-
 
83
		Mediator() {
-
 
84
 
-
 
85
			
-
 
86
			// Recherche identifiant utilisateur connecte
-
 
87
			
53
		
88
			HTTPRequest.asyncGet(serviceBaseUrl + "/User/",
-
 
89
					new ResponseTextHandler() {
Line -... Line 90...
-
 
90
 
Line 54... Line 91...
54
		private InfoPopup infoPopup=null; // Information complementaire sur un taxon (photo, repartition)
91
						public void onCompletion(String str) {
Line -... Line 92...
-
 
92
							JSONValue jsonValue = JSONParser.parse(str);
Line -... Line 93...
-
 
93
							JSONArray jsonArray;
Line 55... Line 94...
55
		
94
							if ((jsonArray = jsonValue.isArray()) != null) {
56
 
95
									user = ((JSONString) jsonArray.get(0)).stringValue(); // Identifiant utilisateur ou identifiant de session si non connecte
57
		// Point d'entree (pour fin d'initialisation)
96
									connected = ((JSONBoolean) jsonArray.get(1)).booleanValue();  // Drapeau leve si utilisateur identifie
58
 
97
							}
Line 59... Line -...
59
		private Cel cel = null;
-
 
Line 60... Line 98...
60
 
98
							_Mediator();
-
 
99
						}
61
		
100
					});
Line -... Line 101...
-
 
101
 
-
 
102
		}
62
		Mediator() {
103
		
Line -... Line 104...
-
 
104
		// Fin initialisation
-
 
105
		
-
 
106
		private void _Mediator() {
Line -... Line 107...
-
 
107
			  
-
 
108
			// Navigateur
63
			
109
			
Line 64... Line -...
64
		}
-
 
65
		
110
			Viewport viewport = new Viewport();
66
		
111
			viewport.setStyleName("my-border-layout");
67
		// Methodes Private 
-
 
68
	
-
 
Line -... Line 112...
-
 
112
			viewport.setBorders(true);
69
		
113
			viewport.setLayout(new BorderLayout());
-
 
114
 
-
 
115
			
Line 70... Line -...
70
		
-
 
71
		/**
-
 
Line 72... Line 116...
72
		 * Recuperation du prefixe d'appel des services
116
			center = new WidgetContainer();
73
		 * @return prefix appel des service
-
 
74
		 */
-
 
75
 
-
 
76
		private String getServiceBaseUrlFromDictionnary() {
-
 
77
 
-
 
78
			Dictionary theme = Dictionary.getDictionary("Parameters");
-
 
79
			return theme.get("serviceBaseUrl");
-
 
80
 
-
 
81
		}
-
 
Line 82... Line -...
82
 
-
 
Line -... Line 117...
-
 
117
			center.setLayout(new BorderLayout());
-
 
118
			center.setBorders(true);
-
 
119
 
Line -... Line 120...
-
 
120
			west = new WidgetContainer();
-
 
121
			west.setLayout(new FillLayout());
-
 
122
			west.setBorders(true);
-
 
123
			
-
 
124
			south = new WidgetContainer();
-
 
125
			south.setLayout(new FillLayout());
-
 
126
			south.setBorders(true);
-
 
127
 
-
 
128
			north = new WidgetContainer();
-
 
129
			north.setLayout(new FillLayout());
-
 
130
			north.setBorders(true);
-
 
131
 
Line 83... Line -...
83
 
-
 
Line -... Line 132...
-
 
132
			    
-
 
133
			inventoryListView = new InventoryListView(this); // Liste de releves 
Line 84... Line -...
84
		// Appel aux services :
-
 
Line 85... Line 134...
85
		
134
			connexionView = new ConnexionView(this); // Identifiant de connection
86
 
135
		    
87
		/**
136
			inventoryFilterView = new InventoryFilterView(this); // Ensemble de filtres sur liste de releves
88
		 * Recherche distante et asynchrone de l'utilisateur connecte, en retour lancement methode initialisation
137
			entryView = new EntryView(this); // Formulaire de saisie
Line 89... Line 138...
89
		 * de l'appellant Cel. (initAsync)
138
			actionView = new ActionView(this); // Action sur releves saisis
-
 
139
		//	searchPanel = new SearchPanel(this); // Recherche dans releves
90
		 * 
140
			  
-
 
141
		        
-
 
142
			  
91
		 */
143
			//applicationPanel.add(searchPanel);
Line -... Line 144...
-
 
144
		      
-
 
145
			
-
 
146
		    BorderLayoutData westData = new BorderLayoutData(Style.WEST, 200, 150, 300);
-
 
147
		    westData.resizeable = true;
-
 
148
		    viewport.add(west, westData);
-
 
149
 
-
 
150
		    
92
		
151
		    BorderLayoutData centerData = new BorderLayoutData(Style.CENTER, 400, 400, 800);
Line 93... Line 152...
93
		private void getUserFromService() {
152
		    viewport.add(center, centerData);
94
 
153
 
95
 
154
 
Line 96... Line 155...
96
			HTTPRequest.asyncGet(serviceBaseUrl + "/User/",
155
		    BorderLayoutData northData = new BorderLayoutData(Style.NORTH, 20, 20, 20);
Line -... Line 156...
-
 
156
		    viewport.add(north, northData);
Line 97... Line 157...
97
					new ResponseTextHandler() {
157
 
98
 
158
		    BorderLayoutData southData = new BorderLayoutData(Style.SOUTH, 400, 400, 800);
Line 99... Line 159...
99
						public void onCompletion(String str) {
159
//		    viewport.add(south, southData);
Line 100... Line 160...
100
							JSONValue jsonValue = JSONParser.parse(str);
160
 
Line 176... Line 236...
176
			infoPopup.setImageUrl(value);
236
			infoPopup.setImageUrl(value);
177
		}
237
		}
Line -... Line 238...
-
 
238
		
-
 
239
		
-
 
240
		
178
		
241
		
179
 
242
 
180
		
243
		
181
		/**
244
		/**
Line 182... Line 245...
182
		 * Action prealable a l'ajout d'une observation : controle presence champs requis et lancement mise a jour 
245
		 * Action prealable a l'ajout d'une observation : controle presence champs requis et lancement mise a jour 
Line 183... Line 246...
183
		 * 
246
		 * 
184
		 */
247
		 */
185
		
248
		
186
		public void onAddInventoryItem() {
249
		public void onAddInventoryItem() {
Line 187... Line 250...
187
		
250
		
188
			// Lazy instantiation
251
			// Lazy instantiation
Line 189... Line 252...
189
			if (inventoryItem==null) {
252
			if (inventoryItem==null) {
Line 204... Line 267...
204
 
267
 
Line 205... Line 268...
205
		public void onModifyInventoryItem(String ordre) {
268
		public void onModifyInventoryItem(String ordre) {
206
 
269
 
207
		// Lazy instantiation
270
		// Lazy instantiation
208
		if (inventoryItem==null) {
271
		if (inventoryItem==null) {
Line 209... Line 272...
209
			registerInventoryItem(new InventoryItem());
272
			inventoryItem=new InventoryItem(this);
210
		}
273
		}
211
 
-
 
212
		inventoryItem.setContent(nameAssistant.getText(),nameAssistant.getValue(),locationAssistant.getText(),locationAssistant.getValue(),date.getText(),milieu.getText(),comment.getText(),ordre);
-
 
213
		inventoryItemList.updateElement();
-
 
214
 
-
 
215
		}
-
 
216
 
-
 
217
		
-
 
218
		public boolean inventoryItemIsValid() {
-
 
219
			// TODO : controle date
-
 
220
			
-
 
221
		    if (inventoryItem.getName().compareTo("")==0) {
-
 
222
		    	return false;
-
 
223
		    }
-
 
Line 224... Line 274...
224
		    else {
274
 
Line 239... Line 289...
239
		
289
		
240
		
290
		
Line 241... Line 291...
241
		public void onValidate(SourcesAutoCompleteAsyncTextBoxEvents sender,
291
		public void onValidate(SourcesAutoCompleteAsyncTextBoxEvents sender,
242
				  String str, String value) {
292
				  String str, String value) {
243
		
293
		
244
		  	if (getEntryPanel().getOrdre()==null) { // Nouvelle observation 
294
		  	if (entryView.getOrdre()==null) { // Nouvelle observation 
245
				     onAddInventoryItem(); 
295
				     onAddInventoryItem(); 
246
			  	}
296
			  	}
247
			else {
297
			else {
Line 248... Line 298...
248
			     onModifyInventoryItem(getEntryPanel().getOrdre());   // Modification d'une observation
298
			     onModifyInventoryItem(entryView.getOrdre());   // Modification d'une observation
Line 259... Line 309...
259
		 */
309
		 */
Line 260... Line 310...
260
		
310
		
Line -... Line 311...
-
 
311
	
-
 
312
		public void onInventoryUpdated(String location) {
-
 
313
			
-
 
314
			if (location.compareTo("")==0) {
261
	
315
				location="000null";
262
		public void onInventoryUpdated(String location) {
316
			}
Line 263... Line 317...
263
 
317
 
Line 264... Line 318...
264
			locationList.setLocation(location); // Mise a jour filtre localite
318
			locationFilterPanel.setLocation(location); // Mise a jour filtre localite
Line 273... Line 327...
273
		 * Action sur selection d'une observation : affichage du detail
327
		 * Action sur selection d'une observation : affichage du detail
274
		 */
328
		 */
Line 275... Line 329...
275
		
329
		
Line 276... Line 330...
276
		public void onInventoryItemSelected(String ordre) {
330
		public void onInventoryItemSelected(String ordre) {
277
		
331
		
Line 278... Line 332...
278
			entryPanel.setOrdre(ordre); // Mise a jour du formulaire de saisie avec l'element selectionne
332
			entryView.setOrdre(ordre); // Mise a jour du formulaire de saisie avec l'element selectionne
Line 279... Line 333...
279
			entryPanel.update();
333
			entryView.update();
280
			
334
			
281
		}
335
		}
Line 282... Line 336...
282
 
336
 
Line 283... Line 337...
283
		
337
		
Line 284... Line 338...
284
		/**
338
		/**
Line 307... Line 361...
307
		
361
		
Line 308... Line 362...
308
		public void onLogin(String user) {
362
		public void onLogin(String user) {
309
			
363
			
310
			
364
			
311
			this.user=user;
365
			this.user=user;
312
			topPanel.getSignLabel().setText(user+ " (deconnexion)");
366
			connexionView.getSignLabel().setText(user+ " (deconnexion)");
313
			inventoryItemList.setUser(user);
367
			inventoryListView.setUser(user);
314
			dateList.setUser(user);
368
			dateFilterPanel.setUser(user);
315
			stationList.setUser(user);
369
			stationFilterPanel.setUser(user);
Line 316... Line 370...
316
			entryPanel.setUser(user);
370
			entryView.setUser(user);
Line 327... Line 381...
327
		
381
		
Line 328... Line 382...
328
		
382
		
329
		public void onLogoff(String user) {
383
		public void onLogoff(String user) {
330
			
384
			
331
			this.user=user;
385
			this.user=user;
332
			topPanel.getSignLabel().setText("Connexion");
386
			connexionView.getSignLabel().setText("Connexion");
333
			inventoryItemList.setUser(user);
387
			inventoryListView.setUser(user);
334
			dateList.setUser(user);
388
			dateFilterPanel.setUser(user);
335
			stationList.setUser(user);
389
			stationFilterPanel.setUser(user);
336
			entryPanel.setUser(user);
390
			entryView.setUser(user);
Line 349... Line 403...
349
		public void onSearch(String search) {
403
		public void onSearch(String search) {
Line 350... Line 404...
350
	
404
	
351
			if (search.trim().compareTo("")==0) {
405
			if (search.trim().compareTo("")==0) {
352
				search="all";
406
				search="all";
353
			}
407
			}
354
			inventoryItemList.setSearch(search);
408
			inventoryListView.setSearch(search);
Line 355... Line 409...
355
			inventoryItemList.updateCount();
409
			inventoryListView.updateCount();
Line 356... Line 410...
356
			
410
			
Line 357... Line 411...
357
		}
411
		}
358
 
412
 
359
		
-
 
360
		
413
		
Line 361... Line 414...
361
		// Filtre  selection lieu
414
		
Line -... Line 415...
-
 
415
		// Filtre  selection lieu
362
		
416
		
363
		/**
417
		/**
Line -... Line 418...
-
 
418
		 * Action sur selection d'un lieu : affichage de la liste des taxons correspondants au filtrage
364
		 * Action sur selection d'un lieu : affichage de la liste des taxons correspondants
419
		 */
Line 365... Line 420...
365
		 * TODO : gerer asynchronicite ?
420
		
366
		 */
-
 
Line -... Line 421...
-
 
421
		public void onLocationSelected(String loc) {
-
 
422
	
-
 
423
			// Positionnement Filtre affichage
-
 
424
			inventoryListView.setLocation(loc);
-
 
425
			inventoryListView.updateCount();
367
		
426
 
368
		public void onLocationSelected(String loc) {
427
			// Affichage des filtres
Line 369... Line 428...
369
		
428
			inventoryListView.displayFilter();
Line 370... Line 429...
370
			inventoryItemList.setLocation(loc);
429
 
Line 387... Line 446...
387
		 * Action sur selection d'une station : affichage de la liste des taxons correspondants
446
		 * Action sur selection d'une station : affichage de la liste des taxons correspondants
388
		 */
447
		 */
Line 389... Line 448...
389
		
448
		
Line 390... Line 449...
390
		public void onStationSelected(String station) {
449
		public void onStationSelected(String station) {
391
 
450
 
Line 392... Line 451...
392
			inventoryItemList.setStation(station);
451
			inventoryListView.setStation(station);
Line 393... Line 452...
393
			inventoryItemList.updateCount();
452
			inventoryListView.updateCount();
Line 405... Line 464...
405
		 * Action sur selection d'une date : affichage de la liste des taxons correspondants
464
		 * Action sur selection d'une date : affichage de la liste des taxons correspondants
406
		 */
465
		 */
Line 407... Line 466...
407
		
466
		
Line 408... Line 467...
408
		public void onDateSelected(String date) {
467
		public void onDateSelected(String date) {
409
 
468
 
Line 410... Line 469...
410
			inventoryItemList.setDate(date);
469
			inventoryListView.setDate(date);
Line 411... Line 470...
411
			inventoryItemList.updateCount();
470
			inventoryListView.updateCount();
Line 412... Line 471...
412
			
471
			
Line 413... Line -...
413
			inventoryItemList.displayFilter();
-
 
414
 
-
 
415
 
-
 
416
 
-
 
417
		}
-
 
418
 
-
 
419
		// Declaration, enregistrement 
-
 
420
 
-
 
421
		/**
-
 
422
		 * Declaration InventoryItem  : une observation
-
 
423
		 * @param cel
-
 
424
		 */
-
 
425
 
-
 
426
		public void registerInventoryItem(InventoryItem inventoryItem) {
-
 
427
			
-
 
428
			this.inventoryItem=inventoryItem;
-
 
429
		}
-
 
430
 
-
 
431
 
-
 
432
		
-
 
433
		/**
-
 
434
		 * Declaration InventoryItemList  : liste d'observation
-
 
435
		 * @param inventoryItemList
-
 
436
		 */
-
 
437
		
-
 
438
		public void registerInventoryItemList(InventoryItemList inventoryItemList) {
-
 
439
			
-
 
440
			this.inventoryItemList=inventoryItemList;
-
 
441
		
-
 
442
		}
-
 
443
	
-
 
444
		/**
-
 
445
		 * Declaration LocationList : filtre lieu observation
-
 
446
		 * @param locationList
-
 
447
		 */
-
 
448
		
-
 
449
		public void registerLocationList(LocationList locationList) {
-
 
450
			
-
 
451
			this.locationList=locationList;
-
 
452
		}
-
 
453
	
-
 
454
		
-
 
455
		
-
 
456
		/**
-
 
457
		 * Declaration DateList : filtre date observation
-
 
458
		 * @param locationList
-
 
459
		 */
-
 
460
		
-
 
461
		public void registerDateList(DateList dateList) {
-
 
462
			
-
 
463
			this.dateList=dateList;
-
 
464
		}
-
 
465
 
-
 
466
		
-
 
467
		/**
-
 
468
		 * Declaration InfoPopup : information complementaire taxon en cours
-
 
469
		 * @param infoPopup
-
 
470
		 */
-
 
471
		
-
 
472
		public void registerInfoPopup(InfoPopup infoPopup) {
-
 
473
			
-
 
474
			this.infoPopup=infoPopup;
-
 
475
		}
-
 
476
 
-
 
477
 
-
 
478
		
-
 
479
		/**
-
 
480
		 * Declaration StationList : filtre par station
-
 
481
		 * @param locationList
-
 
482
		 */
-
 
483
		
-
 
484
		public void registerStationList(StationList stationList) {
-
 
485
			
-
 
486
			this.stationList=stationList;
-
 
487
		}
-
 
488
 
-
 
489
		
-
 
490
		
-
 
491
		/**
-
 
492
		 * Declaration Cel : point d'entree
-
 
493
		 * @param cel
-
 
494
		 */
-
 
495
 
-
 
496
		public void registerCel(Cel cel) {
-
 
497
			
-
 
498
			this.cel=cel;
-
 
499
		}
-
 
500
 
-
 
501
		
-
 
502
		/**
-
 
503
		 * Declaration NameAssistant  : completion nom scientifique
-
 
504
		 * @param nameassistant
-
 
505
		 */
-
 
506
		
-
 
507
		public void registerNameAssistant(NameAssistant nameAssistant) {
-
 
508
			this.nameAssistant=nameAssistant;
-
 
509
			
-
 
510
		}
-
 
511
		
-
 
512
		/**
-
 
Line 513... Line 472...
513
		 * Declaration LocationAssistant : completion commune
472
			inventoryListView.displayFilter();
514
		 * @param locationassistant
473
 
Line 556... Line 515...
556
			this.milieu=milieu;
515
			this.milieu=milieu;
Line 557... Line 516...
557
			
516
			
Line 558... Line 517...
558
		}
517
		}
559
 
518
		
-
 
519
		/**
560
		/**
520
		 * Declaration commentaire b 
Line -... Line 521...
-
 
521
		 * @param commentaire
-
 
522
		 */
Line 561... Line -...
561
		 * Declaration Entry Panel : formulaire de saisie observation
-
 
562
		 */
-
 
563
 
523
		
Line 564... Line 524...
564
		
524
		public void registerComment(TextBox comment) {
565
	    public void  registerEntryPanel(EntryPanel entryPanel) {
525
			this.comment=comment;
-
 
526
			
566
	    	this.entryPanel=entryPanel;
527
		}
Line -... Line 528...
-
 
528
		
-
 
529
 
Line 567... Line -...
567
		}
-
 
568
 
-
 
569
 
530
		/**
Line 570... Line 531...
570
		/**
531
		 * Declaration NameAssistant  : completion nom scientifique
571
		 * Declaration Action Panel : actions sur liste des observations
532
		 * @param nameassistant
-
 
533
		 */
572
		 */
534
		
Line -... Line 535...
-
 
535
		public void registerNameAssistant(NameAssistant nameAssistant) {
Line 573... Line -...
573
 
-
 
574
	    
536
			this.nameAssistant=nameAssistant;
575
	    public void  registerActionPanel(ActionPanel actionPanel) {
537
			
Line 576... Line 538...
576
	    	this.actionPanel=actionPanel;
538
		}
577
		}
539
		
578
 
540
	
579
 
541
		/**
Line 580... Line 542...
580
		/**
542
		 * Declaration DateFilterPanel : filtre date observation
581
		 * Declaration TopPanel : panneau de connexion
543
		 * @param locationList
Line 582... Line 544...
582
		 */
544
		 */
Line -... Line 545...
-
 
545
		
-
 
546
		public void registerDateFilterPanel(DateFilterPanel dateFilterPanel) {
-
 
547
			
-
 
548
			this.dateFilterPanel=dateFilterPanel;
Line -... Line 549...
-
 
549
		}
-
 
550
 
-
 
551
		
-
 
552
 
-
 
553
		/**
-
 
554
		 * Declaration LocationAssistant : completion commune
583
	    
555
		 * @param locationassistant
584
 
556
		 */
585
	    public void  registerTopPanel(TopPanel topPanel) {
557
		
586
	    	this.topPanel=topPanel;
558
		public void registerLocationAssistant(LocationAssistant locationAssistant) {
Line 587... Line 559...
587
		}
559
			this.locationAssistant=locationAssistant;
588
 
-
 
Line -... Line 560...
-
 
560
			
589
	    
561
		}
Line -... Line 562...
-
 
562
 
590
	    
563
		/**
Line 591... Line 564...
591
		/**
564
		 * Declaration LocationFilterPanel : filtre lieu observation
592
		 * Declaration commentaire 
565
		 * @param locationList
Line 636... Line 609...
636
 
609
 
637
		public void setUser(String user) {
610
		public void setUser(String user) {
638
			this.user=user;
611
			this.user=user;
Line -... Line 612...
-
 
612
		}
-
 
613
 
-
 
614
		public WidgetContainer getCenterContainer() {
-
 
615
			return center;
-
 
616
		}
-
 
617
		
-
 
618
		public WidgetContainer getNorthContainer() {
Line 639... Line 619...
639
		}
619
			return north;
640
 
620
		}
641
		
621
 
Line 642... Line 622...
642
		public InventoryItemList getInventoryItemList() {
622
		public WidgetContainer getWestContainer() {
643
			return inventoryItemList;
623
			return west;
644
		}
624
		}
Line -... Line 625...
-
 
625
 
645
 
626
		public WidgetContainer getSouthContainer() {
646
		public LocationList getLocationList() {
627
			return south;
647
			return locationList;
628
		}
Line -... Line 629...
-
 
629
 
-
 
630
		
-
 
631
		public InventoryListView getInventoryListView() {
Line 648... Line 632...
648
		}
632
			return inventoryListView;
649
 
633
		}
650
		public DateList getDateList() {
634
 
Line 662... Line 646...
662
 
646
 
663
		public InventoryItem getInventoryItem() {
647
		public InventoryItem getInventoryItem() {
664
			return inventoryItem;
648
			return inventoryItem;
Line 665... Line 649...
665
		}
649
		}
666
 
650
 
667
		public EntryPanel getEntryPanel() {
651
		public EntryView entryView() {
Line 668... Line 652...
668
			return entryPanel;
652
			return entryView;
669
		}
653
		}
670
 
654
 
Line 671... Line 655...
671
 
655
 
672
		public LeftPanel getLeftPanel() {
656
		public InventoryFilterView getInventoryFilterView() {
673
			return leftPanel;
657
			return inventoryFilterView;
Line 689... Line 673...
689
			
673
			
690
			return this.connected;
674
			return this.connected;
Line 691... Line 675...
691
		}
675
		}
Line 692... Line 676...
692
 
676
 
693
		
677
		
Line 694... Line 678...
694
		public ActionPanel getActionPanel() {
678
		public ActionView getActionView() {