org.apache.tapestry
Interface IDirect

All Superinterfaces:
IComponent, IDynamicInvoker, IRender, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder
All Known Subinterfaces:
IForm
All Known Implementing Classes:
Autocompleter, DirectLink, Form, Go, InlineEditBox, ShowTemplate, Suggest

public interface IDirect
extends IComponent, IDynamicInvoker

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


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 perform the appropriate action.
 
Methods inherited from interface org.apache.tapestry.IComponent
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getSpecification, getSpecifiedId, getTemplateTagName, isRendering, peekClientId, renderBody, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, setTemplateTagName
 
Methods inherited from interface org.apache.tapestry.IRender
render
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 
Methods inherited from interface org.apache.tapestry.IDynamicInvoker
getUpdateComponents, isAsync, isJson
 

Method Detail

trigger

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

Parameters:
cycle - The current request.

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.

Returns:
Whether or not invocation should include state information and validate that a valid session exists when triggered.
Since:
2.3


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