Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 458 → Rev 459

/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/RechercheObservations.css
49,12 → 49,3
margin-bottom: 10px
}
 
.boutonTriAsc {
height: 20px;
background: url(./img/fleche-haut.png) no-repeat
}
 
.boutonTriDesc {
height: 20px;
background: url(./img/fleche-bas.png) no-repeat
}
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/RechercheObservationsVue.ui.xml
13,21 → 13,8
<g:Label text="{constants.entrerMotClef}" styleName="gris {style.entrerMotClef}" />
<g:HTMLPanel ui:field="zoneRecherche" />
</g:HTMLPanel>
<g:HTMLPanel>
<g:HorizontalPanel>
<g:HorizontalPanel ui:field="triParNbVotes">
<g:Label text="{constants.triParNbVotes}" />
<g:Button ui:field="triParNbVotesAscendant" styleName="{style.boutonTriAsc}"></g:Button>
<g:Button ui:field="triParNbVotesDescendant" styleName="{style.boutonTriDesc}"></g:Button>
</g:HorizontalPanel>
<g:HorizontalPanel ui:field="triParDate">
<g:Label text="{constants.triParDate}" />
<g:Button ui:field="triParDateAscendant" styleName="{style.boutonTriAsc}"></g:Button>
<g:Button ui:field="triParDateDescendant" styleName="{style.boutonTriDesc}"></g:Button>
</g:HorizontalPanel>
</g:HorizontalPanel>
</g:HTMLPanel>
<g:HTMLPanel>
<g:VerticalPanel ui:field="zoneResultats" />
</g:HTMLPanel>
</g:HTMLPanel>
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/RechercheObservationsPresenteur.java
1,20 → 1,14
package org.tela_botanica.del.client.vues.rechercheobservations;
 
import org.tela_botanica.del.client.cache.CacheClient;
import org.tela_botanica.del.client.composants.moteurrecherche.MoteurRecherchePresenteur;
import org.tela_botanica.del.client.composants.moteurrecherche.MoteurRechercheVue;
import org.tela_botanica.del.client.composants.presenteur.Presenteur;
import org.tela_botanica.del.client.modeles.InformationsRecherche;
import org.tela_botanica.del.client.modeles.ModeRecherche;
import org.tela_botanica.del.client.modeles.ModeTri;
import org.tela_botanica.del.client.services.rest.ObservationService;
import org.tela_botanica.del.client.services.rest.ObservationServiceConcret;
import org.tela_botanica.del.client.vues.rechercheobservations.resultats.ResultatsRechercheObservationsPresenteur;
import org.tela_botanica.del.client.vues.rechercheobservations.resultats.ResultatsRechercheObservationsVue;
 
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.IsWidget;
 
25,13 → 19,6
 
public HasWidgets getZoneResultats();
 
public HasClickHandlers getTriParNbVotesAscendant();
 
public HasClickHandlers getTriParNbVotesDescendant();
 
public HasClickHandlers getTriParDateAscendant();
 
public HasClickHandlers getTriParDateDescendant();
}
 
private Vue vue;
67,45 → 54,6
 
protected void gererEvenements() {
 
vue.getTriParNbVotesAscendant().addClickHandler(new ClickHandler() {
 
@Override
public void onClick(ClickEvent arg0) {
InformationsRecherche informationsRechercheObservations = CacheClient.getInstance().getInformationsRechercheObservation();
informationsRechercheObservations.setTriParNbVotes(ModeTri.TRI_ASCENDANT);
chercherObservations();
}
});
 
vue.getTriParNbVotesDescendant().addClickHandler(new ClickHandler() {
 
@Override
public void onClick(ClickEvent arg0) {
InformationsRecherche informationsRechercheObservations = CacheClient.getInstance().getInformationsRechercheObservation();
informationsRechercheObservations.setTriParNbVotes(ModeTri.TRI_DESCENDANT);
chercherObservations();
}
});
 
vue.getTriParDateAscendant().addClickHandler(new ClickHandler() {
 
@Override
public void onClick(ClickEvent arg0) {
InformationsRecherche informationsRechercheObservations = CacheClient.getInstance().getInformationsRechercheObservation();
informationsRechercheObservations.setTriParDate(ModeTri.TRI_ASCENDANT);
chercherObservations();
}
});
 
vue.getTriParDateDescendant().addClickHandler(new ClickHandler() {
 
@Override
public void onClick(ClickEvent arg0) {
InformationsRecherche informationsRechercheObservations = CacheClient.getInstance().getInformationsRechercheObservation();
informationsRechercheObservations.setTriParDate(ModeTri.TRI_DESCENDANT);
chercherObservations();
}
});
}
 
}
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/resultats/ResultatsRechercheObservations.css
1,0 → 0,0
.zoneObservation {width:100%; clear:left; margin-top:50px}
.zoneObservation {
width: 100%;
clear: left;
margin-top: 50px
}
 
