public class ImageThumbnailComponentProvider extends Object implements ThumbnailComponentProvider
Constructor and Description |
---|
ImageThumbnailComponentProvider() |
Modifier and Type | Method and Description |
---|---|
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.
|
public com.vaadin.ui.Component createThumbnailComponent(String description, File file, String mimeType)
ThumbnailComponentProvider
Component
.createThumbnailComponent
in interface ThumbnailComponentProvider
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.protected String makeImageFilename()
Copyright © 2018 Magnolia International Ltd.. All rights reserved.