org.apache.tapestry5.corelib.components
Class EventLink

java.lang.Object
  extended by org.apache.tapestry5.corelib.base.AbstractLink
      extended by org.apache.tapestry5.corelib.base.AbstractComponentEventLink
          extended by org.apache.tapestry5.corelib.components.EventLink
All Implemented Interfaces:
ClientElement

public class EventLink
extends AbstractComponentEventLink

A close relative of ActionLink except in two ways.

First, the event that it triggers is explicitly controlled, rather than always "action".

Second, the event is triggered in its container.

This allows slightly shorter URLs but also allows multiple components within the same container to generate identical URLs for common actions.


Constructor Summary
EventLink()
           
 
Method Summary
protected  Link createLink(Object[] eventContext)
          Invoked to create the Link that will become the href attribute of the output.
 
Methods inherited from class org.apache.tapestry5.corelib.base.AbstractLink
getClientId, getLink, isDisabled, writeLink
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventLink

public EventLink()
Method Detail

createLink

protected Link createLink(Object[] eventContext)
Description copied from class: AbstractComponentEventLink
Invoked to create the Link that will become the href attribute of the output.

Specified by:
createLink in class AbstractComponentEventLink
Parameters:
eventContext - the context as an object array, possibly null


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.