.boutonTriAsc {
height: 20px;
background: url(./img/fleche-haut.png) no-repeat
}
 
.boutonTriDesc {
height: 20px;
background: url(./img/fleche-bas.png) no-repeat
}
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/resultats/ResultatsRechercheObservationsVue.ui.xml
1,16 → 1,33
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui'
ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat' ui:generateKeys="com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator" ui:generateLocales="default">
<ui:with field='res' type='org.tela_botanica.del.client.Ressources'/>
<ui:with field="constants" type="org.tela_botanica.del.client.i18n.Vocabulary"/>
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui' ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat'
ui:generateKeys="com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator"
ui:generateLocales="default">
<ui:with field='res' type='org.tela_botanica.del.client.Ressources' />
<ui:with field="constants" type="org.tela_botanica.del.client.i18n.Vocabulary" />
 
<ui:style src="ResultatsRechercheObservations.css" />
<ui:style src="ResultatsRechercheObservations.css" />
<g:HTMLPanel>
<g:HTMLPanel>
<g:HorizontalPanel>
<g:HorizontalPanel ui:field="triParNbVotes">
<g:Label text="{constants.triParNbVotes}" />
<g:Button ui:field="triParNbVotesAscendant" styleName="{style.boutonTriAsc}"></g:Button>
<g:Button ui:field="triParNbVotesDescendant" styleName="{style.boutonTriDesc}"></g:Button>
</g:HorizontalPanel>
<g:HorizontalPanel ui:field="triParDate">
<g:Label text="{constants.triParDate}" />
<g:Button ui:field="triParDateAscendant" styleName="{style.boutonTriAsc}"></g:Button>
<g:Button ui:field="triParDateDescendant" styleName="{style.boutonTriDesc}"></g:Button>
</g:HorizontalPanel>
</g:HorizontalPanel>
</g:HTMLPanel>
<g:HTMLPanel>
<g:VerticalPanel ui:field="zonePaginationHaut" />
<g:VerticalPanel ui:field="panneauChargement" >
<g:VerticalPanel ui:field="panneauChargement">
<g:Image url="./img/wait.gif"></g:Image>
</g:VerticalPanel>
<g:HTMLPanel ui:field="zoneObservations" styleName="{style.zoneObservation}"/>
<g:HTMLPanel ui:field="zoneObservations" styleName="{style.zoneObservation}" />
<g:VerticalPanel ui:field="zonePaginationBas" />
</g:HTMLPanel>
</g:HTMLPanel>
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/resultats/ResultatsRechercheObservationsPresenteur.java
4,6 → 4,8
import org.tela_botanica.del.client.composants.pagination.PaginationPresenteur;
import org.tela_botanica.del.client.composants.pagination.PaginationVue;
import org.tela_botanica.del.client.composants.presenteur.Presenteur;
import org.tela_botanica.del.client.modeles.InformationsRecherche;
import org.tela_botanica.del.client.modeles.ModeTri;
import org.tela_botanica.del.client.modeles.Observation;
import org.tela_botanica.del.client.modeles.ObservationServiceResultat;
import org.tela_botanica.del.client.services.rest.ObservationService;
11,6 → 13,9
import org.tela_botanica.del.client.vues.rechercheobservations.ObservationPresenteur;
import org.tela_botanica.del.client.vues.rechercheobservations.ObservationVue;
 
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.IsWidget;
 
31,6 → 36,14
public void stopChargement();
 
public void nettoyer();
 
public HasClickHandlers getTriParNbVotesAscendant();
 
