Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 1790 → Rev 1791

/trunk/src/org/tela_botanica/del/client/i18n/Vocabulary.java
403,6 → 403,24
String elements_par_page();
 
/**
* Translated "page".
*
* @return translated "page"
*/
@DefaultStringValue("page")
@Key("page")
String page();
 
/**
* Translated "résultats".
*
* @return translated "résultats"
*/
@DefaultStringValue("résultats")
@Key("resultats")
String resultats();
 
/**
* Translated "Recherchez par espèce, genre, famille, numéro ou nom de département, commune, auteur ou mot-clé.".
*
* @return translated "Recherchez par espèce, genre, famille, numéro ou nom de département, commune, auteur ou mot-clé."
/trunk/src/org/tela_botanica/del/client/i18n/Vocabulary.properties
191,6 → 191,8
#composant pagination
afficher = Afficher
elements_par_page = éléments par page
resultats = résultats
page = page
 
#utilisateur
nom = Nom
/trunk/src/org/tela_botanica/del/client/composants/pagination/PaginationVue.ui.xml
3,6 → 3,9
<ui:with field="constants" type="org.tela_botanica.del.client.i18n.Vocabulary"/>
<ui:style src="pagination.css" />
<g:HorizontalPanel styleName="{style.pagination}">
<g:Label styleName="{style.nombreResultats} petit" ui:field="nbTotalResultats" />
<g:Label styleName="{style.labelResultats} petit" text="{constants.resultats}" />
<g:Label styleName="{style.labelPage} petit" text="{constants.page}" />
<g:Button ui:field="boutonPremierePage" styleName="{style.boutonPremierePage}" text=" " />
<g:Button ui:field="boutonPrecedent" styleName="{style.boutonPrecedent}" text=" " />
<g:TextBox styleName="{style.pageCourante} petit" ui:field="saisiePageCourante"/>
/trunk/src/org/tela_botanica/del/client/composants/pagination/PaginationPresenteur.java
39,6 → 39,7
public int getPasSelectionne();
public void afficherPas(int pas);
public void mettreNbTotalPages(int nbPages);
public void mettreNbTotalResultats(int nbResultats);
public HasChangeHandlers getSaisiePageCourante();
public int getPageSaisie();
public void setPageCourante(int pageCourante);
46,6 → 47,7
 
private Vue vue;
private int nbPage = 1;
//private int nbPage = 1;
private int pageCourante = 1;
private int nbElementsTotal = 0;
private int pas = 10;
81,6 → 83,7
actualiserPas();
actualiserAffichageBoutons();
vue.mettreNbTotalPages(nbPage);
vue.mettreNbTotalResultats(nbElementsTotal);
}
 
/**
166,6 → 169,7
vue.setPageCourante(pageCourante);
actualiserAffichageBoutons();
vue.mettreNbTotalPages(nbPage);
vue.mettreNbTotalResultats(nbElementsTotal);
}
}
});
/trunk/src/org/tela_botanica/del/client/composants/pagination/PaginationVue.java
29,7 → 29,7
Button boutonPrecedent, boutonSuivant, boutonPremierePage, boutonDernierePage;
 
@UiField
Label nbTotalPages;
Label nbTotalPages, nbTotalResultats;
 
interface MyUiBinder extends UiBinder<Widget, PaginationVue> {
}
48,6 → 48,10
nbTotalPages.setText((I18n.getMessages().parmi_nb_pages(nbPages)));
}
 
public void mettreNbTotalResultats(int nbResultats) {
nbTotalResultats.setText("" + nbResultats);
}
 
public void masquerBoutonPrecedent() {
boutonPremierePage.setVisible(false);
boutonPrecedent.setVisible(false);
116,6 → 120,10
return nbTotalPages;
}
 
public Label getNbTotalResultats() {
return nbTotalResultats;
}
 
@Override
public int getPageSaisie() throws NumberFormatException {
return Integer.parseInt(saisiePageCourante.getText());
/trunk/src/org/tela_botanica/del/client/composants/pagination/pagination.css
11,6 → 11,20
.boutonPremierePage {width:20px; height:20px; background:url(./img/first.png) no-repeat}
.boutonDernierePage {width:20px; height:20px; background:url(./img/last.png) no-repeat}
 
.labelResultats {
margin-left:5px;
margin-right:5px;
}
.nombreResultats {
font-weight: bold;
margin-left:5px;
}
.labelPage {
padding-left:5px;
margin-right:5px;
border-left: solid 1px grey;
}
 
.nombreTotal {margin-left:5px;}
.labelSelecteurPas{margin-left:5px;margin-right:5px; margin-top: 3px;}
.labelSelecteurPasAfficher{margin-left:10px;;margin-right:5px; margin-top: 3px;}