public class UrlAttachmentRenderer extends Object implements AttachmentRenderer
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTACHMENT_TYPE |
| Constructor and Description |
|---|
UrlAttachmentRenderer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRenderAttachment(String type)
Returns true if this renderer is capable of rendering attachments of the given 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.
|
String |
getName(I18nManager i18nManager)
Gets the human-readable name for the type of related content
this class is capable of rendering.
|
com.vaadin.ui.Component |
getOverviewComponent(Attachment attachment,
RelatedContentComponent parent)
Get the component that is used in the related content overview list.
|
public static final String ATTACHMENT_TYPE
public String getName(I18nManager i18nManager)
AttachmentRenderergetName in interface AttachmentRendererpublic com.vaadin.terminal.Resource getImage(Attachment attachment)
AttachmentRenderergetImage in interface AttachmentRendererattachment - 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 getOverviewComponent(Attachment attachment, RelatedContentComponent parent)
AttachmentRenderergetOverviewComponent in interface AttachmentRendererpublic com.vaadin.ui.Component getDetailComponent(Attachment attachment)
AttachmentRenderergetDetailComponent in interface AttachmentRendererpublic boolean canRenderAttachment(String type)
AttachmentRenderercanRenderAttachment in interface AttachmentRendererCopyright © 2016 Alfresco. All rights reserved.