org.apache.tapestry.callback
Class DirectCallback

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

public class DirectCallback
extends java.lang.Object
implements ICallback

Simple callback for re-invoking a IDirect trigger.

Since:
0.2.9
Author:
Howard Lewis Ship
See Also:
Serialized Form

Constructor Summary
DirectCallback(IDirect component, java.lang.Object[] parameters)
          Creates a new DirectCallback for the component.
 
Method Summary
 void performCallback(IRequestCycle cycle)
          Locates the IDirectcomponent that was previously identified (and whose page and id path were stored).
 java.lang.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,
                      java.lang.Object[] parameters)
Creates a new DirectCallback for the component. The parameters (which may be null) is retained, not copied.

Method Detail

toString

public java.lang.String toString()

performCallback

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

Specified by:
performCallback in interface ICallback