com.atlassian.confluence.plugins.macros.core.renderer
Class EmbeddedVideoRenderer

java.lang.Object
  extended by com.atlassian.confluence.plugins.macros.core.renderer.AbstractEmbeddedResourceRenderer
      extended by com.atlassian.confluence.plugins.macros.core.renderer.EmbeddedVideoRenderer
All Implemented Interfaces:
EmbeddedResourceRenderer

public class EmbeddedVideoRenderer
extends AbstractEmbeddedResourceRenderer


Field Summary
 
Fields inherited from class com.atlassian.confluence.plugins.macros.core.renderer.AbstractEmbeddedResourceRenderer
TEMPLATE_PATH, validEmbedTags, validObjectTags, validParamTags, WRAPPER_TEMPLATE_PATH
 
Constructor Summary
EmbeddedVideoRenderer()
           
 
Method Summary
 boolean matchesType(EmbeddedObject resource)
          Returns true if the renderer matches the resource
protected  Map<String,Object> refineParams(Attachment attachment, Map<String,Object> properties)
          Provides the opportunity for a specialisation to customise any parameters / properties.
 
Methods inherited from class com.atlassian.confluence.plugins.macros.core.renderer.AbstractEmbeddedResourceRenderer
getDefaultHeight, getDefaultWidth, renderResource, setupObjectProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedVideoRenderer

public EmbeddedVideoRenderer()
Method Detail

refineParams

protected Map<String,Object> refineParams(Attachment attachment,
                                          Map<String,Object> properties)
Description copied from class: AbstractEmbeddedResourceRenderer
Provides the opportunity for a specialisation to customise any parameters / properties. e.g. Setting the width and height based on the actual content.

Specified by:
refineParams in class AbstractEmbeddedResourceRenderer
Parameters:
attachment - the attachment to process
properties - the parameters to be added to or altered
Returns:
a new/updated map of parameters

matchesType

public boolean matchesType(EmbeddedObject resource)
Description copied from interface: EmbeddedResourceRenderer
Returns true if the renderer matches the resource

Parameters:
resource - the resource to match
Returns:
true if the resource matches


Copyright © 2003-2013 Atlassian. All Rights Reserved.