/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/resultats/ResultatsRechercheObservationsPresenteur.java |
---|
55,6 → 55,7 |
private ObservationService serviceObs; |
private ModeTri triCourantDate = ModeTri.TRI_DESCENDANT; |
private CacheClient cache = CacheClient.getInstance(); |
private String statut; |
/** |
* Constructeur de la classe |
63,10 → 64,11 |
* serviceObs le service pour récupérer les observations |
* @Vue Vue l'objet implémentant l'interface |
* */ |
public ResultatsRechercheObservationsPresenteur(ObservationService serviceObs, Vue vue) { |
public ResultatsRechercheObservationsPresenteur(ObservationService serviceObs, Vue vue, String statut) { |
this.vue = vue; |
vue.setModeTri(triCourantDate); |
this.serviceObs = serviceObs; |
this.statut = statut; |
} |
/** |
106,7 → 108,7 |
} |
}; |
serviceObs.getObservations(cache.getInformationsRechercheObservation(), debut, fin, callback); |
serviceObs.getObservations(cache.getInformationsRechercheObservation(), debut, fin, statut, callback); |
} |
/** |
221,7 → 223,7 |
} |
}; |
serviceObs.getObservations(cache.getInformationsRechercheObservation(), debut, fin, surReceptionObservation); |
serviceObs.getObservations(cache.getInformationsRechercheObservation(), debut, fin, statut, surReceptionObservation); |
} |
/** |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/moteur/MoteurRechercheObservationsVue.ui.xml |
---|
15,6 → 15,12 |
<g:Label text="{constants.rechercherObservation}" styleName="titre" /> |
<g:Label text="{constants.entrerMotClef}" styleName="gris {style.entrerMotClef}" /> |
<g:HTMLPanel ui:field="zoneRecherche" /> |
<g:HorizontalPanel styleName="{style.zoneStatut}"> |
<g:RadioButton ui:field="radioTout" text="Tout" name="statut" checked="true" formValue="tout"></g:RadioButton> |
<g:RadioButton ui:field="radioDeterminer" text="A déterminer" name="statut" formValue="adeterminer"></g:RadioButton> |
<g:RadioButton ui:field="radioConfirmer" text="A confirmer" name="statut" formValue="aconfirmer"></g:RadioButton> |
<g:RadioButton ui:field="radioDiscussion" text="En discussion" name="statut" formValue="endiscussion"></g:RadioButton> |
</g:HorizontalPanel> |
</g:HTMLPanel> |
<g:HTMLPanel> |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/moteur/MoteurRechercheObservationsPresenteur.java |
---|
25,6 → 25,8 |
public HasWidgets getZoneResultats(); |
HasClickHandlers getLienAjoutObservation(); |
public String getValeurRadioStatut(); |
} |
55,7 → 57,7 |
public void chercherObservations() { |
vue.getZoneResultats().clear(); |
new ResultatsRechercheObservationsPresenteur(new ObservationServiceConcret(), new ResultatsRechercheObservationsVue()).go(vue.getZoneResultats()); |
new ResultatsRechercheObservationsPresenteur(new ObservationServiceConcret(), new ResultatsRechercheObservationsVue(), vue.getValeurRadioStatut()).go(vue.getZoneResultats()); |
} |
protected void gererEvenements() { |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/moteur/MoteurRechercheObservationsVue.java |
---|
8,6 → 8,7 |
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.RadioButton; |
import com.google.gwt.user.client.ui.Widget; |
public class MoteurRechercheObservationsVue extends Composite implements MoteurRechercheObservationsPresenteur.Vue { |
24,6 → 25,9 |
@UiField |
Label ajouterObservation; |
@UiField |
RadioButton radioTout, radioDeterminer, radioConfirmer, radioDiscussion; |
public HasWidgets getZoneRecherche() { |
return zoneRecherche; |
} |
41,5 → 45,19 |
public HasClickHandlers getLienAjoutObservation() { |
return ajouterObservation; |
} |
public String getValeurRadioStatut() { |
String valeurStatut = null; |
if (radioDeterminer.getValue()) { |
valeurStatut = radioDeterminer.getFormValue(); |
} else if (radioConfirmer.getValue()) { |
valeurStatut = radioConfirmer.getFormValue(); |
} else if (radioDiscussion.getValue()) { |
valeurStatut = radioDiscussion.getFormValue(); |
} |
return valeurStatut; |
} |
} |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/moteur/MoteurRechercheObservations.css |
---|
6,3 → 6,6 |
float: right; |
} |
.zoneStatut { |
margin-top:-36px; |
} |