Subversion Repositories eFlore/Archives.cel-v1

Rev

Rev 14 | Rev 24 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14 Rev 23
1
package org.tela_botanica.client;
1
package org.tela_botanica.client;
2
 
2
 
3
 
3
 
4
// TODO : sortie User vers une classe ...
4
// TODO : sortie User vers une classe ...
5
// TODO : sortie les boutons supprimer et exporter et inclure ici
5
// TODO : sortie les boutons supprimer et exporter et inclure ici
6
 
6
 
7
import com.google.gwt.i18n.client.Dictionary;
7
import com.google.gwt.i18n.client.Dictionary;
8
import com.google.gwt.json.client.JSONArray;
8
import com.google.gwt.json.client.JSONArray;
9
import com.google.gwt.json.client.JSONBoolean;
9
import com.google.gwt.json.client.JSONBoolean;
10
import com.google.gwt.json.client.JSONParser;
10
import com.google.gwt.json.client.JSONParser;
11
import com.google.gwt.json.client.JSONString;
11
import com.google.gwt.json.client.JSONString;
12
import com.google.gwt.json.client.JSONValue;
12
import com.google.gwt.json.client.JSONValue;
13
import com.google.gwt.user.client.HTTPRequest;
13
import com.google.gwt.user.client.HTTPRequest;
14
import com.google.gwt.user.client.ResponseTextHandler;
14
import com.google.gwt.user.client.ResponseTextHandler;
15
import com.google.gwt.user.client.ui.Label;
15
import com.google.gwt.user.client.ui.Label;
16
import com.google.gwt.user.client.ui.TextBox;
16
import com.google.gwt.user.client.ui.TextBox;
17
 
17
 
