org.apache.tapestry.components
Interface ILinkComponent
- All Superinterfaces:
- IComponent, ILocatable, ILocationHolder, IRender
- All Known Implementing Classes:
- AbstractLinkComponent
- public interface ILinkComponent
- extends IComponent
A component that renders an HTML <a> element. It exposes some
properties to the components it wraps. This is basically to facilitate
the Rollover
component.
- Version:
- $Id: ILinkComponent.java,v 1.3 2003/04/17 21:34:02 hlship Exp $
- Author:
- Howard Lewis Ship
Methods inherited from interface org.apache.tapestry.IComponent |
addAsset, addBody, addComponent, finishLoad, getAsset, getAssets, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, getString, renderBody, setBinding, setContainer, setId, setNamespace, setPage, setProperty, setSpecification |
Methods inherited from interface org.apache.tapestry.IRender |
render |
isDisabled
public boolean isDisabled()
- Returns whether this service link component is enabled or disabled.
- Since:
- 0.2.9
getAnchor
public String getAnchor()
- Returns the anchor defined for this link, or null for no anchor.
- Since:
- 3.0
addEventHandler
public void addEventHandler(LinkEventType type,
String functionName)
- Adds a new event handler. When the event occurs, the JavaScript function
specified is executed. Multiple functions can be specified, in which case
all of them are executed.
This was created for use by
Rollover
to set mouse over and mouse out handlers on
the ILinkComponent
that wraps it, but can be used for
many other things as well.
- Since:
- 0.2.9
getLink
public ILink getLink(IRequestCycle cycle)
- Invoked by the
ILinkRenderer
(if
the link is not disabled) to provide a
org.apache.tapestry.EngineServiceLink
that the renderer can convert
into a URL.
renderAdditionalAttributes
public void renderAdditionalAttributes(IMarkupWriter writer,
IRequestCycle cycle)
- Invoked (by the
ILinkRenderer
)
to make the link render any additional attributes. These
are informal parameters, plus any attributes related to events.
This is only invoked for non-disabled links.
- Since:
- 3.0