Subversion Repositories eFlore/Applications.del

Rev

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

package org.tela_botanica.del.client.vues.rechercheimages.detail;

import org.tela_botanica.del.client.modeles.Observation;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.VerticalPanel;

public class ObservationDetailVue extends Composite {

        private final Panel mainPanel = new VerticalPanel();

        protected ObservationDetailVue() {
                initWidget(mainPanel);
        }

        protected void loadDetails(Observation observation) {
                mainPanel.add(new HTML("Observateur:" + observation.getAuteur()));
                mainPanel.add(new HTML("Nom retenu:" + observation.getNomRetenu()));
                mainPanel.add(new HTML("Date: " + observation.getDate()));
                mainPanel.add(new HTML("Famille: " + observation.getFamille()));
                mainPanel.add(new HTML("Localite " + observation.getLocalite()));
        }

        public Panel getMainPanel() {
                return mainPanel;
        }

}