org.apache.tapestry.callback
Class DirectCallback

java.lang.Object
  extended by org.apache.tapestry.callback.DirectCallback
All Implemented Interfaces:
Serializable, ICallback

public class DirectCallback
extends Object
implements ICallback

Simple callback for re-invoking a IDirect component trigger..

Since:
0.2.9
Version:
$Id: DirectCallback.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship
See Also:
Serialized Form

Constructor Summary
DirectCallback(IDirect component, Object[] parameters)
          Creates a new DirectCallback for the component.
 
Method Summary
 void performCallback(IRequestCycle cycle)
          Locates the IDirect component that was previously identified (and whose page and id path were stored).
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DirectCallback

public DirectCallback(IDirect component,
                      Object[] parameters)
Creates a new DirectCallback for the component. The parameters (which may be null) is retained, not copied.

Method Detail

toString

public String toString()
Overrides:
toString in class Object

performCallback

public void performCallback(IRequestCycle cycle)
Locates the IDirect component that was previously identified (and whose page and id path were stored). Invokes IRequestCycle.setServiceParameters(Object[]) to restore the service parameters, then invokes IDirect.trigger(IRequestCycle) on the component.

Specified by:
performCallback in interface ICallback