Subversion Repositories eFlore/Applications.del

Rev

Rev 200 | Blame | Last modification | View Log | RSS feed

package org.tela_botanica.del.client.vues.rechercheobservations;

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.Image;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

public class DetailImageVue extends Composite {

        // Gestion d'UiBinder
        interface Binder extends UiBinder<Widget, DetailImageVue> {
        }

        private static Binder binder = GWT.create(Binder.class);

        @UiField
        protected Image photoPrincipale;

        @UiField
        protected Label texteAlternatif;

        public DetailImageVue(String urlImage, String texteAlternatif) {
                initWidget(binder.createAndBindUi(this));
                photoPrincipale.setUrl(urlImage);
                this.texteAlternatif.setText(texteAlternatif);
        }
}