Subversion Repositories eFlore/Applications.del

Rev

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

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

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.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

public class RechercheImageVue extends Composite {

        private final VerticalPanel mainPanel = new VerticalPanel();
        private final Panel panneauChargement = new FlowPanel();

        // Annotation can be used to change the name of the associated xml file
        // @UiTemplate("ObservationRechercheVue.ui.xml")
        interface MyUiBinder extends UiBinder<Widget, RechercheImageVue> {
        }

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

        @UiField
        TextBox nomEspece;

        @UiField
        Panel panneauProtocole, panneauResultats;

        @UiField
        Button boutonChercher;

        @UiField
        Label protocoleLabel;

        @UiField
        ListBox listeProtocoles;

        // Constructeur
        protected RechercheImageVue() {

                initWidget(uiBinder.createAndBindUi(this));
                nomEspece.setFocus(true);

        }

        public Panel getPanneauChargement() {
                return panneauChargement;
        }

        public TextBox getTextBox() {
                return nomEspece;
        }

        public Panel getPanel() {
                return mainPanel;
        }

        public Button getBoutonChercher() {
                return boutonChercher;
        }

        public ListBox getListeProtocoles() {
                return listeProtocoles;
        }

        public void setListeProtocoles(ListBox listeProtocoles) {
                this.listeProtocoles = listeProtocoles;
        }

        public Label getProtocoleLabel() {
                return protocoleLabel;
        }

        public void setProtocoleLabel(Label protocoleLabel) {
                this.protocoleLabel = protocoleLabel;
        }

        public Panel getPanneauResultats() {
                return panneauResultats;
        }

        public void setPanneauResultats(Panel panneauResultats) {
                this.panneauResultats = panneauResultats;
        }
}