info.magnolia.dam.asset.field.configuration.image
Class ImageThumbnailComponentProvider

java.lang.Object
  extended by 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.


Constructor Summary
ImageThumbnailComponentProvider()
           
 
Method Summary
 com.vaadin.ui.Component createThumbnailComponent(String description, File file, String mimeType)
          Generate a Thumbnail Component.
protected  String makeImageFilename()
          Creates a image file name with a timestamp.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageThumbnailComponentProvider

public ImageThumbnailComponentProvider()
Method Detail

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.