info.magnolia.dam.asset.field.configuration.image
Class ImageThumbnailComponentProvider
java.lang.Object
info.magnolia.dam.asset.field.configuration.image.ImageThumbnailComponentProvider
- All Implemented Interfaces:
- ThumbnailComponentProvider
public class ImageThumbnailComponentProvider
- extends Object
- implements ThumbnailComponentProvider
Create an Image Thumbnail. Used by Image MediaType.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageThumbnailComponentProvider
public ImageThumbnailComponentProvider()
createThumbnailComponent
public com.vaadin.ui.Component createThumbnailComponent(String description,
File file,
String mimeType)
- Description copied from interface:
ThumbnailComponentProvider
- Generate a Thumbnail
Component
.
- Specified by:
createThumbnailComponent
in interface ThumbnailComponentProvider
- Parameters:
description
- of the File to be displayed as a Thumbnail.file
- to be displayed as a Thumbnail.mimeType
- of the File to be displayed as a Thumbnail.
- Returns:
- Thumbnail Component (could be a Label/Resource...)
makeImageFilename
protected String makeImageFilename()
- Creates a image file name with a timestamp.
See (https://vaadin.com/forum#!/thread/870107).
Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.