public HasClickHandlers getTriParNbVotesDescendant();
 
public HasClickHandlers getTriParDateAscendant();
 
public HasClickHandlers getTriParDateDescendant();
}
 
private Vue vue;
44,9 → 57,50
public void go(HasWidgets composite) {
composite.add(vue.asWidget());
lancerRechercheEtCreerWidgetPagination();
gererEvenements();
}
 
protected void gererEvenements() {
 
vue.getTriParNbVotesAscendant().addClickHandler(new ClickHandler() {
 
@Override
public void onClick(ClickEvent arg0) {
InformationsRecherche informationsRechercheObservations = CacheClient.getInstance().getInformationsRechercheObservation();
informationsRechercheObservations.setTriParNbVotes(ModeTri.TRI_ASCENDANT);
chercherEtAfficherObservationsPageEnCours();
}
});
 
vue.getTriParNbVotesDescendant().addClickHandler(new ClickHandler() {
 
@Override
public void onClick(ClickEvent arg0) {
InformationsRecherche informationsRechercheObservations = CacheClient.getInstance().getInformationsRechercheObservation();
informationsRechercheObservations.setTriParNbVotes(ModeTri.TRI_DESCENDANT);
chercherEtAfficherObservationsPageEnCours();
}
});
 
vue.getTriParDateAscendant().addClickHandler(new ClickHandler() {
 
@Override
public void onClick(ClickEvent arg0) {
InformationsRecherche informationsRechercheObservations = CacheClient.getInstance().getInformationsRechercheObservation();
informationsRechercheObservations.setTriParDate(ModeTri.TRI_ASCENDANT);
chercherEtAfficherObservationsPageEnCours();
}
});
 
vue.getTriParDateDescendant().addClickHandler(new ClickHandler() {
 
@Override
public void onClick(ClickEvent arg0) {
InformationsRecherche informationsRechercheObservations = CacheClient.getInstance().getInformationsRechercheObservation();
informationsRechercheObservations.setTriParDate(ModeTri.TRI_DESCENDANT);
chercherEtAfficherObservationsPageEnCours();
}
});
}
 
public void chargerEtAfficherObservations(int debut, int fin) {
114,4 → 168,10
serviceObs.getObservations(CacheClient.getInstance().getInformationsRechercheObservation(), debut, fin, callback);
}
 
public void chercherEtAfficherObservationsPageEnCours() {
int debut = (CacheClient.getInstance().getPageCouranteRechercheObservations() - 1) * CacheClient.getInstance().getPasPagination();
int fin = (CacheClient.getInstance().getPageCouranteRechercheObservations()) * CacheClient.getInstance().getPasPagination();
chargerEtAfficherObservations(debut, fin);
}
 
}
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/resultats/ResultatsRechercheObservationsVue.java
3,6 → 3,7
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Panel;
22,6 → 23,9
@UiField
Panel zoneObservations, zonePaginationHaut, zonePaginationBas;
 
@UiField
Button triParNbVotesAscendant, triParNbVotesDescendant, triParDateAscendant, triParDateDescendant;
 
// Constructeur de la vue
public ResultatsRechercheObservationsVue() {
initWidget(binder.createAndBindUi(this));
60,4 → 64,20
public void stopChargement() {
panneauChargement.setVisible(false);
}
 
public Button getTriParNbVotesAscendant() {
return triParNbVotesAscendant;
}
 
public Button getTriParNbVotesDescendant() {
return triParNbVotesDescendant;
}
 
public Button getTriParDateAscendant() {
return triParDateAscendant;
}
 
public Button getTriParDateDescendant() {
return triParDateDescendant;
}
}
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/RechercheObservationsVue.java
3,7 → 3,6
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Panel;
20,8 → 19,7
@UiField
Panel zoneRecherche, zoneResultats;
 
@UiField
Button triParNbVotesAscendant, triParNbVotesDescendant, triParDateAscendant, triParDateDescendant;
 
public HasWidgets getZoneRecherche() {
return zoneRecherche;
36,20 → 34,6
return zoneResultats;
}
 
public Button getTriParNbVotesAscendant() {
return triParNbVotesAscendant;
}
 
public Button getTriParNbVotesDescendant() {
return triParNbVotesDescendant;
}
 
public Button getTriParDateAscendant() {
return triParDateAscendant;
}
 
public Button getTriParDateDescendant() {
return triParDateDescendant;
}
 
}
/trunk/src/org/tela_botanica/del/client/vues/rechercheimages/MoteurRechercheImageVue.ui.xml
18,20 → 18,7
<g:HTMLPanel styleName="{style.zoneProtocoles}">
<g:ListBox ui:field="listeProtocoles" />
</g:HTMLPanel>
<g:HTMLPanel>
<g:HorizontalPanel>
<g:HorizontalPanel ui:field="triParNbVotes">
<g:Label text="{constants.triParNbVotes}" />
<g:Button ui:field="triParNbVotesAscendant" styleName="{style.boutonTriAsc}"></g:Button>
<g:Button ui:field="triParNbVotesDescendant" styleName="{style.boutonTriDesc}"></g:Button>
</g:HorizontalPanel>
<g:HorizontalPanel ui:field="triParDate">
<g:Label text="{constants.triParDate}" />
<g:Button ui:field="triParDateAscendant" styleName="{style.boutonTriAsc}"></g:Button>
<g:Button ui:field="triParDateDescendant" styleName="{style.boutonTriDesc}"></g:Button>
</g:HorizontalPanel>
</g:HorizontalPanel>
</g:HTMLPanel>
<g:HTMLPanel ui:field="panneauResultats" />
</g:HTMLPanel>
</ui:UiBinder>
/trunk/src/org/tela_botanica/del/client/vues/rechercheimages/rechercheImage.css
29,12 → 29,3
position: absolute;
}
 
.boutonTriAsc {
height: 20px;
background: url(./img/fleche-haut.png) no-repeat
}
 
.boutonTriDesc {
height: 20px;
background: url(./img/fleche-bas.png) no-repeat
}
/trunk/src/org/tela_botanica/del/client/vues/rechercheimages/MoteurRechercheImagePresenteur.java
5,9 → 5,7
import org.tela_botanica.del.client.cache.CacheClient;
import org.tela_botanica.del.client.composants.moteurrecherche.MoteurRecherchePresenteur;
import org.tela_botanica.del.client.composants.moteurrecherche.MoteurRechercheVue;
import org.tela_botanica.del.client.modeles.InformationsRecherche;
import org.tela_botanica.del.client.modeles.ModeRecherche;
import org.tela_botanica.del.client.modeles.ModeTri;
import org.tela_botanica.del.client.modeles.Protocole;
import org.tela_botanica.del.client.navigation.evenement.BusEvenementiel;
import org.tela_botanica.del.client.navigation.evenement.changementprotocole.EvenementChangementProtocole;
19,10 → 17,7
 
import com.google.gwt.event.dom.client.ChangeEvent;
import com.google.gwt.event.dom.client.ChangeHandler;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.HasChangeHandlers;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.IsWidget;
 
46,13 → 41,6
 
public void ajouterVue(HasWidgets composite);
 
public HasClickHandlers getTriParNbVotesAscendant();
 
public HasClickHandlers getTriParNbVotesDescendant();
 
public HasClickHandlers getTriParDateAscendant();
 
public HasClickHandlers getTriParDateDescendant();
}
 
private Vue vue;
98,45 → 86,6
}
});
 
vue.getTriParNbVotesAscendant().addClickHandler(new ClickHandler() {
 
@Override
public void onClick(ClickEvent arg0) {
InformationsRecherche informationsRechercheImages = CacheClient.getInstance().getInformationsRechercheImage();
informationsRechercheImages.setTriParNbVotes(ModeTri.TRI_ASCENDANT);
chercherImages();
}
});
 
vue.getTriParNbVotesDescendant().addClickHandler(new ClickHandler() {
 
@Override
public void onClick(ClickEvent arg0) {
InformationsRecherche informationsRechercheImages = CacheClient.getInstance().getInformationsRechercheImage();
informationsRechercheImages.setTriParNbVotes(ModeTri.TRI_DESCENDANT);
chercherImages();
}
});
 
vue.getTriParDateAscendant().addClickHandler(new ClickHandler() {
 
@Override
public void onClick(ClickEvent arg0) {
InformationsRecherche informationsRechercheImages = CacheClient.getInstance().getInformationsRechercheImage();
informationsRechercheImages.setTriParDate(ModeTri.TRI_ASCENDANT);
chercherImages();
}
});
 
vue.getTriParDateDescendant().addClickHandler(new ClickHandler() {
 
@Override
public void onClick(ClickEvent arg0) {
InformationsRecherche informationsRechercheImages = CacheClient.getInstance().getInformationsRechercheImage();
informationsRechercheImages.setTriParDate(ModeTri.TRI_DESCENDANT);
chercherImages();
}
});
}
 
public void surChangementProtocole() {
/trunk/src/org/tela_botanica/del/client/vues/rechercheimages/resultats/ResultatRechercheImagePresenteur.java
9,11 → 9,16
import org.tela_botanica.del.client.composants.pagination.PaginationVue;
import org.tela_botanica.del.client.modeles.Image;
import org.tela_botanica.del.client.modeles.ImageServiceResultat;
import org.tela_botanica.del.client.modeles.InformationsRecherche;
import org.tela_botanica.del.client.modeles.ModeTri;
import org.tela_botanica.del.client.services.rest.ImageService;
import org.tela_botanica.del.client.services.rest.async.ImagesParTaxonCallback;
import org.tela_botanica.del.client.vues.rechercheimages.resultats.images.ImagePresenteur;
import org.tela_botanica.del.client.vues.rechercheimages.resultats.images.ImageVue;
 
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.Panel;
36,6 → 41,14
public HasWidgets getPanneauPagination();
 
public HasWidgets getPanneauPaginationHaut();
 
public HasClickHandlers getTriParNbVotesAscendant();
 
public HasClickHandlers getTriParNbVotesDescendant();
 
public HasClickHandlers getTriParDateAscendant();
 
public HasClickHandlers getTriParDateDescendant();
}
 
// new ResultatRechercheImageVue();
51,10 → 64,53
public void go(HasWidgets composite) {
composite.add(vue.asWidget());
vue.startChargement();
 
rechercherImagesEtCreerWidgetPagination();
gererEvenements();
}
 
public void gererEvenements() {
 
vue.getTriParNbVotesAscendant().addClickHandler(new ClickHandler() {
 
@Override
public void onClick(ClickEvent arg0) {
InformationsRecherche informationsRechercheImages = CacheClient.getInstance().getInformationsRechercheImage();
informationsRechercheImages.setTriParNbVotes(ModeTri.TRI_ASCENDANT);
chargerEtAfficherImagesPageEnCours();
}
});
 
vue.getTriParNbVotesDescendant().addClickHandler(new ClickHandler() {
 
@Override
public void onClick(ClickEvent arg0) {
InformationsRecherche informationsRechercheImages = CacheClient.getInstance().getInformationsRechercheImage();
informationsRechercheImages.setTriParNbVotes(ModeTri.TRI_DESCENDANT);
chargerEtAfficherImagesPageEnCours();
}
});
 
vue.getTriParDateAscendant().addClickHandler(new ClickHandler() {
 
@Override
public void onClick(ClickEvent arg0) {
InformationsRecherche informationsRechercheImages = CacheClient.getInstance().getInformationsRechercheImage();
informationsRechercheImages.setTriParDate(ModeTri.TRI_ASCENDANT);
chargerEtAfficherImagesPageEnCours();
}
});
 
vue.getTriParDateDescendant().addClickHandler(new ClickHandler() {
 
@Override
public void onClick(ClickEvent arg0) {
InformationsRecherche informationsRechercheImages = CacheClient.getInstance().getInformationsRechercheImage();
informationsRechercheImages.setTriParDate(ModeTri.TRI_DESCENDANT);
chargerEtAfficherImagesPageEnCours();
}
});
}
 
public void rechercherImagesEtCreerWidgetPagination() {
 
// appel du service d'image pour avoir le nb total d'elements pour la
132,4 → 188,10
};
return imagesPaginationPresenteur;
}
 
