New file |
0,0 → 1,138 |
package org.tela_botanica.del.client.vues.rechercheobservations; |
|
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.HasVisibility; |
import com.google.gwt.user.client.ui.HasWidgets; |
import com.google.gwt.user.client.ui.Label; |
import com.google.gwt.user.client.ui.Panel; |
import com.google.gwt.user.client.ui.TextBox; |
import com.google.gwt.user.client.ui.Widget; |
|
public class RechercheObservationsVue extends Composite implements RechercheObservationsPresenteur.Vue { |
|
// Gestion d'UiBinder |
interface Binder extends UiBinder<Widget, RechercheObservationsVue> { |
} |
|
private static Binder binder = GWT.create(Binder.class); |
|
// Définir ici les champs de la vue à afficher en protected |
@UiField |
protected TextBox recherchePrincipale, departement, commune, taxon, famille, genre, tag, motCle, auteur, date; |
|
@UiField |
protected Button boutonRecherche, boutonRechercheAvancee; |
|
public TextBox getRecherchePrincipale() { |
return recherchePrincipale; |
} |
|
public TextBox getDepartement() { |
return departement; |
} |
|
public TextBox getCommune() { |
return commune; |
} |
|
public TextBox getTaxon() { |
return taxon; |
} |
|
public TextBox getFamille() { |
return famille; |
} |
|
public TextBox getGenre() { |
return genre; |
} |
|
public TextBox getTag() { |
return tag; |
} |
|
public TextBox getMotCle() { |
return motCle; |
} |
|
public TextBox getAuteur() { |
return auteur; |
} |
|
public TextBox getDate() { |
return date; |
} |
|
public Button getBoutonRecherche() { |
return boutonRecherche; |
} |
|
public Button getBoutonRechercheAvancee() { |
return boutonRechercheAvancee; |
} |
|
public Label getLienRechercheAvancee() { |
return lienRechercheAvancee; |
} |
|
public Label getRecherchePrecedente() { |
return recherchePrecedente; |
} |
|
public Panel getRechercheAvancee() { |
return rechercheAvancee; |
} |
|
public Panel getZoneObservations() { |
return zoneObservations; |
} |
|
public Panel getZonePagination() { |
return zonePagination; |
} |
|
@UiField |
protected Label lienRechercheAvancee, recherchePrecedente; |
|
@UiField |
protected Panel rechercheAvancee, zoneObservations, zonePagination; |
|
// Constructeur de la vue |
public RechercheObservationsVue() { |
initWidget(binder.createAndBindUi(this)); |
rechercheAvancee.setVisible(false); |
} |
|
@Override |
public HasClickHandlers getRecherchePrincipaleHasClickHandler() { |
return recherchePrincipale; |
} |
|
@Override |
public HasKeyPressHandlers getRecherchePrincipaleHasKeyPressHandlers() { |
return recherchePrincipale; |
} |
|
@Override |
public HasText getRecherchePrincipaleHasText() { |
return recherchePrincipale; |
} |
|
@Override |
public HasWidgets getRechercheAvanceeHasWidget() { |
return rechercheAvancee; |
} |
|
@Override |
public HasVisibility getRechercheAvanceeHasVisibility() { |
return rechercheAvancee; |
} |
|
} |