New file |
0,0 → 1,110 |
package org.tela_botanica.del.client.vues.rechercheimages.resultats.images; |
|
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.Composite; |
import com.google.gwt.user.client.ui.FlowPanel; |
import com.google.gwt.user.client.ui.HTML; |
import com.google.gwt.user.client.ui.HorizontalPanel; |
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.VerticalPanel; |
import com.google.gwt.user.client.ui.Widget; |
|
public class ImageVue extends Composite { |
|
// Annotation can be used to change the name of the associated xml file |
// @UiTemplate("ObservationVue.ui.xml") |
interface MyUiBinder extends UiBinder<Widget, ImageVue> { |
} |
|
private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class); |
|
@UiField |
protected Label nomEspece, nomAuteur, nomObservateur, nomRetenu, dateObservation, famille, localite; |
|
@UiField |
protected HorizontalPanel voter; |
|
@UiField |
protected VerticalPanel zoneCache; |
|
@UiField |
Image imagePrincipale; |
|
@UiField |
Label enSavoirPlus, ajoutValidation; |
|
public ImageVue() { |
// sets listBox |
initWidget(uiBinder.createAndBindUi(this)); |
} |
|
protected void loadImage(org.tela_botanica.del.client.modeles.Image image) { |
enSavoirPlus.setStyleName("boutonPlus"); |
zoneCache.setVisible(false); |
nomEspece.setText(image.getObservation().getSpecies()); |
nomAuteur.setText(image.getObservation().getAuteur()); |
imagePrincipale.setUrl(image.getUrl()); |
nomObservateur.setText(image.getObservation().getAuteur()); |
nomRetenu.setText(image.getObservation().getNomRetenu()); |
dateObservation.setText(image.getObservation().getDate()); |
famille.setText(image.getObservation().getFamille()); |
localite.setText(image.getObservation().getLocalite()); |
|
} |
|
protected void clearDetails() { |
/* |
* detailsPanel.clear(); |
* moreDetailsHtml.setHTML("<img src='img/icon_plus.gif' >"); |
*/ |
} |
|
public Panel getFlowPanel() { |
// return flowPanel; |
return new FlowPanel(); |
} |
|
public Panel getDetailsPanel() { |
// return detailsPanel; |
return new FlowPanel(); |
} |
|
public HTML getMoreDetailsHtml() { |
// return moreDetailsHtml; |
return new HTML(); |
} |
|
public HTML getNoValidationDataHtml() { |
// return noValidationDataHtml; |
return new HTML(); |
} |
|
public HTML getProposeValidationDataHtml() { |
// return proposeValidationDataHtml; |
return new HTML(); |
} |
|
public HorizontalPanel getVoter() { |
return voter; |
} |
|
public VerticalPanel getZoneCache() { |
return zoneCache; |
} |
|
public Label getEnSavoirPlus() { |
return enSavoirPlus; |
} |
|
public Image getImagePrincipale() { |
return imagePrincipale; |
} |
|
public Label getAjoutValidation() { |
return ajoutValidation; |
} |
} |