Subversion Repositories eFlore/Applications.coel

Rev

Rev 305 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 305 Rev 321
Line 31... Line 31...
31
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
31
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
32
import com.extjs.gxt.ui.client.widget.layout.TableData;
32
import com.extjs.gxt.ui.client.widget.layout.TableData;
33
import com.extjs.gxt.ui.client.widget.layout.TableLayout;
33
import com.extjs.gxt.ui.client.widget.layout.TableLayout;
Line 34... Line 34...
34
 
34
 
35
import com.google.gwt.core.client.GWT;
-
 
36
import com.google.gwt.user.client.Window;
35
import com.google.gwt.core.client.GWT;
Line 37... Line 36...
37
import com.google.gwt.user.client.ui.Image;
36
import com.google.gwt.user.client.ui.Image;
Line 38... Line 37...
38
 
37
 
Line 113... Line 112...
113
		
112
		
114
		//Onglet info naturalistes
113
		//Onglet info naturalistes
115
		tabInfosNat = new TabItem("Informations naturalistes");
114
		tabInfosNat = new TabItem("Informations naturalistes");
116
		fsSpec = new FieldSet();
115
		fsSpec = new FieldSet();
-
 
116
		fsSpec.setLayout(new FormLayout());
Line 117... Line 117...
117
		fsSpec.setLayout(new FormLayout());
117
		tabInfosNat.setScrollMode(Scroll.AUTO);
Line 118... Line 118...
118
		
118
		
Line 119... Line 119...
119
		tabPanel.add(tabInfosNat);
119
		tabPanel.add(tabInfosNat);
Line 120... Line 120...
120
		
120
		
121
	}
121
	}
Line 169... Line 169...
169
			
169
			
170
			fsIdentite.removeAll();
170
			fsIdentite.removeAll();
171
			fsContact.removeAll();
171
			fsContact.removeAll();
172
			fsAdressePerso.removeAll();
172
			fsAdressePerso.removeAll();
-
 
173
			fsSpec.removeAll();
173
			fsSpec.removeAll();
174
			tabInfosNat.removeAll();
Line 174... Line 175...
174
			//Ajout des champs Identité
175
			//Ajout des champs Identité
Line 431... Line 432...
431
					}
432
					}
Line 432... Line 433...
432
					
433
					
433
					lfRecolte.setFieldLabel(splitRecolte[0]);
434
					lfRecolte.setFieldLabel(splitRecolte[0]);
Line 434... Line 435...
434
					fsRecolte.add(lfRecolte);
435
					fsRecolte.add(lfRecolte);
Line 435... Line 436...
435
					
436
					
436
					LinkedList<LabelField> lstComposantsRegion = (LinkedList<LabelField>) hmComposants.get(splitRecolte[0]);
437
					LinkedList<LabelField> lstComposantsRegion = (LinkedList<LabelField>) hmLabelFieldRegion.get(splitRecolte[0]);
437
					
438
					
Line 438... Line 439...
438
					if (lstComposantsRegion == null)	{
439
					if (lstComposantsRegion == null)	{
439
						lstComposantsRegion = new LinkedList<LabelField>();
440
						lstComposantsRegion = new LinkedList<LabelField>();
440
					}
441
					}
Line 441... Line 442...
441
					
442
					
Line 442... Line 443...
442
					lstComposantsRegion.add(lfRecolte);
443
					lstComposantsRegion.add(lfRecolte);
443
					hmComposants.remove(splitRecolte[0]);
444
					hmLabelFieldRegion.remove(splitRecolte[0]);
Line 455... Line 456...
455
	}
456
	}
Line 456... Line 457...
456
	
457
	
Line 457... Line 458...
457
	
458
	
458
	private void changerLabelRegions()	{
459
	private void changerLabelRegions()	{
Line 459... Line 460...
459
		
460
		
460
		Collection<String> colClesComposants = hmComposants.keySet();
461
		Collection<String> colClesComposants = hmLabelFieldRegion.keySet();
461
		Iterator<String> itComposants = colClesComposants.iterator();
462
		Iterator<String> itComposants = colClesComposants.iterator();
Line 511... Line 512...
511
					
512
					
Line 512... Line 513...
512
					if (region != null)	{
513
					if (region != null)	{
Line 513... Line 514...
513
						
514
						
514
						String strRegionId = region.getAbreviation();
515
						String strRegionId = region.getAbreviation();
515
						
516
						
516
						LinkedList<LabelField> listComposantsRegion = (LinkedList) hmComposants.get(strRegionId);
517
						LinkedList<LabelField> listComposantsRegion = (LinkedList) hmLabelFieldRegion.get(strRegionId);
517
						for (int i=0; i < listComposantsRegion.size(); i++)	{
518
						for (int i=0; i < listComposantsRegion.size(); i++)	{