Subversion Repositories eFlore/Archives.cel-v1

Rev

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

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