org.xwiki.rendering.internal.renderer.xhtml.link
Class DefaultXHTMLLinkTypeRenderer

java.lang.Object
  extended by org.xwiki.rendering.internal.renderer.xhtml.link.AbstractXHTMLLinkTypeRenderer
      extended by org.xwiki.rendering.internal.renderer.xhtml.link.DefaultXHTMLLinkTypeRenderer
All Implemented Interfaces:
XHTMLLinkTypeRenderer, LinkListener
Direct Known Subclasses:
PathXHTMLLinkTypeRenderer

@Component
@InstantiationStrategy(value=PER_LOOKUP)
public class DefaultXHTMLLinkTypeRenderer
extends AbstractXHTMLLinkTypeRenderer

Handle XHTML rendering for links for which we haven't found a specific XHTMLLinkTypeRenderer implementation.

Since:
2.5M2

Field Summary
 
Fields inherited from class org.xwiki.rendering.internal.renderer.xhtml.link.AbstractXHTMLLinkTypeRenderer
CLASS, componentManager, SPAN
 
Constructor Summary
DefaultXHTMLLinkTypeRenderer()
           
 
Method Summary
protected  void beginLinkExtraAttributes(ResourceReference reference, Map<String,String> spanAttributes, Map<String,String> anchorAttributes)
          Hook called when rendering the beginning of a link to allow implementation classes to augment the passed span and anchor attributes as they see fit.
 
Methods inherited from class org.xwiki.rendering.internal.renderer.xhtml.link.AbstractXHTMLLinkTypeRenderer
beginLink, computeLabel, endLink, getXHTMLWikiPrinter, hasLabel, isExternalLink, setHasLabel, setXHTMLWikiPrinter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultXHTMLLinkTypeRenderer

public DefaultXHTMLLinkTypeRenderer()
Method Detail

beginLinkExtraAttributes

protected void beginLinkExtraAttributes(ResourceReference reference,
                                        Map<String,String> spanAttributes,
                                        Map<String,String> anchorAttributes)
Description copied from class: AbstractXHTMLLinkTypeRenderer
Hook called when rendering the beginning of a link to allow implementation classes to augment the passed span and anchor attributes as they see fit.

Specified by:
beginLinkExtraAttributes in class AbstractXHTMLLinkTypeRenderer
Parameters:
reference - the reference of the link being rendered
spanAttributes - the HTML attributes for the SPAN HTML element added around the ANCHOR HTML element
anchorAttributes - the HTML attributes for the ANCHOR element