Subversion Repositories eFlore/Archives.cel-v1

Rev

Rev 23 | Rev 25 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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