org.apache.tapestry.contrib.link
Class RawURLLinkRenderer
java.lang.Object
org.apache.tapestry.contrib.link.RawURLLinkRenderer
- All Implemented Interfaces:
- ILinkRenderer
public class RawURLLinkRenderer
- extends Object
- implements ILinkRenderer
An implementation of ILinkRenderer
that only prints out the link's url, i.e. the value of the href
attribute.
This renderer can be useful when combining javascript fragments
with ILinkComponent
s.
- Since:
- 4.1.1
- Author:
- Andreas Andreou
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SHARED_INSTANCE
public static final ILinkRenderer SHARED_INSTANCE
- A singleton for the raw-url linkRendered.
RawURLLinkRenderer
public RawURLLinkRenderer()
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.
- Specified by:
renderLink
in interface ILinkRenderer
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.