org.apache.tapestry
Interface IDirect

All Superinterfaces:
IComponent, ILocatable, ILocationHolder, IRender
All Known Implementing Classes:
DirectLink, Form, Go, InspectorButton, ShowTemplate

public interface IDirect
extends IComponent

Interface that defines classes that may be messaged by the direct service.

Version:
$Id: IDirect.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship

Method Summary
 boolean isStateful()
          Invoked by the direct service to query the component as to whether it is stateful.
 void trigger(IRequestCycle cycle)
          Invoked by the direct service to have the component peform the appropriate action.
 
Methods inherited from interface org.apache.tapestry.IComponent
addAsset, addBody, addComponent, finishLoad, getAsset, getAssets, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, getString, renderBody, setBinding, setContainer, setId, setNamespace, setPage, setProperty, setSpecification
 
Methods inherited from interface org.apache.tapestry.IRender
render
 
Methods inherited from interface org.apache.tapestry.ILocationHolder
setLocation
 
Methods inherited from interface org.apache.tapestry.ILocatable
getLocation
 

Method Detail

trigger

void trigger(IRequestCycle cycle)
Invoked by the direct service to have the component peform the appropriate action. The DirectLink component will notify its listener.


isStateful

boolean isStateful()
Invoked by the direct service to query the component as to whether it is stateful. If stateful and no HttpSession is active, then a StaleSessionException is thrown by the service.

Since:
2.3