com.atlassian.renderer.embedded
Class PlaceholderImageRenderer

java.lang.Object
  extended by com.atlassian.renderer.embedded.PlaceholderImageRenderer
All Implemented Interfaces:
EmbeddedResourceRenderer

public class PlaceholderImageRenderer
extends Object
implements EmbeddedResourceRenderer

Currently we cannot convert the HTML used to show an embedded flash/movie file back into wiki format. Hence we are using this place holder renderer to render a place holder image in place of the actual animation/movie This will fix CONF-4415


Field Summary
static String DEFAULT_ICON_NAME
          The default image that will appear in the img tag created if ICON_PARAMETER is not specified.
static String ICON_PARAMETER
          Key of the parameter to add to the RenderContext via RenderContext.addParam(Object, Object) for the image that will be used in place of movies and missing attachment files in the RTE.
 
Constructor Summary
PlaceholderImageRenderer()
           
 
Method Summary
 String renderResource(EmbeddedResource resource, RenderContext context)
          Render the embedded resource to a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ICON_PARAMETER

public static final String ICON_PARAMETER
Key of the parameter to add to the RenderContext via RenderContext.addParam(Object, Object) for the image that will be used in place of movies and missing attachment files in the RTE. This will be appended to RenderContext.getImagePath() and embedded in an image tag.

See Also:
Constant Field Values

DEFAULT_ICON_NAME

public static final String DEFAULT_ICON_NAME
The default image that will appear in the img tag created if ICON_PARAMETER is not specified.

See Also:
Constant Field Values
Constructor Detail

PlaceholderImageRenderer

public PlaceholderImageRenderer()
Method Detail

renderResource

public String renderResource(EmbeddedResource resource,
                             RenderContext context)
Description copied from interface: EmbeddedResourceRenderer
Render the embedded resource to a string.

Specified by:
renderResource in interface EmbeddedResourceRenderer
Parameters:
resource - to be rendered
context - of render


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.