Subversion Repositories eFlore/Applications.del

Rev

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

package org.tela_botanica.del.client.composants.motsclesimages.formulairesaisiemotclesimages;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.event.dom.client.HasKeyPressHandlers;
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.HasText;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.Widget;

public class FormulaireSaisieMotsClesImageVue extends Composite implements FormulaireSaisieMotsClesImagePresenteur.Vue {
        
        @UiField
        public TextBox saisieMotsCles;
        
        @UiField
        public Button valider;

        interface MyUiBinder extends UiBinder<Widget, FormulaireSaisieMotsClesImageVue> {
                
        }

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

        public FormulaireSaisieMotsClesImageVue() {
                // sets listBox
                initWidget(uiBinder.createAndBindUi(this));
        }

        @Override
        public HasClickHandlers getBoutonValider() {
                return valider;
        }
        
        @Override
        public HasText getSaisieMotsCles() {
                return saisieMotsCles;
        }
        
        @Override
        public HasKeyPressHandlers getSaisieMotsClesHasKeyPressHandlers() {
                return saisieMotsCles;
        }

        @Override
        public void focuserChampSaisie() {
                saisieMotsCles.setFocus(true);
        }
}