18
public class Mediator {
18
public class Mediator {
19
		
19
		
20
		
20
		
21
		private String serviceBaseUrl = getServiceBaseUrlFromDictionnary();
21
		private String serviceBaseUrl = getServiceBaseUrlFromDictionnary();
22
		private String user = null;
22
		private String user = null;
23
		private InventoryItemList inventoryItemList = null;
23
		private InventoryItemList inventoryItemList = null;
24
		private LocationList locationList = null;
24
		private LocationList locationList = null;
25
		private DateList dateList = null;
25
		private DateList dateList = null;
26
		private StationList stationList = null;
26
		private StationList stationList = null;
27
		private NameAssistant nameAssistant=null;
27
		private NameAssistant nameAssistant=null;
28
		private LocationAssistant locationAssistant=null;
28
		private LocationAssistant locationAssistant=null;
29
		private InventoryItem inventoryItem=null;
29
		private InventoryItem inventoryItem=null;
30
		private EntryPanel entryPanel=null;
30
		private EntryPanel entryPanel=null;
31
		private ActionPanel actionPanel=null;
-
 
32
		private SearchPanel searchPanel=null;
-
 
33
		private LoginDialog loginDialog=null;
-
 
34
		private TopPanel topPanel=null;
31
		private TopPanel topPanel=null;
35
		
32
		
36
		private TextBox date = null; 
33
		private TextBox date = null; 
37
		private TextBox complementLocation = null; 
34
		private TextBox complementLocation = null; 
38
		private TextBox comment = null;
35
		private TextBox comment = null;
39
 
36
 
40
		boolean connected=false;
37
		boolean connected=false;
41
 
38
 
42
 
39
 
43
		private Cel cel = null;
40
		private Cel cel = null;
44
 
41
 
45
		
42
		
46
		Mediator() {
43
		Mediator() {
47
			
44
			
48
			
45
			
49
		}
46
		}
50
	
47
	
51
		/**
48
		/**
52
		 * Recuperation information utilisateur
49
		 * Recuperation information utilisateur
53
		 *
50
		 *
54
		 */
51
		 */
55
		
52
		
56
		public void initUser() {
53
		public void initUser() {
57
			getUserFromService();
54
			getUserFromService();
58
			
55
			
59
		}
56
		}
60
		
57
		
61
		
58
		
62
		/**
59
		/**
63
		 * Action initialisation
60
		 * Action initialisation
64
		 */
61
		 */
65
		
62
		
66
	
63
	
67
		public void onInit() {
64
		public void onInit() {
68
 
65
 
69
			
66
			
70
			locationList.setLocation("all");
67
			locationList.setLocation("all");
71
			locationList.updateCount();
68
			locationList.updateCount();
72
 
69
 
73
			this.onLocationSelected("all");
70
			this.onLocationSelected("all");
74
			
71
			
75
		}
72
		}
76
		
73
		
77
		
74
		
78
		/**
75
		/**
79
		 * Action suite ajout, modification, suppression element inventaire
76
		 * Action suite ajout, modification, suppression element inventaire
80
		 */
77
		 */
81
		
78
		
82
	
79
	
83
		public void onInventoryUpdated(String location) {
80
		public void onInventoryUpdated(String location) {
84
 
81
 
85
			
82
			
86
			locationList.setLocation(location);
83
			locationList.setLocation(location);
87
			locationList.updateCount();
84
			locationList.updateCount();
88
 
85
 
89
			this.onLocationSelected(location);
86
			this.onLocationSelected(location);
90
			
87
			
91
		}
88
		}
92
		
89
		
93
		
90
		
94
		/**
91
		/**
95
		 * Action sur selection d'une observation : affichage du detail
92
		 * Action sur selection d'une observation : affichage du detail
96
		 */
93
		 */
97
		
94
		
98
		public void onInventoryItemSelected(String ordre) {
95
		public void onInventoryItemSelected(String ordre) {
99
		
96
		
100
			entryPanel.setOrdre(ordre);
97
			entryPanel.setOrdre(ordre);
101
			entryPanel.update();
98
			entryPanel.update();
102
			
99
			
103
			
100
			
104
		}
101
		}
105
 
102
 
106
		
103
		
107
		/**
104
		/**
108
		 * Action sur recherche  : affichage de la liste des taxons correspondants
105
		 * Action sur recherche  : affichage de la liste des taxons correspondants
109
		 */
106
		 */
110
		
107
		
111
		public void onSearch(String search) {
108
		public void onSearch(String search) {
112
	
109
	
113
			if (search.trim().compareTo("")==0) {
110
			if (search.trim().compareTo("")==0) {
114
				search="all";
111
				search="all";
115
			}
112
			}
116
			inventoryItemList.setSearch(search);
113
			inventoryItemList.setSearch(search);
117
			inventoryItemList.updateCount();
114
			inventoryItemList.updateCount();
118
			
115
			
119
		}
116
		}
120
 
117
 
121
		
118
		
122
		
119
		
123
		/**
120
		/**
124
		 * Action sur selection d'un lieu : affichage de la liste des taxons correspondants
121
		 * Action sur selection d'un lieu : affichage de la liste des taxons correspondants
125
		 * TODO : gerer asynchronicite ?
122
		 * TODO : gerer asynchronicite ?
126
		 */
123
		 */
127
		
124
		
128
		public void onLocationSelected(String loc) {
125
		public void onLocationSelected(String loc) {
129
		
126
		
130
			inventoryItemList.setLocation(loc);
127
			inventoryItemList.setLocation(loc);
131
			inventoryItemList.setDate("all");
128
			inventoryItemList.setDate("all");
132
			inventoryItemList.setStation("all");
129
			inventoryItemList.setStation("all");
133
			inventoryItemList.updateCount();
130
			inventoryItemList.updateCount();
134
			
131
			
135
			dateList.setLocation(loc);
132
			dateList.setLocation(loc);
136
			dateList.setDate("all");
133
			dateList.setDate("all");
137
			dateList.updateCount();
134
			dateList.updateCount();
138
			stationList.setLocation(loc);
135
			stationList.setLocation(loc);
139
			stationList.setStation("all");
136
			stationList.setStation("all");
140
			stationList.updateCount();
137
			stationList.updateCount();
141
			
138
			
142
		}
139
		}
143
		
140
		
144
		/**
141
		/**
145
		 * Action sur login
142
		 * Action sur login
146
		 * @param user
143
		 * @param user
147
		 */
144
		 */
148
		
145
		
149
		
146
		
150
		public void onLogin(String user) {
147
		public void onLogin(String user) {
151
			
148
			
152
			
149
			
153
			this.user=user;
150
			this.user=user;
154
			topPanel.getSignLabel().setText(user+ " (deconnexion)");
151
			topPanel.getSignLabel().setText(user+ " (deconnexion)");
155
			inventoryItemList.setUser(user);
152
			inventoryItemList.setUser(user);
156
			dateList.setUser(user);
153
			dateList.setUser(user);
157
			stationList.setUser(user);
154
			stationList.setUser(user);
158
			entryPanel.setUser(user);
155
			entryPanel.setUser(user);
159
			locationList.setUser(user);
156
			locationList.setUser(user);
160
			this.onInit();
157
			this.onInit();
161
			
158
			
162
		}
159
		}
163
		
160
		
164
		
161
		
165
		/**
162
		/**
166
		 * Action sur logoff
163
		 * Action sur logoff
167
		 * @param user
164
		 * @param user
168
		 */
165
		 */
169
		
166
		
170
		
167
		
171
		public void onLogoff(String user) {
168
		public void onLogoff(String user) {
172
			
169
			
173
			this.user=user;
170
			this.user=user;
174
			topPanel.getSignLabel().setText("Connexion");
171
			topPanel.getSignLabel().setText("Connexion");
175
			inventoryItemList.setUser(user);
172
			inventoryItemList.setUser(user);
176
			dateList.setUser(user);
173
			dateList.setUser(user);
177
			stationList.setUser(user);
174
			stationList.setUser(user);
178
			entryPanel.setUser(user);
175
			entryPanel.setUser(user);
179
			locationList.setUser(user);
176
			locationList.setUser(user);
180
			this.onInit();
177
			this.onInit();
181
			
178
			
182
		}
179
		}
183
 
180
 
184
		/**
181
		/**
185
		 * Action sur selection d'une station : affichage de la liste des taxons correspondants
182
		 * Action sur selection d'une station : affichage de la liste des taxons correspondants
186
		 */
183
		 */
187
		
184
		
188
		public void onStationSelected(String station) {
185
		public void onStationSelected(String station) {
189
 
186
 
190
			inventoryItemList.setStation(station);
187
			inventoryItemList.setStation(station);
191
			inventoryItemList.updateCount();
188
			inventoryItemList.updateCount();
192
 
189
 
193
		}
190
		}
194
 
191
 
195
 
192
 
196
 
193
 
197
		
194
		
198
		/**
195
		/**
199
		 * Action sur selection d'une date : affichage de la liste des taxons correspondants
196
		 * Action sur selection d'une date : affichage de la liste des taxons correspondants
200
		 */
197
		 */
201
		
198
		
202
		public void onDateSelected(String date) {
199
		public void onDateSelected(String date) {
203
 
200
 
204
			inventoryItemList.setDate(date);
201
			inventoryItemList.setDate(date);
205
			inventoryItemList.updateCount();
202
			inventoryItemList.updateCount();
206
 
203
 
207
		}
204
		}
208
 
205
 
209
		
206
		
210
		
207
		
211
		
208
		
212
		/**
209
		/**
213
		 * Action prealable à l'ajout d'une observation : controle presence champs requis et lancement mise a jour 
210
		 * Action prealable à l'ajout d'une observation : controle presence champs requis et lancement mise a jour 
214
		 * 
211
		 * 
215
		 */
212
		 */
216
		
213
		
217
		public void onAddInventoryItem() {
214
		public void onAddInventoryItem() {
218
		
215
		
219
			// TODO : singleton ?
216
			// TODO : singleton ?
220
			registerInventoryItem(new InventoryItem(nameAssistant.getText(),nameAssistant.getValue(),locationAssistant.getText(),locationAssistant.getValue(),date.getText(),complementLocation.getText(),comment.getText(),"null"));
217
			registerInventoryItem(new InventoryItem(nameAssistant.getText(),nameAssistant.getValue(),locationAssistant.getText(),locationAssistant.getValue(),date.getText(),complementLocation.getText(),comment.getText(),"null"));
221
			inventoryItemList.addelement();
218
			inventoryItemList.addelement();
222
			
219
			
223
		}
220
		}
224
 
221
 
225
		
222
		
226
		/**
223
		/**
227
		 * Action prealable à la modification d'une observation : controle presence champs requis et lancement mise a jour 
224
		 * Action prealable à la modification d'une observation : controle presence champs requis et lancement mise a jour 
228
		 * 
225
		 * 
229
		 */
226
		 */
230
 
227
 
231
		public void onModifyInventoryItem(String ordre) {
228
		public void onModifyInventoryItem(String ordre) {
232
 
229
 
233
		// TODO : singleton ?
230
		// TODO : singleton ?
234
		registerInventoryItem(new InventoryItem(nameAssistant.getText(),nameAssistant.getValue(),locationAssistant.getText(),locationAssistant.getValue(),date.getText(),complementLocation.getText(),comment.getText(),ordre));
231
		registerInventoryItem(new InventoryItem(nameAssistant.getText(),nameAssistant.getValue(),locationAssistant.getText(),locationAssistant.getValue(),date.getText(),complementLocation.getText(),comment.getText(),ordre));
235
		inventoryItemList.updateElement();
232
		inventoryItemList.updateElement();
236
 
233
 
237
		}
234
		}
238
 
235
 
239
		
236
		
240
		public boolean inventoryItemIsValid() {
237
		public boolean inventoryItemIsValid() {
241
			// TODO : controle date
238
			// TODO : controle date
242
			
239
			
243
		    if (inventoryItem.getName().compareTo("")==0) {
240
		    if (inventoryItem.getName().compareTo("")==0) {
244
		    	return false;
241
		    	return false;
245
		    }
242
		    }
246
		    else {
243
		    else {
247
		    	return true;
244
		    	return true;
248
		    }
245
		    }
249
			
246
			
250
		}
247
		}
251
 
248
 
252
		/**
249
		/**
253
		 * Declaration InventoryItem
250
		 * Declaration InventoryItem
254
		 * @param cel
251
		 * @param cel
255
		 */
252
		 */
256
 
253
 
257
		public void registerInventoryItem(InventoryItem inventoryItem) {
254
		public void registerInventoryItem(InventoryItem inventoryItem) {
258
			
255
			
259
			this.inventoryItem=inventoryItem;
256
			this.inventoryItem=inventoryItem;
260
		}
257
		}
261
 
258
 
262
 
259
 
263
		
260
		
264
		
261
		
265
		/**
262
		/**
266
		 * Declaration InventoryItemList 
263
		 * Declaration InventoryItemList 
267
		 * @param inventoryItemList
264
		 * @param inventoryItemList
268
		 */
265
		 */
269
		
266
		
270
		public void registerInventoryItemList(InventoryItemList inventoryItemList) {
267
		public void registerInventoryItemList(InventoryItemList inventoryItemList) {
271
			
268
			
272
			this.inventoryItemList=inventoryItemList;
269
			this.inventoryItemList=inventoryItemList;
273
		
270
		
274
		}
271
		}
275
	
272
	
276
		/**
273
		/**
277
		 * Declaration LocationList
274
		 * Declaration LocationList
278
		 * @param locationList
275
		 * @param locationList
279
		 */
276
		 */
280
		
277
		
281
		public void registerLocationList(LocationList locationList) {
278
		public void registerLocationList(LocationList locationList) {
282
			
279
			
283
			this.locationList=locationList;
280
			this.locationList=locationList;
284
		}
281
		}
285
	
282
	
286
		
283
		
287
		
284
		
288
		/**
285
		/**
289
		 * Declaration DateList
286
		 * Declaration DateList
290
		 * @param locationList
287
		 * @param locationList
291
		 */
288
		 */
292
		
289
		
293
		public void registerDateList(DateList dateList) {
290
		public void registerDateList(DateList dateList) {
294
			
291
			
295
			this.dateList=dateList;
292
			this.dateList=dateList;
296
		}
293
		}
297
 
294
 
298
		
295
		
299
		/**
296
		/**
300
		 * Declaration StationList
297
		 * Declaration StationList
301
		 * @param locationList
298
		 * @param locationList
302
		 */
299
		 */
303
		
300
		
304
		public void registerStationList(StationList stationList) {
301
		public void registerStationList(StationList stationList) {
305
			
302
			
306
			this.stationList=stationList;
303
			this.stationList=stationList;
307
		}
304
		}
308
 
305
 
309
		
306
		
310
		
307
		
311
		/**
308
		/**
312
		 * Declaration Cel
309
		 * Declaration Cel
313
		 * @param cel
310
		 * @param cel
314
		 */
311
		 */
315
 
312
 
316
		public void registerCel(Cel cel) {
313
		public void registerCel(Cel cel) {
317
			
314
			
318
			this.cel=cel;
315
			this.cel=cel;
319
		}
316
		}
320
 
317
 
321
		
318
		
322
		/**
319
		/**
323
		 * Declaration NameAssistant 
320
		 * Declaration NameAssistant 
324
		 * @param nameassistant
321
		 * @param nameassistant
325
		 */
322
		 */
326
		
323
		
327
		public void registerNameAssistant(NameAssistant nameAssistant) {
324
		public void registerNameAssistant(NameAssistant nameAssistant) {
328
			this.nameAssistant=nameAssistant;
325
			this.nameAssistant=nameAssistant;
329
			
326
			
330
		}
327
		}
331
		
328
		
332
		/**
329
		/**
333
		 * Declaration LocationAssistant 
330
		 * Declaration LocationAssistant 
334
		 * @param locationassistant
331
		 * @param locationassistant
335
		 */
332
		 */
336
		
333
		
337
		public void registerLocationAssistant(LocationAssistant locationAssistant) {
334
		public void registerLocationAssistant(LocationAssistant locationAssistant) {
338
			this.locationAssistant=locationAssistant;
335
			this.locationAssistant=locationAssistant;
339
			
336
			
340
		}
337
		}
341
 
338
 
342
		
339
		
343
		
340
		
344
		/**
341
		/**
345
		 * Declaration date
342
		 * Declaration date
346
		 * @param date
343
		 * @param date
347
		 */
344
		 */
348
		
345
		
349
		public void registerDate(TextBox date) {
346
		public void registerDate(TextBox date) {
350
			this.date=date;
347
			this.date=date;
351
			
348
			
352
		}
349
		}
353
	
350
	
354
		
351
		
355
		
352
		
356
		/**
353
		/**
357
		 * Declaration complementLocation
354
		 * Declaration complementLocation
358
		 * @param complementLocation
355
		 * @param complementLocation
359
		 */
356
		 */
360
		
357
		
361
		public void registerComplementLocation(TextBox complementLocation) {
358
		public void registerComplementLocation(TextBox complementLocation) {
362
			this.complementLocation=complementLocation;
359
			this.complementLocation=complementLocation;
363
			
360
			
364
		}
361
		}
365
		
362
		
366
		
363
		
367
	    public void  registerEntryPanel(EntryPanel entryPanel) {
364
	    public void  registerEntryPanel(EntryPanel entryPanel) {
368
	    	this.entryPanel=entryPanel;
365
	    	this.entryPanel=entryPanel;
369
		}
366
		}
370
 
367
 
371
	    
368
	    
372
		
-
 
373
	    public void  registerActionPanel(ActionPanel actionPanel) {
-
 
374
	    	this.actionPanel=actionPanel;
-
 
375
		}
-
 
376
 
-
 
377
	
-
 
378
		
-
 
379
	    public void  registerSearchPanel(SearchPanel searchPanel) {
-
 
380
	    	this.searchPanel=searchPanel;
-
 
381
		}
369
		
382
 
370
 
383
	    public void  registerTopPanel(TopPanel topPanel) {
371
	    public void  registerTopPanel(TopPanel topPanel) {
384
	    	this.topPanel=topPanel;
372
	    	this.topPanel=topPanel;
385
		}
373
		}
386
 
-
 
387
	    
-
 
388
	    
-
 
389
	    public void  registerLoginDialog(LoginDialog loginDialog) {
-
 
390
	    	this.loginDialog=loginDialog;
-
 
391
		}
-
 
392
 
374
 
393
	    
375
	    
394
	    
376
	    
395
		/**
377
		/**
396
		 * Declaration commentaire 
378
		 * Declaration commentaire 
397
		 * @param commentaire
379
		 * @param commentaire
398
		 */
380
		 */
399
		
381
		
400
		public void registerComment(TextBox comment) {
382
		public void registerComment(TextBox comment) {
401
			this.comment=comment;
383
			this.comment=comment;
402
			
384
			
403
		}
385
		}
404
		
386
		
405
 
387
 
406
		
388
		
407
 
389
 
408
		/**
390
		/**
409
		 * Recherche distante et asynchrone de l'utilisateur connecté, en retour lancement methode initialisation
391
		 * Recherche distante et asynchrone de l'utilisateur connecté, en retour lancement methode initialisation
410
		 * de l'appellant Cel. (initAsync)
392
		 * de l'appellant Cel. (initAsync)
411
		 * 
393
		 * 
412
		 */
394
		 */
413
		
395
		
414
		private void getUserFromService() {
396
		private void getUserFromService() {
415
 
397
 
416
 
398
 
417
			HTTPRequest.asyncGet(serviceBaseUrl + "/User/",
399
			HTTPRequest.asyncGet(serviceBaseUrl + "/User/",
418
					new ResponseTextHandler() {
400
					new ResponseTextHandler() {
419
 
401
 
420
						public void onCompletion(String str) {
402
						public void onCompletion(String str) {
421
							JSONValue jsonValue = JSONParser.parse(str);
403
							JSONValue jsonValue = JSONParser.parse(str);
422
							JSONArray jsonArray;
404
							JSONArray jsonArray;
423
							if ((jsonArray = jsonValue.isArray()) != null) {
405
							if ((jsonArray = jsonValue.isArray()) != null) {
424
									user = ((JSONString) jsonArray.get(0)).stringValue();
406
									user = ((JSONString) jsonArray.get(0)).stringValue();
425
									connected = ((JSONBoolean) jsonArray.get(1)).booleanValue();
407
									connected = ((JSONBoolean) jsonArray.get(1)).booleanValue();
426
							}
408
							}
427
							cel.initAsync();
409
							cel.initAsync();
428
						}
410
						}
429
					});
411
					});
430
 
412
 
431
		}
413
		}
432
	
414
	
433
		/**
415
		/**
434
		 * Accesseur Url de base
416
		 * Accesseur Url de base
435
		 * @return Url de base
417
		 * @return Url de base
436
		 */
418
		 */
437
		
419
		
438
		public String getServiceBaseUrl() {
420
		public String getServiceBaseUrl() {
439
			
421
			
440
			return serviceBaseUrl;
422
			return serviceBaseUrl;
441
 
423
 
442
		}
424
		}
443
 
425
 
444
		
426
		
445
		/**
427
		/**
446
		 * Recuperation du prefixe d'appel des services
428
		 * Recuperation du prefixe d'appel des services
447
		 * @return prefix appel des service
429
		 * @return prefix appel des service
448
		 */
430
		 */
449
 
431
 
450
		private String getServiceBaseUrlFromDictionnary() {
432
		private String getServiceBaseUrlFromDictionnary() {
451
 
433
 
452
			Dictionary theme = Dictionary.getDictionary("Parameters");
434
			Dictionary theme = Dictionary.getDictionary("Parameters");
453
			return theme.get("serviceBaseUrl");
435
			return theme.get("serviceBaseUrl");
454
 
436
 
455
		}
437
		}
456
 
438
 
457
 
439
 
458
		/**
440
		/**
459
		 *  Accesseur Utilisateur
441
		 *  Accesseur Utilisateur
460
		 * @return utilisateur connecté ou identifiant de session
442
		 * @return utilisateur connecté ou identifiant de session
461
		 */
443
		 */
462
		
444
		
463
		public String getUser() {
445
		public String getUser() {
464
			return user;
446
			return user;
465
		}
447
		}
466
 
448
 
467
		
449
		
468
 
450
 
469
		public void setUser(String user) {
451
		public void setUser(String user) {
470
			this.user=user;
452
			this.user=user;
471
		}
453
		}
472
 
454
 
473
 
455
 
474
		
456
		
475
		public InventoryItemList getInventoryItemList() {
457
		public InventoryItemList getInventoryItemList() {
476
			return inventoryItemList;
458
			return inventoryItemList;
477
		}
459
		}
478
 
460
 
479
		public LocationList getLocationList() {
461
		public LocationList getLocationList() {
480
			return locationList;
462
			return locationList;
481
		}
463
		}
482
 
464
 
483
		public DateList getDateList() {
465
		public DateList getDateList() {
484
			return dateList;
466
			return dateList;
485
		}
467
		}
486
 
468
 
487
		
469
		
488
		public NameAssistant getNameAssistant() {
470
		public NameAssistant getNameAssistant() {
489
			return nameAssistant;
471
			return nameAssistant;
490
		}
472
		}
491
 
473
 
492
		public LocationAssistant getLocationAssistant() {
474
		public LocationAssistant getLocationAssistant() {
493
			return locationAssistant;
475
			return locationAssistant;
494
		}
476
		}
495
 
477
 
496
		public InventoryItem getInventoryItem() {
478
		public InventoryItem getInventoryItem() {
497
			return inventoryItem;
479
			return inventoryItem;
498
		}
480
		}
499
 
481
 
500
		public EntryPanel getEntryPanel() {
482
		public EntryPanel getEntryPanel() {
501
			return entryPanel;
483
			return entryPanel;
502
		}
484
		}
503
 
485
 
504
 
486
 
505
		public void setConnected(boolean connected) {
487
		public void setConnected(boolean connected) {
506
		
488
		
507
			this.connected=connected;
489
			this.connected=connected;
508
		}
490
		}
509
		
491
		
510
		public boolean getConnected() {
492
		public boolean getConnected() {
511
			
493
			
512
			return this.connected;
494
			return this.connected;
513
		}
495
		}
514
 
496
 
515
 
497
 
516
	}
498
	}