Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1151 Rev 1152
Line 1... Line 1...
1
package org.tela_botanica.del.client.composants.motsclesimages;
1
package org.tela_botanica.del.client.composants.motsclesimages;
Line 2... Line -...
2
 
-
 
3
import java.util.Iterator;
2
 
Line 4... Line 3...
4
import java.util.List;
3
import java.util.List;
5
 
4
 
6
import com.google.gwt.core.client.GWT;
5
import com.google.gwt.core.client.GWT;
7
import com.google.gwt.uibinder.client.UiBinder;
6
import com.google.gwt.uibinder.client.UiBinder;
8
import com.google.gwt.uibinder.client.UiField;
7
import com.google.gwt.uibinder.client.UiField;
9
import com.google.gwt.user.client.ui.Composite;
8
import com.google.gwt.user.client.ui.Composite;
10
import com.google.gwt.user.client.ui.HTMLPanel;
9
import com.google.gwt.user.client.ui.HTML;
11
import com.google.gwt.user.client.ui.HasWidgets;
10
import com.google.gwt.user.client.ui.HasWidgets;
12
import com.google.gwt.user.client.ui.Label;
11
import com.google.gwt.user.client.ui.Label;
Line 13... Line 12...
13
import com.google.gwt.user.client.ui.Panel;
12
import com.google.gwt.user.client.ui.Panel;
Line 14... Line 13...
14
import com.google.gwt.user.client.ui.Widget;
13
import com.google.gwt.user.client.ui.Widget;
15
 
14
 
Line 16... Line 15...
16
public class MotsClesImageVue extends Composite  implements MotsClesImagePresenteur.Vue {
15
public class MotsClesImageVue extends Composite  implements MotsClesImagePresenteur.Vue {
17
	
16
	
Line 18... Line 17...
18
	@UiField
17
	@UiField
Line 33... Line 32...
33
	}
32
	}
Line 34... Line 33...
34
 
33
 
35
	@Override
34
	@Override
36
	public void afficherMotsCles(List<String> listeMotsCles) {
35
	public void afficherMotsCles(List<String> listeMotsCles) {
37
		String chaine = "";
36
		String chaine = "";
-
 
37
		Object[] tabMotsCles = listeMotsCles.toArray();
-
 
38
		int nbMc = tabMotsCles.length;
38
		for (Iterator iterator = listeMotsCles.iterator(); iterator.hasNext();) {
39
		for (int i = 0; i < tabMotsCles.length; i++) {
-
 
40
			String string = (String)tabMotsCles[i];
39
			String string = (String) iterator.next();
41
			chaine += "<span class=\"motCleImage\">"+string+"</span>";
40
			chaine += string+",";
42
			chaine += (i != (nbMc - 1)) ? " " : "";
41
		}
43
		}
42
		motsCles.setText(chaine);
44
		motsCles.setHTML(chaine);
Line 43... Line 45...
43
	}
45
	}
44
	
46
	
45
	@Override
47
	@Override