Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 360 → Rev 361

/trunk/src/org/tela_botanica/del/client/vues/comparaisoneflore/ComparaisonEfloreVue.ui.xml
1,65 → 1,73
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
 
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui'>
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'>
 
<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="comparaisonEflore.css" />
<g:HorizontalPanel styleName="{style.zoneComparaison}">
<g:VerticalPanel styleName="{style.photoPrincipale}">
<g:Label text="{constants.taxonADeterminer}" styleName="titre"/>
<g:Label text="{constants.taxonADeterminer}" styleName="petit"/>
<g:Image ui:field="imagePrincipale" />
<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="comparaisonEflore.css" />
<g:HTMLPanel styleName="{style.meta}">
<g:Label text="{constants.metadonneesPhoto}" styleName="titre"/>
<g:Label text="{constants.metadonneesPhoto}" styleName="petit"/>
<br />
<g:Label text="{constants.observateur}" styleName="petit"/><g:Label ui:field="nomAuteur" />
<g:Label text="{constants.dateObservation}" styleName="petit"/>
<g:Label ui:field="dateObservation" />
<g:Label text="{constants.commentaires}" styleName="petit"/>
<g:Label ui:field="famille"/>
<g:Label text="{constants.motsClefs}" styleName="petit"/>
<g:Label ui:field="motsClefs"/>
<g:HorizontalPanel styleName="{style.zoneComparaison}">
<g:VerticalPanel styleName="{style.photoPrincipale}">
<g:Label text="{constants.taxonADeterminer}" styleName="titre" />
<g:Label text="{constants.taxonADeterminer}" styleName="petit" />
<g:Image ui:field="imagePrincipale" />
 
<br />
<g:Label text="{constants.validePar}" styleName="petit"/>
<g:Label ui:field="validateurs"/>
<g:Label text="{constants.dateValidation}" styleName="petit"/>
<g:Label ui:field="dateValidation"/>
</g:HTMLPanel>
</g:VerticalPanel>
<g:VerticalPanel styleName="{style.photoComparee}">
<g:Label text="{constants.imageEflore}" styleName="titre"/>
<g:Label text="{constants.imageEflore}" styleName="petit"/>
<g:Image ui:field="imageEflore" />
<g:HorizontalPanel styleName="{style.fleches}">
<g:Image ui:field="scrollLeftImage" resource='{res.arrowLeft}' styleName="gauche"/>
<g:Image ui:field="scrollRightImage" resource='{res.arrowRight}' styleName="droite" />
</g:HorizontalPanel>
<g:HTMLPanel styleName="{style.meta}">
<g:Label text="{constants.metadonneesPhoto}" styleName="titre"/>
<g:Label text="{constants.metadonneesPhoto}" styleName="petit"/>
<g:Label text="{constants.taxon}" styleName="petit"/>
<g:Label ui:field="nomEspeceEflore" />
<g:HTMLPanel styleName="{style.meta}">
<g:Label text="{constants.metadonneesPhoto}" styleName="titre" />
<g:Label text="{constants.metadonneesPhoto}" styleName="petit" />
 
<g:Label text="{constants.localite}" styleName="petit"/>
<g:Label ui:field="localiteEflore"/>
<br />
<g:Label text="{constants.observateur}" styleName="petit" />
<g:Label ui:field="nomAuteur" />
<g:Label text="{constants.dateObservation}" styleName="petit" />
<g:Label ui:field="dateObservation" />
<g:Label text="{constants.commentaires}" styleName="petit" />
<g:Label ui:field="famille" />
 
<g:Label text="{constants.auteur}" styleName="petit"/>
<g:Label ui:field="nomAuteurEflore"/>
<g:Label text="{constants.motsClefs}" styleName="petit" />
<g:Label ui:field="motsClefs" />
 
<g:Label text="{constants.transmisLe}" styleName="petit"/>
<g:Label ui:field="dateObservationEflore"/>
</g:HTMLPanel>
</g:VerticalPanel>
<br />
<g:Label text="{constants.validePar}" styleName="petit" />
<g:Label ui:field="validateurs" />
 
<g:Label text="{constants.dateValidation}" styleName="petit" />
<g:Label ui:field="dateValidation" />
</g:HTMLPanel>
 
</g:VerticalPanel>
<g:VerticalPanel styleName="{style.photoComparee}">
<g:VerticalPanel ui:field="panneauChargement">
<g:Image url="./img/wait.gif"></g:Image>
</g:VerticalPanel>
<g:Label text="{constants.imageEflore}" styleName="titre" />
<g:Label text="{constants.imageEflore}" styleName="petit" />
 
<g:Image ui:field="imageEflore" />
<g:HorizontalPanel styleName="{style.fleches}">
<g:Image ui:field="scrollLeftImage" resource='{res.arrowLeft}'
styleName="gauche" />
<g:Image ui:field="scrollRightImage" resource='{res.arrowRight}'
styleName="droite" />
</g:HorizontalPanel>
 
<g:HTMLPanel styleName="{style.meta}">
<g:Label text="{constants.metadonneesPhoto}" styleName="titre" />
<g:Label text="{constants.metadonneesPhoto}" styleName="petit" />
 
<g:Label text="{constants.taxon}" styleName="petit" />
<g:Label ui:field="nomEspeceEflore" />
 
<g:Label text="{constants.localite}" styleName="petit" />
<g:Label ui:field="localiteEflore" />
 
<g:Label text="{constants.auteur}" styleName="petit" />
<g:Label ui:field="nomAuteurEflore" />
 
<g:Label text="{constants.transmisLe}" styleName="petit" />
<g:Label ui:field="dateObservationEflore" />
</g:HTMLPanel>
</g:VerticalPanel>
</g:HorizontalPanel>
</ui:UiBinder>
/trunk/src/org/tela_botanica/del/client/vues/comparaisoneflore/ComparaisonEflorePresenteur.java
29,6 → 29,10
public HasClickHandlers getScrollRightImage();
 
public int getCurrentIndexImages();
public void startChargement() ;
 
public void stopChargement();
}
 
private Vue vue;
60,6 → 64,8
}
 
public void chargerObservationsEflore() {
vue.startChargement();
 
ImagesParTaxonCallback callback = new ImagesParTaxonCallback() {
 
67,6 → 73,7
public void surImagesRecues(ImageServiceResultat imagesRecues) {
setImagesEflore(imagesRecues.getImages());
vue.chargerImagesEflore(imagesRecues.getImages(), 0);
vue.stopChargement();
}
};
 
/trunk/src/org/tela_botanica/del/client/vues/comparaisoneflore/ComparaisonEfloreVue.java
14,6 → 14,7
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.Widget;
 
public class ComparaisonEfloreVue extends Composite implements ComparaisonEflorePresenteur.Vue {
30,6 → 31,9
@UiField
Image imagePrincipale, imageEflore, scrollLeftImage, scrollRightImage;
 
@UiField
Panel panneauChargement;
 
public ComparaisonEfloreVue() {
initWidget(uiBinder.createAndBindUi(this));
}
118,4 → 122,20
return scrollRightImage;
}
 
public void startChargement() {
panneauChargement.setVisible(true);
}
 
public void stopChargement() {
panneauChargement.setVisible(false);
}
 
public Label getNomAuteur() {
return nomAuteur;
}
 
public Image getImagePrincipale() {
return imagePrincipale;
}
 
}