Subversion Repositories eFlore/Archives.cel-v1

Rev

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

Rev 29 Rev 30
Line 14... Line 14...
14
 * the License.
14
 * the License.
15
 */
15
 */
16
package org.tela_botanica.client;
16
package org.tela_botanica.client;
Line -... Line 17...
-
 
17
 
17
 
18
 
18
 
19
import com.google.gwt.http.client.URL;
19
import com.google.gwt.json.client.JSONArray;
20
import com.google.gwt.json.client.JSONArray;
20
import com.google.gwt.json.client.JSONParser;
21
import com.google.gwt.json.client.JSONParser;
21
import com.google.gwt.json.client.JSONString;
22
import com.google.gwt.json.client.JSONString;
22
import com.google.gwt.json.client.JSONValue;
23
import com.google.gwt.json.client.JSONValue;
23
import com.google.gwt.user.client.HTTPRequest;
-
 
Line 24... Line 24...
24
import com.google.gwt.user.client.ResponseTextHandler;
24
import com.google.gwt.user.client.HTTPRequest;
25
import com.google.gwt.user.client.ui.VerticalPanel;
-
 
26
 
-
 
27
import net.mygwt.ui.client.data.Model;  
25
import com.google.gwt.user.client.ResponseTextHandler;
28
import net.mygwt.ui.client.event.BaseEvent;
26
 
29
import net.mygwt.ui.client.event.SelectionListener;
27
import net.mygwt.ui.client.data.Model;  
30
import net.mygwt.ui.client.viewer.IAsyncContentCallback;  
28
import net.mygwt.ui.client.viewer.IAsyncContentCallback;  
31
import net.mygwt.ui.client.viewer.IAsyncTreeContentProvider;  
29
import net.mygwt.ui.client.viewer.IAsyncTreeContentProvider;  
32
import net.mygwt.ui.client.viewer.IElementComparer;
30
import net.mygwt.ui.client.viewer.IElementComparer;
33
import net.mygwt.ui.client.viewer.ISelectionChangedListener;
31
import net.mygwt.ui.client.viewer.ISelectionChangedListener;
34
import net.mygwt.ui.client.viewer.ModelLabelProvider;  
32
import net.mygwt.ui.client.viewer.ModelLabelProvider;  
35
import net.mygwt.ui.client.viewer.SelectionChangedEvent;
-
 
36
import net.mygwt.ui.client.viewer.TreeViewer;  
33
import net.mygwt.ui.client.viewer.SelectionChangedEvent;
37
import net.mygwt.ui.client.viewer.Viewer;  
34
import net.mygwt.ui.client.viewer.TreeViewer;  
38
import net.mygwt.ui.client.widget.Button;
35
import net.mygwt.ui.client.viewer.Viewer;  
Line 391... Line 388...
391
 
388
 
Line 392... Line 389...
392
		private class RALB extends Model {  // Root Administrative level boundaries (pays)
389
		private class RALB extends Model {  // Root Administrative level boundaries (pays)
393
 
390
 
394
			  public RALB(String name) {
391
			  public RALB(String name) {
395
			    set("name", name);
392
			    set("name", name);
Line 396... Line 393...
396
			    set("path", name);
393
			    set("path", URL.encodeComponent(name));
397
			  }
394
			  }
398
 
395
 
Line 405... Line 402...
405
		
402
		
Line 406... Line 403...
406
		private class SALB extends Model {  // Second Administrative level boundaries (departerment)
403
		private class SALB extends Model {  // Second Administrative level boundaries (departerment)
407
 
404
 
408
			  public SALB(String name) {
405
			  public SALB(String name) {
409
			    set("name", name);
406
			    set("name", name);
Line 410... Line 407...
410
			    set("path", name);
407
			    set("path", URL.encodeComponent(name));
411
			  }
408
			  }
412
 
409
 
Line 420... Line 417...
420
		private class TALB extends Model {  // Tierce Administrative level boundaries (Commune)
417
		private class TALB extends Model {  // Tierce Administrative level boundaries (Commune)
Line 421... Line 418...
421
 
418
 
422
			  public TALB(SALB parent, String name) {
419
			  public TALB(SALB parent, String name) {
423
			    set("name", name);
420
			    set("name", name);
424
			    set("salb", parent.get("name"));
421
			    set("salb", parent.get("name"));
425
			    set("path", parent.get("path")+"/"+name);
422
			    set("path", parent.get("path")+"/"+URL.encodeComponent(name));
Line 426... Line 423...
426
			  }
423
			  }
427
 
424
 
Line 437... Line 434...
437
 
434
 
438
			  public FALB(TALB parent,String name) {
435
			  public FALB(TALB parent,String name) {
439
			    set("name", name);
436
			    set("name", name);
440
			    set("salb", parent.get("salb"));
437
			    set("salb", parent.get("salb"));
441
			    set("talb", parent.get("name"));
438
			    set("talb", parent.get("name"));
442
			    set("path", parent.get("path")+"/"+name);
439
			    set("path", parent.get("path")+"/"+URL.encodeComponent(name));
Line 443... Line 440...
443
			  }
440
			  }
444
 
441
 
445
			  public String toString() {
442
			  public String toString() {