Subversion Repositories eFlore/Applications.del

Rev

Rev 1393 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

package org.tela_botanica.del.client.vues.identiplante.plateformedetermination.detail;



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 DetailImageObservationVue extends Composite implements DetailImageObservationPresenteur.Vue {

        @UiField
        protected Image imageObservation;

        @UiField
        protected Label nomObservateur, nomRetenu, dateObservation, famille, localite;

        private static DetailImageObservationUIiBinder uiBinder = GWT.create(DetailImageObservationUIiBinder.class);

        interface DetailImageObservationUIiBinder extends UiBinder<Widget, DetailImageObservationVue> {
        };

        public DetailImageObservationVue() {
                initWidget(uiBinder.createAndBindUi(this));
        }

        public void chargerInformationsObservation(org.tela_botanica.del.client.modeles.Image image) {
                imageObservation.setUrl(image.getUrl());
                nomObservateur.setText(image.getObservation().getAuteur());
                nomRetenu.setText(image.getObservation().getNomRetenu());
                famille.setText(image.getObservation().getFamille());
                localite.setText(image.getObservation().getLocalite());
                dateObservation.setText(image.getObservation().getDateReleve());
        }
}