public class ImageAttachmentRenderer extends GenericAttachmentRenderer
Constructor and Description |
---|
ImageAttachmentRenderer() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRenderAttachment(String type)
Returns true if this renderer is capable of rendering attachments of the given type.
|
protected String |
extractMineType(String type) |
com.vaadin.ui.Component |
getDetailComponent(Attachment attachment)
Get the component to render when viewing the details of the
related content for the type this renderer is responsible for.
|
com.vaadin.terminal.Resource |
getImage(Attachment attachment)
Get the image to display in the list of related content for
the given attachment.
|
extractExtention, getName, getOverviewComponent
public boolean canRenderAttachment(String type)
AttachmentRenderer
canRenderAttachment
in interface AttachmentRenderer
canRenderAttachment
in class GenericAttachmentRenderer
public com.vaadin.terminal.Resource getImage(Attachment attachment)
AttachmentRenderer
getImage
in interface AttachmentRenderer
getImage
in class GenericAttachmentRenderer
attachment
- the attachment to get the image for. When null is
passed, the image for a new attachment (of the type this class is capable of
rendering) is expected to be returned.public com.vaadin.ui.Component getDetailComponent(Attachment attachment)
AttachmentRenderer
getDetailComponent
in interface AttachmentRenderer
getDetailComponent
in class GenericAttachmentRenderer
Copyright © 2016 Alfresco. All rights reserved.