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

java.lang.Object
  extended by org.xwiki.rendering.internal.renderer.xhtml.link.AbstractXHTMLLinkTypeRenderer
      extended by org.xwiki.rendering.internal.renderer.xhtml.link.AttachmentXHTMLLinkTypeRenderer
All Implemented Interfaces:
org.xwiki.component.phase.Initializable, XHTMLLinkTypeRenderer, LinkListener

@Component
@Named(value="attach")
@InstantiationStrategy(value=PER_LOOKUP)
public class AttachmentXHTMLLinkTypeRenderer
extends AbstractXHTMLLinkTypeRenderer
implements org.xwiki.component.phase.Initializable

Handle XHTML rendering for links to attachments.

Since:
2.5M2
Version:
$Id$

Field Summary
 
Fields inherited from class org.xwiki.rendering.internal.renderer.xhtml.link.AbstractXHTMLLinkTypeRenderer
CLASS, componentManager, SPAN
 
Constructor Summary
AttachmentXHTMLLinkTypeRenderer()
           
 
Method Summary
protected  void beginLinkExtraAttributes(ResourceReference reference, java.util.Map<java.lang.String,java.lang.String> spanAttributes, java.util.Map<java.lang.String,java.lang.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.
 void initialize()
          
 
Methods inherited from class org.xwiki.rendering.internal.renderer.xhtml.link.AbstractXHTMLLinkTypeRenderer
beginLink, computeLabel, endLink, getXHTMLWikiPrinter, hasLabel, setHasLabel, setXHTMLWikiPrinter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentXHTMLLinkTypeRenderer

public AttachmentXHTMLLinkTypeRenderer()
Method Detail

initialize

public void initialize()
                throws org.xwiki.component.phase.InitializationException

Specified by:
initialize in interface org.xwiki.component.phase.Initializable
Throws:
org.xwiki.component.phase.InitializationException
See Also:
Initializable.initialize()

beginLinkExtraAttributes

protected void beginLinkExtraAttributes(ResourceReference reference,
                                        java.util.Map<java.lang.String,java.lang.String> spanAttributes,
                                        java.util.Map<java.lang.String,java.lang.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.

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
See Also:
AbstractXHTMLLinkTypeRenderer.beginLinkExtraAttributes(org.xwiki.rendering.listener.reference.ResourceReference , java.util.Map, java.util.Map)


Copyright © 2004-2011 XWiki. All Rights Reserved.