/trunk/src/org/tela_botanica/del/client/composants/moteurrecherche/MoteurRechercheVue.java |
---|
31,7 → 31,7 |
@UiField |
Button boutonRecherche, boutonRechercheAvancee, boutonFermer, boutonVider; |
@UiField |
TextBox recherchePrincipale, contientMots, departement, famille, genre, tag, motCle, auteur, date; |
TextBox recherchePrincipale, contientMots, departement, famille, genre, motCle, auteur, date; |
public MoteurRechercheVue(String labelRecherche) { |
initWidget(uiBinder.createAndBindUi(this)); |
112,10 → 112,6 |
return genre.getText(); |
} |
public String getTag() { |
return tag.getText(); |
} |
public String getMotCle() { |
return motCle.getText(); |
} |
152,7 → 148,6 |
departement.setText(informationsRecherche.getDepartement()); |
famille.setText(informationsRecherche.getFamille()); |
genre.setText(informationsRecherche.getGenre()); |
tag.setText(informationsRecherche.getTag()); |
motCle.setText(informationsRecherche.getMotClef()); |
auteur.setText(informationsRecherche.getAuteur()); |
date.setText(informationsRecherche.getDate()); |
215,11 → 210,6 |
} |
@Override |
public HasKeyPressHandlers getChampsTag() { |
return tag; |
} |
@Override |
public HasKeyPressHandlers getChampsMotCle() { |
return motCle; |
} |
/trunk/src/org/tela_botanica/del/client/composants/moteurrecherche/MoteurRechercheVue.ui.xml |
---|
21,6 → 21,11 |
<g:Label text="{constants.contientMots}" /> |
<g:TextBox ui:field="contientMots" /> |
</g:HTMLPanel> |
<g:HTMLPanel styleName="{style.champRecherche}"> |
<g:Label text="{constants.famille}" /> |
<g:TextBox ui:field="famille" /> |
</g:HTMLPanel> |
<g:HTMLPanel styleName="{style.champRecherche}"> |
<g:Label text="{constants.taxon}" /> |
28,45 → 33,35 |
</g:HTMLPanel> |
<g:HTMLPanel styleName="{style.champRecherche}"> |
<g:Label text="{constants.famille}" /> |
<g:TextBox ui:field="famille" /> |
</g:HTMLPanel> |
<g:HTMLPanel styleName="{style.champRecherche}"> |
<g:Label text="{constants.genre}" /> |
<g:TextBox ui:field="genre" /> |
</g:HTMLPanel> |
<g:HTMLPanel styleName="{style.champRecherche}"> |
<g:Label text="{constants.departement}" /> |
<g:TextBox ui:field="departement" /> |
</g:HTMLPanel> |
<g:HTMLPanel styleName="{style.champRecherche}"> |
<g:Label text="{constants.commune}" /> |
<g:HTMLPanel ui:field="commune" /> |
</g:HTMLPanel> |
<g:HTMLPanel styleName="{style.champRecherche}"> |
<g:Label text="{constants.tag}" /> |
<g:TextBox ui:field="tag" /> |
<g:Label text="{constants.departement}" /> |
<g:TextBox ui:field="departement" /> |
</g:HTMLPanel> |
<g:HTMLPanel styleName="{style.champRecherche}"> |
<g:Label text="{constants.mot_clef}" /> |
<g:TextBox ui:field="motCle" /> |
</g:HTMLPanel> |
<g:HTMLPanel styleName="{style.champRecherche}"> |
<g:Label text="{constants.auteur}" /> |
<g:TextBox ui:field="auteur" /> |
</g:HTMLPanel> |
</g:HTMLPanel> |
<g:HTMLPanel styleName="{style.champRecherche}"> |
<g:Label text="{constants.date}" /> |
<g:TextBox ui:field="date" /> |
</g:HTMLPanel> |
<g:HTMLPanel styleName="{style.champRecherche}"> |
<g:Label text="{constants.tag}" /> |
<g:TextBox ui:field="motCle" /> |
</g:HTMLPanel> |
<g:Button styleName="{style.boutonRecherche}" ui:field="boutonRechercheAvancee" text="{constants.rechercher}"></g:Button> |
<g:HTMLPanel styleName="nettoyage" /> |
</g:HTMLPanel> |
/trunk/src/org/tela_botanica/del/client/composants/moteurrecherche/MoteurRecherchePresenteur.java |
---|
57,8 → 57,6 |
public String getGenre(); |
public String getTag(); |
public String getMotCle(); |
public String getAuteur(); |
81,8 → 79,6 |
public HasKeyPressHandlers getChampsGenre(); |
public HasKeyPressHandlers getChampsTag(); |
public HasKeyPressHandlers getChampsMotCle(); |
public HasKeyPressHandlers getChampsAuteur(); |
269,8 → 265,6 |
vue.getChampsMotCle().addKeyPressHandler(createKeyboardAdvancedSearchHandler()); |
vue.getChampsTag().addKeyPressHandler(createKeyboardAdvancedSearchHandler()); |
} |
public KeyPressHandler createKeyboardAdvancedSearchHandler() { |
300,8 → 294,8 |
informationRecherche.setCommune(completionCommunesPresenteur.getValeur()); |
informationRecherche.setFamille(vue.getFamille()); |
informationRecherche.setGenre(vue.getGenre()); |
informationRecherche.setTag(vue.getTag()); |
informationRecherche.setMotClef(vue.getMotCle()); |
informationRecherche.setTag(vue.getMotCle()); |
informationRecherche.setAuteur(vue.getAuteur()); |
informationRecherche.setDate(vue.getDate()); |
} |