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

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

public class EmbeddedFlashRenderer
extends AbstractEmbeddedResourceRenderer

Renders a flash (swf) attachment as HTML. Renders using velocity.


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

Field Detail

RESOURCE_TYPE

public static final java.lang.String RESOURCE_TYPE
See Also:
Constant Field Values
Constructor Detail

EmbeddedFlashRenderer

public EmbeddedFlashRenderer()
Method Detail

refineParams

protected java.util.Map<java.lang.String,java.lang.Object> refineParams(Attachment attachment,
                                                                        java.util.Map<java.lang.String,java.lang.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

renderResource

public java.lang.String renderResource(EmbeddedObject resource,
                                       com.atlassian.renderer.RenderContext context)
Description copied from interface: EmbeddedResourceRenderer
Render the embedded resource to a string.

Specified by:
renderResource in interface EmbeddedResourceRenderer
Overrides:
renderResource in class AbstractEmbeddedResourceRenderer
Parameters:
resource - to be rendered
context - of render
Returns:
html source for the object element

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-2014 Atlassian. All Rights Reserved.