|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
void |
addEventHandler(LinkEventType type,
java.lang.String functionName)
Adds a new event handler. |
java.lang.String |
getAnchor()
Returns the anchor defined for this link, or null for no anchor. |
ILink |
getLink(IRequestCycle cycle)
Invoked by the ILinkRenderer (if the link is not disabled)
to provide a EngineServiceLink that the renderer can
convert into a URL. |
java.lang.Integer |
getPort()
Returns the desired port (i.e., "80" or "443") for the link, or null to not output a specific port (in which case the URL will fall under the incoming request's port). |
java.lang.String |
getScheme()
Returns the desired scheme (i.e., "http" or "https") for the link, or null to not output a specific scheme (in which case the URL will fall under the incoming request's scheme). |
java.lang.String |
getTarget()
Returns the name of the target window or frame for this link, or null if current window or frame is to be used. |
boolean |
isDisabled()
Returns whether this service link component is enabled or disabled. |
void |
renderAdditionalAttributes(IMarkupWriter writer,
IRequestCycle cycle)
Invoked (by the ILinkRenderer ) to make the link render any
additional attributes. |
Methods inherited from interface org.apache.tapestry.IComponent |
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty |
Methods inherited from interface org.apache.tapestry.IRender |
render |
Methods inherited from interface org.apache.hivemind.LocationHolder |
setLocation |
Methods inherited from interface org.apache.hivemind.Locatable |
getLocation |
Method Detail |
public java.lang.String getScheme()
public java.lang.Integer getPort()
public boolean isDisabled()
public java.lang.String getAnchor()
public java.lang.String getTarget()
public void addEventHandler(LinkEventType type, java.lang.String functionName)
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.
public ILink getLink(IRequestCycle cycle)
ILinkRenderer
(if the link is not disabled)
to provide a EngineServiceLink
that the renderer can
convert into a URL.
public void renderAdditionalAttributes(IMarkupWriter writer, IRequestCycle cycle)
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.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |