Line 1... |
Line 1... |
1 |
package org.tela_botanica.del.client.vues.rechercheimages.resultats.images;
|
1 |
package org.tela_botanica.del.client.vues.rechercheimages.resultats.images;
|
Line 2... |
Line 2... |
2 |
|
2 |
|
3 |
import com.google.gwt.core.client.GWT;
|
- |
|
4 |
import com.google.gwt.event.dom.client.ClickHandler;
|
3 |
import com.google.gwt.core.client.GWT;
|
5 |
import com.google.gwt.event.dom.client.HasClickHandlers;
|
- |
|
6 |
import com.google.gwt.event.shared.HandlerRegistration;
|
4 |
import com.google.gwt.event.dom.client.HasClickHandlers;
|
7 |
import com.google.gwt.uibinder.client.UiBinder;
|
5 |
import com.google.gwt.uibinder.client.UiBinder;
|
8 |
import com.google.gwt.uibinder.client.UiField;
|
6 |
import com.google.gwt.uibinder.client.UiField;
|
9 |
import com.google.gwt.user.client.ui.Composite;
|
7 |
import com.google.gwt.user.client.ui.Composite;
|
10 |
import com.google.gwt.user.client.ui.HTMLPanel;
|
8 |
import com.google.gwt.user.client.ui.HTML;
|
11 |
import com.google.gwt.user.client.ui.HasWidgets;
|
9 |
import com.google.gwt.user.client.ui.HasWidgets;
|
12 |
import com.google.gwt.user.client.ui.HorizontalPanel;
|
- |
|
13 |
import com.google.gwt.user.client.ui.Hyperlink;
|
10 |
import com.google.gwt.user.client.ui.HorizontalPanel;
|
- |
|
11 |
import com.google.gwt.user.client.ui.Image;
|
14 |
import com.google.gwt.user.client.ui.Image;
|
12 |
import com.google.gwt.user.client.ui.InlineHTML;
|
15 |
import com.google.gwt.user.client.ui.IsWidget;
|
13 |
import com.google.gwt.user.client.ui.IsWidget;
|
16 |
import com.google.gwt.user.client.ui.Label;
|
14 |
import com.google.gwt.user.client.ui.Label;
|
17 |
import com.google.gwt.user.client.ui.Panel;
|
- |
|
18 |
import com.google.gwt.user.client.ui.VerticalPanel;
|
15 |
import com.google.gwt.user.client.ui.Panel;
|
Line 19... |
Line 16... |
19 |
import com.google.gwt.user.client.ui.Widget;
|
16 |
import com.google.gwt.user.client.ui.Widget;
|
Line 20... |
Line 17... |
20 |
|
17 |
|
21 |
public class ImageVue extends Composite implements ImagePresenteur.Vue {
|
18 |
public class ImageVue extends Composite implements ImagePresenteur.Vue {
|
22 |
|
19 |
|
23 |
// Annotation can be used to change the name of the associated xml file
|
20 |
// Annotation can be used to change the name of the associated xml file
|
Line 24... |
Line 21... |
24 |
// @UiTemplate("ObservationVue.ui.xml")
|
21 |
// @UiTemplate("ObservationVue.ui.xml")
|
25 |
interface MyUiBinder extends UiBinder<Widget, ImageVue> {
|
22 |
interface MyUiBinder extends UiBinder<Widget, ImageVue> {
|
26 |
}
|
23 |
}
|
27 |
|
24 |
|
Line 28... |
Line 25... |
28 |
private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
|
25 |
private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
|
29 |
|
26 |
|
Line 30... |
Line 27... |
30 |
@UiField
|
27 |
@UiField
|
Line 61... |
Line 58... |
61 |
zoneCache.setVisible(true);
|
58 |
zoneCache.setVisible(true);
|
62 |
}
|
59 |
}
|
Line 63... |
Line 60... |
63 |
|
60 |
|
64 |
public void loadImage(org.tela_botanica.del.client.modeles.Image image) {
|
61 |
public void loadImage(org.tela_botanica.del.client.modeles.Image image) {
|
65 |
zoneCache.setVisible(false);
|
62 |
zoneCache.setVisible(false);
|
66 |
nomEspece.setText(image.getObservation().getNomRetenu());
|
63 |
nomEspece.setHTML("<p>"+image.getObservation().getNomRetenu()+"</p>");
|
Line 67... |
Line 64... |
67 |
nomAuteur.setText(image.getObservation().getAuteur());
|
64 |
nomAuteur.setHTML("<p>"+image.getObservation().getAuteur()+"</p>");
|
68 |
|
65 |
|
69 |
imagePrincipale.setUrl(image.getUrl());
|
66 |
imagePrincipale.setUrl(image.getUrl());
|
70 |
imagePrincipale.setTitle(image.getUrlFormat("L"));
|
67 |
imagePrincipale.setTitle(image.getUrlFormat("L"));
|