Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 522 Rev 523
Line 80... Line 80...
80
		
80
		
Line 81... Line 81...
81
		onglets.setBodyBorder(false);
81
		onglets.setBodyBorder(false);
82
		
82
		
83
		identificationOnglet = new TabItem(i18nC.structureInfoGeneral());
-
 
84
		identificationOnglet.setLayout(new AnchorLayout());
83
		identificationOnglet = new TabItem(i18nC.structureInfoGeneral());
85
		identificationOnglet.setHeight("100%");
84
		identificationOnglet.setLayout(new AnchorLayout());
Line 86... Line 85...
86
		identificationOnglet.setScrollMode(Scroll.AUTO);
85
		identificationOnglet.setScrollMode(Scroll.AUTO);
87
		onglets.add(identificationOnglet);
86
		onglets.add(identificationOnglet);
Line 651... Line 650...
651
			}
650
			}
652
		}
651
		}
Line 653... Line 652...
653
		
652
		
654
		return chaineARetourner;
653
		return chaineARetourner;
655
	}
-
 
656
	
-
 
657
	protected String construireTxtListeOntologie(String chaineAAnalyser) {
-
 
658
		ArrayList<String> termes = new ArrayList<String>();
-
 
659
		ArrayList<String> autres = new ArrayList<String>();
-
 
660
		if ((chaineAAnalyser != null) && (!chaineAAnalyser.trim().equals("")))	{
-
 
661
			String[] valeurs = chaineAAnalyser.split(";;");
-
 
662
			int nbreValeurs = valeurs.length;
-
 
663
			if (nbreValeurs > 0)	{
-
 
664
				for (int i = 0; i < nbreValeurs; i++)	{
-
 
665
					String id = valeurs[i];
-
 
666
					if (id.contains("AUTRE##"))	{
-
 
667
						String txt = id.replaceFirst("^AUTRE##", "");
-
 
668
						if (!txt.equals("")) {
-
 
669
							autres.add(txt);
-
 
670
						}
-
 
671
					} else if (id.matches("^[0-9]+$"))	{
-
 
672
						if (ontologie != null) {
-
 
673
							Valeur valeur = ontologie.get(id);
-
 
674
							if (valeur != null) {
-
 
675
								String termeOntologie = valeur.getNom();
-
 
676
								termes.add(termeOntologie);
-
 
677
							}
-
 
678
						}
-
 
679
					}
-
 
680
				}
-
 
681
			}
-
 
682
		}
-
 
683
		
-
 
684
		String chaineTermes = formaterTableauDeTxt(termes);
-
 
685
		String chaineAutres = formaterTableauDeTxt(autres);
-
 
686
		String chaineARetourner = chaineTermes+formaterAutre(chaineAutres);
-
 
687
		
-
 
688
		return chaineARetourner;
-
 
689
	}
654
	}
690
}
655
}