Rev 1152 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package org.tela_botanica.del.client.composants.motsclesimages;
import java.util.Iterator;
import java.util.List;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.Widget;
public class MotsClesImageVue extends Composite implements MotsClesImagePresenteur.Vue {
@UiField
public Label motsCles;
@UiField
public Panel saisieMotsCles;
interface MyUiBinder extends UiBinder<Widget, MotsClesImageVue> {
}
private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
public MotsClesImageVue() {
// sets listBox
initWidget(uiBinder.createAndBindUi(this));
}
@Override
public void afficherMotsCles(List<String> listeMotsCles) {
String chaine = "";
for (Iterator iterator = listeMotsCles.iterator(); iterator.hasNext();) {
String string = (String) iterator.next();
chaine += string+",";
}
motsCles.setText(chaine);
}
@Override
public HasWidgets getZoneSaisieMotsCles() {
return saisieMotsCles;
}
}