Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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.


Constructor Summary
SetEventHandler()
           
 
Method Summary
 EventResult doHandleEvent(BajaContext context, Page page, PageEvent event)
          Handle an event.
 java.lang.String getProperty()
           
protected  java.lang.String getProperty(BajaContext context)
           
 java.lang.Object getTarget()
           
protected  java.lang.Object getTarget(BajaContext context)
           
 java.lang.Object getValue()
           
protected  java.lang.Object getValue(BajaContext context)
           
 void setProperty(java.lang.String property)
           
 void setPropertyBinding(BoundValue property)
           
 void setTarget(java.lang.Object target)
           
 void setTargetBinding(BoundValue target)
           
 void setValue(java.lang.Object value)
           
 void setValueBinding(BoundValue value)
           
 
Methods inherited from class oracle.cabo.servlet.event.AbstractDataEventHandler
getAttributeInternal, getAttributeValue, getAttributeValue, 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
 

Constructor Detail

SetEventHandler

public SetEventHandler()
Method Detail

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 BajaContext
page - the page the client is requesting
event - 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)

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.