Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


oracle.dss.thin.beans
Class InitEventDataObject

java.lang.Object
  |
  +--oracle.dss.thin.beans.InitEventDataObject
All Implemented Interfaces:
oracle.cabo.ui.data.DataObject

public class InitEventDataObject
extends java.lang.Object
implements oracle.cabo.ui.data.DataObject

The InitEventDataObject provides the JavaScript for an OnClick event on a UIX Component, which can be a button, image, or other html elements. To set the InitEventDataObject on a UIX Component, two steps need to be taken.

  1. The UIX Component needs to have its OnClick attribute set with a DataBoundValue, so that it will fetch its value from the oracle.cabo.ui.RenderingContext.
    initButtonBean.setAttributeValue(ButtonBean.ON_CLICK_ATTR,new DataBoundValue("MyNamespace","MyInitDataObject",""));
    
  2. Then, the InitEventDataObject will need to be set on the RenderingContext before the UINode is rendered.
    context.setDataObject("MyNamespace","MyInitDataObject",new InitEventDataObject(target));
    

Initializing ThinBeanDialogs

The EventTarget that is specified on the InitEventDataObject must be used to specify the name of the ThinBeanDialog that will handle the init event. When a ThinBeanDialog handles the init event, it will send any ThinBeanDialogListener registered with the ThinBeanDialog an InitEvent. The InitEvent itself does not have any parameters, but they can be added by an application if necessary.

Extra parameters can be added to the EventTarget, so that the init event can deliver application context to the ThinBeanDialog that is handling the request. For example, if an application has multiple views open at the same time and where each view can be printed, then the button that prints a specific view will need to pass the view's name to the PrintOptions dialog, so that the correct view can be set on the PrintOptions dialog.

See Also:
ThinBeanDialog, ThinBeanDialogListener

Constructor Summary
InitEventDataObject(EventTarget target)
           

 

Method Summary
 java.lang.Object selectValue(oracle.cabo.ui.RenderingContext context, java.lang.Object select)
          Returns the value registered with the select key.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

InitEventDataObject

public InitEventDataObject(EventTarget target)
Method Detail

selectValue

public java.lang.Object selectValue(oracle.cabo.ui.RenderingContext context,
                                    java.lang.Object select)
Returns the value registered with the select key.
Specified by:
selectValue in interface oracle.cabo.ui.data.DataObject

Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


Copyright © 2003, Oracle. All Rights Reserved.