/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/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/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/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/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 |
} |