info.magnolia.dam.asset.field.configuration.icon
Class IconThumbnailComponentProvider
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IconThumbnailComponentProvider
@Inject
public IconThumbnailComponentProvider(info.magnolia.ui.imageprovider.ImageProvider imageProvider)
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.