|
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.AbstractDataEventHandler
AbstractDataEventHandler is the base implementation of the EventHandler interface which adds support for data binding attributes.
Subclasses should implement doHandleEvent and may override one or both of preHandleEvent and postHandleEvent.
Constructor Summary | |
AbstractDataEventHandler()
|
Method Summary | |
abstract EventResult |
doHandleEvent(BajaContext context,
Page page,
PageEvent event)
Handle an event. |
protected java.lang.Object |
getAttributeInternal(java.lang.String name)
Returns the internal value for this names attribute. |
protected java.lang.Object |
getAttributeValue(BajaContext context,
java.lang.String name)
Returns the value for this named attribute, resolving any binding. |
java.lang.Object |
getAttributeValue(java.lang.String name)
Returns the value for this named attribute. |
protected RenderingContext |
getRenderingContext(BajaContext context)
Returns the rendering context to use when resolving bound values. |
EventResult |
handleEvent(BajaContext context,
Page page,
PageEvent event)
Handle an event. |
void |
postHandleEvent(BajaContext context,
Page page,
PageEvent event)
Post process an event. |
void |
preHandleEvent(BajaContext context,
Page page,
PageEvent event)
Prepare to handle an event. |
void |
setAttributeBinding(java.lang.String name,
BoundValue binding)
Sets the binding for this named attribute. |
protected void |
setAttributeInternal(java.lang.String name,
java.lang.Object value)
Sets the internal value for this names attribute. |
void |
setAttributeValue(java.lang.String name,
java.lang.Object value)
Sets the value for this named attribute. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractDataEventHandler()
Method Detail |
public final EventResult handleEvent(BajaContext context, Page page, PageEvent event) throws java.lang.Throwable
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
.
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 displayjava.lang.Throwable
- if any processing of the event failspublic void preHandleEvent(BajaContext context, Page page, PageEvent event) throws java.lang.Throwable
context
- the BajaContextpage
- the page the client is requestingevent
- the event on that page, or null if the client
is just requesting a page displayjava.lang.Throwable
- if any pre-processing of the event failspublic abstract EventResult doHandleEvent(BajaContext context, Page page, PageEvent event) throws java.lang.Throwable
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.
Clients should implement this method, instead of handleEvent
,
to perform the actual event handling logic.
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
.
context
- the BajaContextpage
- the page the client is requestingevent
- the event on that page, or null if the client
is just requesting a page displayjava.lang.Throwable
- if any processing of the event failspublic void postHandleEvent(BajaContext context, Page page, PageEvent event) throws java.lang.Throwable
context
- the BajaContextpage
- the page the client is requestingevent
- the event on that page, or null if the client
is just requesting a page displayjava.lang.Throwable
- if any pre-processing of the event failspublic final void setAttributeValue(java.lang.String name, java.lang.Object value)
public final void setAttributeBinding(java.lang.String name, BoundValue binding)
public final java.lang.Object getAttributeValue(java.lang.String name)
protected final java.lang.Object getAttributeValue(BajaContext context, java.lang.String name)
protected final RenderingContext getRenderingContext(BajaContext context)
protected final void setAttributeInternal(java.lang.String name, java.lang.Object value)
protected final java.lang.Object getAttributeInternal(java.lang.String name)
|
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 |