Class EnhancedImage
- java.lang.Object
-
- org.gcube.portlets.widgets.imagepreviewerwidget.client.EnhancedImage
-
public class EnhancedImage extends Object
This class allows to build the image to show within the carousel. It contains:- title to show: a title to show in the header of the carousel;
- tooltip : a tooltip shown on image hover event;
- download url: in case of a file, this field can be used to download it.
- thumbnailUrl for the thumbnail
- Author:
- Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
-
-
Constructor Summary
Constructors Constructor Description EnhancedImage(String imageUrl)Build an enhanced image from a url.EnhancedImage(String downloadUrl, String titleToShow, String toolTipToShow)Build an enhanced image from an image but allows to customize the title of the image and its tooltip.EnhancedImage(String thumbnailUrl, String titleToShow, String toolTipToShow, String downloadUrl)Build an enhanced image from an image but allows to customize the other properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDownloadUrl()StringgetImageUrl()OrientationgetOrientation()StringgetThumbnailUrl()StringgetTitleToShow()StringgetToolTipToShow()voidsetDownloadUrl(String downloadUrl)voidsetOrientation(Orientation orientation)voidsetThumbnailUrl(String thumbnailUrl)voidsetTitleToShow(String titleToShow)voidsetToolTipToShow(String toolTipToShow)StringtoString()
-
-
-
Constructor Detail
-
EnhancedImage
public EnhancedImage(String imageUrl)
Build an enhanced image from a url.- Parameters:
imageUrl- the url of the image.
-
EnhancedImage
public EnhancedImage(String downloadUrl, String titleToShow, String toolTipToShow)
Build an enhanced image from an image but allows to customize the title of the image and its tooltip.- Parameters:
image-titleToShow-toolTipToShow-
-
-
Method Detail
-
getThumbnailUrl
public String getThumbnailUrl()
-
setThumbnailUrl
public void setThumbnailUrl(String thumbnailUrl)
-
getTitleToShow
public String getTitleToShow()
-
setTitleToShow
public void setTitleToShow(String titleToShow)
-
getToolTipToShow
public String getToolTipToShow()
-
setToolTipToShow
public void setToolTipToShow(String toolTipToShow)
-
getDownloadUrl
public String getDownloadUrl()
-
setDownloadUrl
public void setDownloadUrl(String downloadUrl)
-
getImageUrl
public String getImageUrl()
-
getOrientation
public Orientation getOrientation()
- Returns:
- the orientation
-
setOrientation
public void setOrientation(Orientation orientation)
- Parameters:
orientation- the orientation to set
-
-