public interface ILinkComponent extends IComponent
Rollover
component.Modifier and Type | Method and Description |
---|---|
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. |
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
java.lang.String getScheme()
java.lang.Integer getPort()
boolean isDisabled()
java.lang.String getAnchor()
java.lang.String getTarget()
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.
ILink getLink(IRequestCycle cycle)
ILinkRenderer
(if the link is not disabled)
to provide a EngineServiceLink
that the renderer can
convert into a URL.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.