oracle.cabo.servlet.event
Class SetEventHandler
java.lang.Object
|
+--oracle.cabo.servlet.event.AbstractDataEventHandler
|
+--oracle.cabo.servlet.event.SetEventHandler
- All Implemented Interfaces:
- EventHandler
- public class SetEventHandler
- extends AbstractDataEventHandler
Sets a property value on a target MutableDataObject.
Methods inherited from class oracle.cabo.servlet.event.AbstractDataEventHandler |
getAttributeInternal, getAttributeValue, getAttributeValue, getPageEvent, getRenderingContext, handleEvent, postHandleEvent, preHandleEvent, setAttributeBinding, setAttributeInternal, setAttributeValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetEventHandler
public SetEventHandler()
doHandleEvent
public EventResult doHandleEvent(BajaContext context,
Page page,
PageEvent event)
throws java.lang.Throwable
- Description copied from class:
AbstractDataEventHandler
- 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.
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
.
- Overrides:
doHandleEvent
in class AbstractDataEventHandler
- Following copied from class:
oracle.cabo.servlet.event.AbstractDataEventHandler
- 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
getTarget
public final java.lang.Object getTarget()
setTarget
public final void setTarget(java.lang.Object target)
setTargetBinding
public final void setTargetBinding(BoundValue target)
getProperty
public final java.lang.String getProperty()
setProperty
public final void setProperty(java.lang.String property)
setPropertyBinding
public final void setPropertyBinding(BoundValue property)
getValue
public final java.lang.Object getValue()
setValue
public final void setValue(java.lang.Object value)
setValueBinding
public final void setValueBinding(BoundValue value)
getTarget
protected final java.lang.Object getTarget(BajaContext context)
getProperty
protected java.lang.String getProperty(BajaContext context)
getValue
protected java.lang.Object getValue(BajaContext context)