Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 257 Rev 260
1
package org.tela_botanica.client.util;
1
package org.tela_botanica.client.util;
2
 
-
 
-
 
2
 
3
import java.awt.List;
3
 
4
import java.util.Iterator;
4
import java.util.Iterator;
5
import java.util.LinkedList;
5
import java.util.LinkedList;
6
 
6
 
7
public class UtilTruk {
7
public class UtilTruk {
8
	
8
	
9
	/**
9
	/**
10
	 * Traite une liste récupéré de truk et renvoie une chaîne de caractère formatée
10
	 * Traite une liste récupéré de truk et renvoie une chaîne de caractère formatée
11
	 * 
11
	 * 
12
	 * @param la liste truk
12
	 * @param la liste truk
13
	 * @param le séparateur pour chaque valeur
13
	 * @param le séparateur pour chaque valeur
14
	 * */
14
	 * */
15
	public static String traiterTrukListe(LinkedList<String> listTruk, String separateur)	{
15
	public static String traiterTrukListe(LinkedList<String> listTruk, String separateur)	{
16
		
16
		
17
		String listeRetour = "";
17
		String listeRetour = "";
18
		
18
		
19
		Iterator<String> it = listTruk.iterator();
19
		Iterator<String> it = listTruk.iterator();
20
		while (it.hasNext())	{
20
		while (it.hasNext())	{
21
			
21
			
22
			String valeurCourante = it.next();
22
			String valeurCourante = it.next();
23
			listeRetour += valeurCourante;
23
			listeRetour += valeurCourante;
24
			if (it.hasNext())	{
24
			if (it.hasNext())	{
25
				listeRetour += separateur;						
25
				listeRetour += separateur;						
26
			}
26
			}
27
		}
27
		}
28
		
28
		
29
		return listeRetour;
29
		return listeRetour;
30
	}
30
	}
31
	
-
 
32
	/**
-
 
33
	 * Crée un composant FieldLabel pour chaque champ de la map et l'ajoute au container passé en parametre
-
 
34
	 * 
-
 
35
	 * @param container 
-
 
36
	 * @param la map
-
 
37
	 */
-
 
38
	public static void ajouterFieldSetParMap(Widget)	{
31
	
39
		
-
 
40
	}
32
	
41
 
33
 
42
}
34
}