org.apache.tapestry
Interface IActionListener

All Known Implementing Classes:
ListenerMethodBinding, SyntheticListener

public interface IActionListener

Defines a listener to an IDirect component, which is way to get behavior when the component's URL is triggered (or the form containing the component is submitted). Certain form elements (Hidden) also make use of this interface.

Author:
Howard Lewis Ship

Method Summary
 void actionTriggered(IComponent component, IRequestCycle cycle)
          Method invoked by the component (an DirectLink or Form, when its URL is triggered.
 String getMethodName()
          The actual method name that this listener represents.
 

Method Detail

actionTriggered

void actionTriggered(IComponent component,
                     IRequestCycle cycle)
Method invoked by the component (an DirectLink or Form, when its URL is triggered.

Parameters:
component - The component which was "triggered".
cycle - The request cycle in which the component was triggered.

getMethodName

String getMethodName()
The actual method name that this listener represents.

Returns:
The method name this listener is bound to.


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