oracle.cabo.servlet.event
Interface EventHandler
- All Known Implementing Classes:
- AbstractDataEventHandler, BaseEventHandler, GoEventHandler, NullEventHandler, TableEventHandler, MethodEventHandler, CompoundEventHandler, PickerEventHandler, ShowFacetEventHandler, ActionEventHandler
- public interface EventHandler
Interface for handling an event.
handleEvent
public EventResult handleEvent(BajaContext context,
Page page,
PageEvent event)
throws java.lang.Throwable
- Handle an event. Clients return an
EventResult
object that encapsulates the resulsts. If handleEvent()
returns null, the PageBroker
will simply redisplay
the same page. Otherwise, the result will be passed to the
PageFlowEngine
to determine the Page
to
render.
Note: while the Page
object is mutable, any calls
that set properties, etc., will be ignored unless the Page
is itself returned inside the EventResult
.
- Parameters:
context
- the BajaContextpage
- the page the client is requestingevent
- the event on that page, or null if the client
is just requesting a page display- Returns:
- an object encapsulating results of this event
- Throws:
java.lang.Throwable
- if any processing of the event fails