org.apache.tapestry.link
Interface ILinkRenderer

All Known Implementing Classes:
AbsoluteLinkRenderer, AreaLinkRenderer, DefaultLinkRenderer, GoLinkRenderer, OptionRenderer, PopupLinkRenderer

public interface ILinkRenderer

Used by various instances of ILinkComponent to actually renderer a link. Implementations of the interface can manipulate some of the details of how the link is written.

A link rendered may be used in many threads, and must be threadsafe.

Since:
3.0
Version:
$Id: ILinkRenderer.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship

Method Summary
 void renderLink(IMarkupWriter writer, IRequestCycle cycle, ILinkComponent linkComponent)
          Renders the link, taking into account whether the link is disabled.
 

Method Detail

renderLink

void renderLink(IMarkupWriter writer,
                IRequestCycle cycle,
                ILinkComponent linkComponent)
Renders the link, taking into account whether the link is disabled. This is complicated by the fact that the rendering of the body must be done within a nested writer, since the Link component will not render its tag until after its body renders (to allow for any wrapped components that need to write event handlers for the link).

The renderer is expected to call back into the link component to handle any informal parameters, and to handle events output.