|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILinkComponent
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,
String functionName)
Deprecated. To be removed in Tapestry 4.1.4. |
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. |
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). |
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). |
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, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getSpecification, getSpecifiedId, getTemplateTagName, isRendering, peekClientId, renderBody, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, setTemplateTagName |
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 |
---|
String getScheme()
Integer getPort()
boolean isDisabled()
String getAnchor()
#anchorid
portion of the url to be generated - if any.String getTarget()
target="_this"
portion of the link to be generated - if any.void addEventHandler(LinkEventType type, 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.
type
- The type of event to add.functionName
- The name of the client side javascript function to generate.ILink getLink(IRequestCycle cycle)
ILinkRenderer
(if the
link is not disabled) to provide a
EngineServiceLink
that the renderer
can convert into a URL.
cycle
- The current request.
ILink
instance representing the link information for this component.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.
writer
- Markup writer to write content to.cycle
- The current request.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |