Subversion Repositories eFlore/Applications.del

Rev

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

package org.tela_botanica.del.client.vues.plateformedetermination.vote.protocole.personnel;

import org.cobogw.gwt.user.client.ui.Rating;

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.FocusPanel;
import com.google.gwt.user.client.ui.Widget;

public class MonVoteProtocoleVue extends Composite implements MonVoteProtocolePresenteur.Vue {

        interface MyUiBinder extends UiBinder<Widget, MonVoteProtocoleVue> {
        }

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

        @UiField
        FocusPanel voter;

        @UiField
        Button boutonVote;

        private Rating rating = new Rating(0, 5);

        public MonVoteProtocoleVue() {
                initWidget(uiBinder.createAndBindUi(this));

                rating.setReadOnly(false);
                voter.add(rating);

        }

        public Rating getRating() {
                return rating;
        }

        public Button getBoutonVote() {
                return boutonVote;
        }

}