Subversion Repositories eFlore/Applications.del

Compare Revisions

Regard whitespace Rev 560 → Rev 564

/trunk/src/org/tela_botanica/del/client/composants/metadonnees/MetadonneesVue.java
5,6 → 5,7
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.Hyperlink;
import com.google.gwt.user.client.ui.InlineLabel;
18,8 → 19,12
private static Binder binder = GWT.create(Binder.class);
 
@UiField
Hyperlink nomRetenu, famille, auteur, localite, motsClefs, numNomenclatural, nomCommun, lieuDit, commentaire, milieu;
Hyperlink nomRetenu, famille, auteur, localite, motsClefs, numNomenclatural, nomCommun, commentaire, milieu;
 
@UiField
HTML lieuDit;
 
@UiField
InlineLabel dateReleve, dateTransmission;
 
public MetadonneesVue() {
111,10 → 116,6
return nomCommun;
}
 
public HasClickHandlers getLienLieuDit() {
return lieuDit;
}
 
public HasClickHandlers getLienMilieu() {
return milieu;
}
/trunk/src/org/tela_botanica/del/client/composants/metadonnees/metadonnees.css
9,14 → 9,13
.nomRetenu {
font-size: 15px;
cursor: pointer;
text-decoration: underline;
color: blue;
color: white;
}
 
.zoneFamille {
margin-top: 1em;
cursor: pointer;
color: blue;
color: white;
}
 
.zoneFamille div {
29,7 → 28,7
 
.zoneLocalite {
cursor: pointer;
color: blue;
color: white;
}
 
.zoneLocalite div {
50,7 → 49,7
 
.zoneMilieu {
cursor: pointer;
color: blue;
color: white;
}
 
.zoneMilieu div {
63,7 → 62,7
 
.zoneCommentaire {
cursor: pointer;
color: blue;
color: white;
}
 
.zoneCommentaire div {
76,12 → 75,12
 
.zoneDateReleve {
cursor: pointer;
color: blue;
color: white;
}
 
.zoneAuteur {
cursor: pointer;
color: blue;
color: white;
}
 
.zoneAuteur div {
/trunk/src/org/tela_botanica/del/client/composants/metadonnees/MetadonneesVue.ui.xml
36,7 → 36,7
<!-- Lieu-dit -->
<g:HTMLPanel ui:field="zoneLieuDit" styleName="{style.zoneLieuDit}">
<g:Label styleName="petit gris" text="{constants.lieuDit}" />
<g:Hyperlink ui:field="lieuDit" />
<g:HTML ui:field="lieuDit" />
</g:HTMLPanel>
 
<!-- Milieu -->
/trunk/src/org/tela_botanica/del/client/composants/metadonnees/MetadonneesPresenteur.java
61,8 → 61,6
 
public HasClickHandlers getLienNomCommun();
 
public HasClickHandlers getLienLieuDit();
 
public HasClickHandlers getLienMilieu();
 
public HasClickHandlers getLienCommentaire();
/trunk/src/org/tela_botanica/del/client/composants/moteurrecherche/MoteurRecherchePresenteur.java
76,6 → 76,19
public void focusSaisie();
 
public void nettoyer();
 
public HasKeyPressHandlers getChampsFamille();
 
public HasKeyPressHandlers getChampsGenre();
 
public HasKeyPressHandlers getChampsTag();
 
public HasKeyPressHandlers getChampsMotCle();
 
public HasKeyPressHandlers getChampsAuteur();
 
public HasKeyPressHandlers getChampsDate();
 
}
 
private Vue vue;
112,10 → 125,6
gererEvenements();
}
 
private Vue getVue() {
return vue;
}
 
public ModeRecherche getMode() {
return modeRecherche;
}
249,8 → 258,33
}
}
});
 
vue.getChampsAuteur().addKeyPressHandler(createKeyboardAdvancedSearchHandler());
 
vue.getChampsDate().addKeyPressHandler(createKeyboardAdvancedSearchHandler());
 
vue.getChampsFamille().addKeyPressHandler(createKeyboardAdvancedSearchHandler());
 
vue.getChampsGenre().addKeyPressHandler(createKeyboardAdvancedSearchHandler());
 
vue.getChampsMotCle().addKeyPressHandler(createKeyboardAdvancedSearchHandler());
 
vue.getChampsTag().addKeyPressHandler(createKeyboardAdvancedSearchHandler());
 
}
 
public KeyPressHandler createKeyboardAdvancedSearchHandler() {
return new KeyPressHandler() {
public void onKeyPress(KeyPressEvent event) {
if (event.getNativeEvent().getKeyCode() == KeyCodes.KEY_ENTER) {
vue.basculerAffichageZoneCache();
collecterInfosRecherche();
afficherRequeteEtLancerRecherche();
}
}
};
}
 
private void nettoyerChamps() {
completionCommunesPresenteur.nettoyer();
completionTaxonsPresenteur.nettoyer();
272,7 → 306,6
informationRecherche.setDate(vue.getDate());
}
 
 
if (estPourRechercheImages()) {
CacheClient.getInstance().setPageCouranteRechercheImages(1);
CacheClient.getInstance().setInformationsRechercheImage(informationRecherche);
/trunk/src/org/tela_botanica/del/client/composants/moteurrecherche/MoteurRechercheVue.java
18,7 → 18,8
 
public class MoteurRechercheVue extends Composite implements MoteurRecherchePresenteur.Vue {
 
interface Binder extends UiBinder<Widget, MoteurRechercheVue> {}
interface Binder extends UiBinder<Widget, MoteurRechercheVue> {
}
 
private static Binder uiBinder = GWT.create(Binder.class);
private String labelRecherche = "";
202,4 → 203,34
 
recherchePrecedente.setText(texteRecherchePrecedente.toString());
}
 
@Override
public HasKeyPressHandlers getChampsFamille() {
return famille;
}
 
@Override
public HasKeyPressHandlers getChampsGenre() {
return genre;
}
 
@Override
public HasKeyPressHandlers getChampsTag() {
return tag;
}
 
@Override
public HasKeyPressHandlers getChampsMotCle() {
return motCle;
}
 
@Override
public HasKeyPressHandlers getChampsAuteur() {
return auteur;
}
 
@Override
public HasKeyPressHandlers getChampsDate() {
return date;
}
}
/trunk/src/org/tela_botanica/del/client/composants/formulaires/AutoCompletionComboBoxPresenteur.java
165,4 → 165,8
* @return String[] le tableau des suggestions qui sera affiché dans la combobox
*/
protected abstract String[] parserResultatRequete(Response response);
 
public Vue getAutoCompletionComboBoxVue() {
return autoCompletionComboBoxVue;
}
}
/trunk/src/org/tela_botanica/del/client/composants/pagination/PaginationPresenteur.java
239,12 → 239,15
}
public void changerPas(int nouveauPas) {
gererDecalagePageCourante(pas, nouveauPas);
 
// TODO corriger bug qui ne charge pas la bonne page ds certains cas
// gererDecalagePageCourante(pas, nouveauPas);
// pas = nouveauPas;
// chargerElements((pageCourante - 1)*pas, pageCourante*pas);
pas = nouveauPas;
chargerElements((pageCourante - 1)*pas, pageCourante*pas);
chargerElements(0, pas);
BusEvenementiel.getInstance().fireEvent(new EvenementChangementPas(nouveauPas, groupePagination));
BusEvenementiel.getInstance().fireEvent(new EvenementChangementPage(1, groupePagination));
//BusEvenementiel.getInstance().fireEvent(new EvenementChangementPage(pageCourante, groupePagination));
}
 
public void allerALaPagePrecedente() {