org.apache.tapestry.link
Interface ILinkRenderer
- All Known Implementing Classes:
- DefaultLinkRenderer
- 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,v 1.3 2003/04/17 21:33:58 hlship Exp $
- Author:
- Howard Lewis Ship
renderLink
public 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.