From 34b883a2853f0175bc843a44beed8ee1f4912e07 Mon Sep 17 00:00:00 2001 From: Costantino Perciante Date: Mon, 25 Jan 2016 11:10:20 +0000 Subject: [PATCH] Few changes: - added loading image before the browser fetches the image to show from its url; - added method to hide left and right arrows; - added download icon; - now if the user clicks on the image the next one is shown. git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/widgets/image-previewer-widget@122484 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/EnhancedImage.java | 2 +- .../client/ImagePreviewer.java | 27 ++- .../client/resources/Loading.gif | Bin 0 -> 5215 bytes .../client/resources/Resources.java | 10 + .../client/ui/Carousel.java | 186 ++++++++++++------ .../client/ui/Carousel.ui.xml | 27 +-- 6 files changed, 174 insertions(+), 78 deletions(-) create mode 100644 src/main/java/org/gcube/portlets/widgets/imagepreviewerwidget/client/resources/Loading.gif create mode 100644 src/main/java/org/gcube/portlets/widgets/imagepreviewerwidget/client/resources/Resources.java diff --git a/src/main/java/org/gcube/portlets/widgets/imagepreviewerwidget/client/EnhancedImage.java b/src/main/java/org/gcube/portlets/widgets/imagepreviewerwidget/client/EnhancedImage.java index 604c650..75163c5 100644 --- a/src/main/java/org/gcube/portlets/widgets/imagepreviewerwidget/client/EnhancedImage.java +++ b/src/main/java/org/gcube/portlets/widgets/imagepreviewerwidget/client/EnhancedImage.java @@ -3,7 +3,7 @@ package org.gcube.portlets.widgets.imagepreviewerwidget.client; import com.github.gwtbootstrap.client.ui.Image; /** - * This class contains the object to show within the carousel plus some other information: + * This class contains the image to show within the carousel plus the following other information: *