|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.servlet.event.TableEventHandler
Implementation of EventHandler that will dispatch to other event handlers based either or both the event name and event source. When multiple handlers are registered that could apply to any single event, they are used in the following descending priority order:
The highest priority handler that is applicable to the current event will be used. All lower priority handlers will be ignored.
Constructor Summary | |
|
TableEventHandler()
Create a TableEventHandler. |
protected |
TableEventHandler(java.lang.String paramKey)
|
Method Summary | |
EventHandler |
getDefaultEventHandler()
Returns the default event handler, used if no handler is registered for an event name. |
protected EventHandler |
getDefaultEventHandlerImpl(boolean createIfNull)
|
EventHandler |
getEventHandler(java.lang.String eventName)
Returns the event handler used for the given event name. |
protected EventHandler |
getEventHandlerImpl(java.lang.String eventKey,
boolean createIfNull)
Returns the event handler used for the given event name. |
EventResult |
handleEvent(BajaContext context,
Page page,
PageEvent event)
Handles an event. |
void |
registerEventHandler(java.lang.String eventName,
EventHandler handler)
Registers an event handler to be called for a specific event name. |
void |
registerEventHandler(java.lang.String eventName,
java.lang.String eventSource,
EventHandler handler)
Registers an event handler to be called for a specific event name. |
void |
registerEventHandlerForSource(java.lang.String eventSource,
EventHandler handler)
Registers an event handler to be called for a specific event source but any event name. |
protected void |
registerEventHandlerImpl(java.lang.String eventKey,
EventHandler handler)
Registers an event handler to be called for a specific event name. |
void |
resetEventHandlers()
Clears all event handlers |
void |
setDefaultEventHandler(EventHandler handler)
Sets the default event handler, used if no handler is registered for an event name. |
protected void |
setDefaultEventHandlerImpl(EventHandler handler)
Sets the default event handler, used if no handler is registered for an event name. |
void |
unregisterEventHandler(java.lang.String eventName)
Unregisters an event handler. |
void |
unregisterEventHandler(java.lang.String eventName,
java.lang.String eventSource)
Unregisters an event handler. |
void |
unregisterEventHandlerForSource(java.lang.String eventSource)
Unregisters an event handler. |
protected void |
unregisterEventHandlerImpl(java.lang.String eventKey)
Unregisters an event handler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TableEventHandler()
protected TableEventHandler(java.lang.String paramKey)
Method Detail |
public void setDefaultEventHandler(EventHandler handler)
handler
- an event handler; if null, use no
default handlerpublic EventHandler getDefaultEventHandler()
public void registerEventHandler(java.lang.String eventName, EventHandler handler)
eventName
- the event name; if null, call this
handler if called with a null eventhandler
- an event handler; if null, unregister
the handler at this name.public void unregisterEventHandler(java.lang.String eventName)
eventName
- the event namepublic void registerEventHandler(java.lang.String eventName, java.lang.String eventSource, EventHandler handler)
eventName
- the event name; if null, call this
handler if called with a null eventeventSource
- the event source; if null, call this
handler if called with a null sourcehandler
- an event handler; if null, unregister
the handler at this name.public void unregisterEventHandler(java.lang.String eventName, java.lang.String eventSource)
eventName
- the event nameeventSource
- the event source; if null, call this
handler if called with a null sourcepublic void registerEventHandlerForSource(java.lang.String eventSource, EventHandler handler)
eventSource
- the event source; if null, call this
handler if called with a null sourcehandler
- an event handler; if null, unregister
the handler at this name.public void unregisterEventHandlerForSource(java.lang.String eventSource)
eventSource
- the event source; if null, call this
handler if called with a null sourcepublic void resetEventHandlers()
public EventHandler getEventHandler(java.lang.String eventName)
public EventResult handleEvent(BajaContext context, Page page, PageEvent event) throws java.lang.Throwable
handleEvent
in interface EventHandler
context
- the BajaContextpage
- the page the client is requestingevent
- the event on that page, or null if the client
is just requesting a page displayUnhandledEventException
- if no handler
is registered for a non-null event.java.lang.Throwable
- if any processing of the event failsprotected void registerEventHandlerImpl(java.lang.String eventKey, EventHandler handler)
eventKey
- the event key; if null, call this
handler if called with a null eventhandler
- an event handler; if null, unregister
the handler at this name.protected void unregisterEventHandlerImpl(java.lang.String eventKey)
eventKey
- the event keyprotected void setDefaultEventHandlerImpl(EventHandler handler)
handler
- an event handler; if null, use no
default handlerprotected EventHandler getEventHandlerImpl(java.lang.String eventKey, boolean createIfNull)
protected EventHandler getDefaultEventHandlerImpl(boolean createIfNull)
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |