Subversion Repositories eFlore/Applications.del

Rev

Rev 1196 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package org.tela_botanica.del.client.vues.pictoflora.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().getNomRetenuFormateReferentiel());
                famille.setText(image.getObservation().getFamille());
                localite.setText(image.getObservation().getLocalite());
                dateObservation.setText(image.getObservation().getDateReleve());
        }
}