org.apache.tapestry
Interface IDirectEvent

All Superinterfaces:
IComponent, IRender, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder
All Known Subinterfaces:
IFormWidget, IWidget
All Known Implementing Classes:
AbstractComponent, AbstractFormComponent, AbstractFormWidget, AbstractLinkComponent, AbstractPage, AbstractPostfield, AbstractTableRowComponent, AbstractTableViewComponent, AbstractWidget, AjaxStatus, Any, Autocompleter, BaseComponent, BasePage, Block, Body, Button, Card, Checkbox, CheckboxGroup, Choose, Conditional, ControlCheckbox, ControlledCheckbox, DateField, DatePicker, Deck, Delegator, Describe, Dialog, DirectLink, Do, DropdownDatePicker, DropdownTimePicker, DumpObject, ElseBean, Exception, ExceptionDisplay, ExternalLink, FieldLabel, ForBean, Form, FormConditional, FormTable, Frame, GenericLink, Go, GTimePicker, Hidden, IfBean, Image, Image, ImageSubmit, InlineEditBox, Input, Insert, InsertText, Inspector, InspectorButton, InvokeListener, LinkSubmit, ListEdit, MaskEdit, MultiplePropertySelection, NumericField, OnEvent, Option, Option, PageLink, Palette, Postfield, PropertySelection, PropertySelection, Radio, RadioGroup, Relation, RenderBlock, RenderBody, RequestDisplay, Rollover, Script, ScriptIncludes, Select, Select, SelectionField, Selector, ServiceLink, Setvar, Shell, ShowEngine, ShowProperties, ShowSpecification, ShowTemplate, SimpleTableColumnComponent, SimpleTableColumnFormComponent, SimpleTableColumnSortImage, SimpleTableColumnSortLink, StaleLink, Style, Submit, Suggest, Table, TableColumns, TableFormPages, TableFormRows, TablePages, TableRows, TableValues, TableView, TextArea, TextField, Timeout, Timer, Tree, TreeDataView, TreeNodeView, TreeTable, TreeTableDataView, TreeTableNodeViewDelegator, TreeView, Upload, ValidatingTextField, ValidField, ViewTabs, When, WMLException, WMLStaleLink, XTile

public interface IDirectEvent
extends IComponent

Interface that defines classes that may be invoked directly by the event service.

Author:
jkuhnert

Method Summary
 boolean isStateful()
          Invoked by the event service to query the component as to whether it is stateful.
 void triggerEvent(IRequestCycle cycle, BrowserEvent event)
          Invoked by the event service to have the component peform 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
 

Method Detail

triggerEvent

void triggerEvent(IRequestCycle cycle,
                  BrowserEvent event)
Invoked by the event service to have the component peform the appropriate action.


isStateful

boolean isStateful()
Invoked by the event 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.



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