com.primix.tapestry.components
Interface IServiceLink

All Superinterfaces:
IComponent, IRender
All Known Implementing Classes:
AbstractServiceLink

public interface IServiceLink
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: IServiceLink.java,v 1.9 2001/05/02 14:15:15 hship Exp $
Author:
Howard Ship

Field Summary
static java.lang.String ATTRIBUTE_NAME
          The name of an IRequestCycle attribute in which the current service link is stored.
 
Method Summary
 void addEventHandler(ServiceLinkEventType eventType, java.lang.String functionName)
          Adds a new event handler.
 boolean isDisabled()
          Returns whether this service link component is enabled or disabled.
 
Methods inherited from interface com.primix.tapestry.IComponent
addAsset, addComponent, addWrapped, finishLoad, getAsset, getAssets, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getPage, getSpecification, renderWrapped, setBinding, setContainer, setId, setPage, setSpecification
 
Methods inherited from interface com.primix.tapestry.IRender
render
 

Field Detail

ATTRIBUTE_NAME

public static final java.lang.String ATTRIBUTE_NAME
The name of an IRequestCycle attribute in which the current service link is stored. Service links do not nest.
Method Detail

isDisabled

public boolean isDisabled()
Returns whether this service link component is enabled or disabled.
Since:
0.2.9

addEventHandler

public void addEventHandler(ServiceLinkEventType eventType,
                            java.lang.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 is used by Rollover to set mouse over and mouse out handlers on the IServiceLink that wraps it.

Since:
0.2.9