com.atlassian.confluence.content.render.xhtml.migration
Class ColorMacroReplacementRenderer

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.migration.ColorMacroReplacementRenderer
All Implemented Interfaces:
MacroReplacementRenderer

public class ColorMacroReplacementRenderer
extends Object
implements MacroReplacementRenderer

Converts the old style wiki color macro into an XHTML <span> elements (as used by TinyMCE).


Constructor Summary
ColorMacroReplacementRenderer(com.atlassian.renderer.v2.V2SubRenderer migrationSubRenderer)
           
 
Method Summary
 Set<String> getHandledClasses()
           
 String render(MacroDefinition macro, com.atlassian.renderer.RenderContext renderContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorMacroReplacementRenderer

public ColorMacroReplacementRenderer(com.atlassian.renderer.v2.V2SubRenderer migrationSubRenderer)
Method Detail

getHandledClasses

public Set<String> getHandledClasses()
Specified by:
getHandledClasses in interface MacroReplacementRenderer
Returns:
a Set of class names (as Strings) of v2 Macro implementations that this MacroReplacementRenderer applies to.

render

public String render(MacroDefinition macro,
                     com.atlassian.renderer.RenderContext renderContext)
Specified by:
render in interface MacroReplacementRenderer


Copyright © 2003–2015 Atlassian. All rights reserved.