Subversion Repositories eFlore/Applications.del

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
200 gduche 1
package org.tela_botanica.del.client.vues.rechercheobservations;
2
 
3
import com.google.gwt.core.client.GWT;
4
import com.google.gwt.uibinder.client.UiBinder;
5
import com.google.gwt.uibinder.client.UiField;
6
import com.google.gwt.user.client.ui.Composite;
7
import com.google.gwt.user.client.ui.Image;
8
import com.google.gwt.user.client.ui.Label;
9
import com.google.gwt.user.client.ui.Widget;
10
 
11
public class DetailImageVue extends Composite {
12
 
13
	// Gestion d'UiBinder
14
	interface Binder extends UiBinder<Widget, DetailImageVue> {
15
	}
16
 
17
	private static Binder binder = GWT.create(Binder.class);
18
 
19
	@UiField
20
	protected Image photoPrincipale;
21
 
22
	@UiField
23
	protected Label texteAlternatif;
24
 
25
	public DetailImageVue(String urlImage, String texteAlternatif) {
26
		initWidget(binder.createAndBindUi(this));
27
		photoPrincipale.setUrl(urlImage);
28
		this.texteAlternatif.setText(texteAlternatif);
29
	}
30
}