public void chargerEtAfficherImagesPageEnCours() {
final int debut = (CacheClient.getInstance().getPageCouranteRechercheImage() - 1) * CacheClient.getInstance().getPasPagination();
final int fin = (CacheClient.getInstance().getPageCouranteRechercheImage()) * CacheClient.getInstance().getPasPagination();
chargerEtAfficherImages(debut, fin);
}
}
/trunk/src/org/tela_botanica/del/client/vues/rechercheimages/resultats/ResultatRechercheImageVue.java
6,7 → 6,7
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.Panel;
32,6 → 32,9
 
@UiField
HTMLPanel imageTable;
@UiField
Button triParNbVotesAscendant, triParNbVotesDescendant, triParDateAscendant, triParDateDescendant;
 
// Constructeur
public ResultatRechercheImageVue() {
108,5 → 111,21
public List<Panel> getPanneauxImages() {
return panneauxImages;
}
public Button getTriParNbVotesAscendant() {
return triParNbVotesAscendant;
}
 
public Button getTriParNbVotesDescendant() {
return triParNbVotesDescendant;
}
 
public Button getTriParDateAscendant() {
return triParDateAscendant;
}
 
public Button getTriParDateDescendant() {
return triParDateDescendant;
}
 
}
/trunk/src/org/tela_botanica/del/client/vues/rechercheimages/resultats/ResultatRechercheImage.css
1,3 → 1,22
.contenuResultat {text-align: center;}
.images {margin-top:5px;}
.images>div {float:left; margin:0 20px 10px 0px}
.contenuResultat {
text-align: center;
}
 
.images {
margin-top: 5px;
}
 
.images>div {
float: left;
margin: 0 20px 10px 0px
}
 
.boutonTriAsc {
height: 20px;
background: url(./img/fleche-haut.png) no-repeat
}
 
.boutonTriDesc {
height: 20px;
background: url(./img/fleche-bas.png) no-repeat
}
/trunk/src/org/tela_botanica/del/client/vues/rechercheimages/resultats/ResultatRechercheImageVue.ui.xml
5,9 → 5,26
 
<ui:style src="ResultatRechercheImage.css" />
<ui:with field="constants" type="org.tela_botanica.del.client.i18n.Vocabulary" />
 
 
<g:HTMLPanel styleName="{style.contenuResultat}">
<g:HTMLPanel>
<g:HorizontalPanel>
<g:HorizontalPanel ui:field="triParNbVotes">
<g:Label text="{constants.triParNbVotes}" />
<g:Button ui:field="triParNbVotesAscendant" styleName="{style.boutonTriAsc}"></g:Button>
<g:Button ui:field="triParNbVotesDescendant" styleName="{style.boutonTriDesc}"></g:Button>
</g:HorizontalPanel>
<g:HorizontalPanel ui:field="triParDate">
<g:Label text="{constants.triParDate}" />
<g:Button ui:field="triParDateAscendant" styleName="{style.boutonTriAsc}"></g:Button>
<g:Button ui:field="triParDateDescendant" styleName="{style.boutonTriDesc}"></g:Button>
</g:HorizontalPanel>
</g:HorizontalPanel>
</g:HTMLPanel>
<g:VerticalPanel ui:field="panneauPaginationHaut" />
<g:VerticalPanel ui:field="panneauChargement" >
<g:VerticalPanel ui:field="panneauChargement">
<g:Image url="./img/wait.gif"></g:Image>
</g:VerticalPanel>
<g:HTMLPanel ui:field="imageTable" styleName="{style.images}" />
/trunk/src/org/tela_botanica/del/client/vues/rechercheimages/MoteurRechercheImageVue.java
4,7 → 4,6
import com.google.gwt.event.dom.client.HasChangeHandlers;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.HasWidgets;
27,9 → 26,6
@UiField
ListBox listeProtocoles;
 
@UiField
Button triParNbVotesAscendant, triParNbVotesDescendant, triParDateAscendant, triParDateDescendant;
 
// Constructeur
public MoteurRechercheImageVue() {
initWidget(uiBinder.createAndBindUi(this));
84,19 → 80,4
composite.add(this.asWidget());
}
 
public Button getTriParNbVotesAscendant() {
return triParNbVotesAscendant;
}
 
public Button getTriParNbVotesDescendant() {
return triParNbVotesDescendant;
}
 
public Button getTriParDateAscendant() {
return triParDateAscendant;
}
 
public Button getTriParDateDescendant() {
return triParDateDescendant;
}
}