/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/moteur/MoteurRechercheObservationsVue.ui.xml |
---|
16,10 → 16,10 |
<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:CheckBox ui:field="radioTout" text="Tout" name="statut" checked="true" formValue="tout"></g:CheckBox> |
<g:CheckBox ui:field="radioDeterminer" text="A déterminer" name="statut" formValue="adeterminer"></g:CheckBox> |
<g:CheckBox ui:field="radioConfirmer" text="A confirmer" name="statut" formValue="aconfirmer"></g:CheckBox> |
<g:CheckBox ui:field="radioDiscussion" text="En discussion" name="statut" formValue="endiscussion"></g:CheckBox> |
</g:HorizontalPanel> |
</g:HTMLPanel> |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/moteur/MoteurRechercheObservationsVue.java |
---|
4,6 → 4,7 |
import com.google.gwt.event.dom.client.HasClickHandlers; |
import com.google.gwt.uibinder.client.UiBinder; |
import com.google.gwt.uibinder.client.UiField; |
import com.google.gwt.user.client.ui.CheckBox; |
import com.google.gwt.user.client.ui.Composite; |
import com.google.gwt.user.client.ui.HasWidgets; |
import com.google.gwt.user.client.ui.Label; |
26,7 → 27,7 |
Label ajouterObservation; |
@UiField |
RadioButton radioTout, radioDeterminer, radioConfirmer, radioDiscussion; |
CheckBox radioTout, radioDeterminer, radioConfirmer, radioDiscussion; |
public HasWidgets getZoneRecherche() { |
return zoneRecherche; |
47,13 → 48,17 |
} |
public String getValeurRadioStatut() { |
String valeurStatut = null; |
String valeurStatut = ""; |
if (radioDeterminer.getValue()) { |
valeurStatut = radioDeterminer.getFormValue(); |
} else if (radioConfirmer.getValue()) { |
valeurStatut = radioConfirmer.getFormValue(); |
} else if (radioDiscussion.getValue()) { |
valeurStatut = radioDiscussion.getFormValue(); |
valeurStatut += radioDeterminer.getFormValue() + ";"; |
} |
if (radioConfirmer.getValue()) { |
valeurStatut += radioConfirmer.getFormValue() + ";"; |
} |
if (radioDiscussion.getValue()) { |
valeurStatut += radioDiscussion.getFormValue() + ";"; |
} |
return valeurStatut; |