info.magnolia.dam.asset.field.configuration.icon
Class IconThumbnailComponentProvider

java.lang.Object
  extended by info.magnolia.dam.asset.field.configuration.icon.IconThumbnailComponentProvider
All Implemented Interfaces:
ThumbnailComponentProvider

public class IconThumbnailComponentProvider
extends Object
implements ThumbnailComponentProvider

Create an Icon's Thumbnail related to the File mimeType.


Constructor Summary
IconThumbnailComponentProvider(info.magnolia.ui.imageprovider.ImageProvider imageProvider)
           
 
Method Summary
 com.vaadin.ui.Component createThumbnailComponent(String description, File file, String mimeType)
          Generate a Thumbnail Component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IconThumbnailComponentProvider

@Inject
public IconThumbnailComponentProvider(info.magnolia.ui.imageprovider.ImageProvider imageProvider)
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...)


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.