All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----java.awt.Component | +----java.awt.Container | +----oracle.ewt.lwAWT.LWComponent | +----oracle.ewt.lwAWT.LWContainer | +----oracle.forms.ui.VBean | +----oracle.demo.BeanArea
NAME BeanArea.java DESCRIPTION This class adds support for non-indexed JavaBean properties, heavyweight beans and Applets to VBean. NOTES On startup, all of the Bean's properties are registered, using ID.registerProperty. These properties can then be set from PL/SQL, using set_custom_item_property, or in a future release got from PL/SQL, using get_custom_item_property. These properties will also be accessible from the Java API, using get/setProperty(...)Because set_custom_item_property only accepts int, boolean or string parameters, it is difficult to support other parameter types. We try to handle a few common types, such as java.awt.Color but there is no general solution to this. Support for these properties has to be added in a subclass.
If the bean is heavyweight, an instance of HeavyBeanManager is created. This class manages the interaction of the heavyweight bean with forms' lightweight framework.
The bean can be specified in two ways: By subclassing and implementing getProperty(BEAN_NAME) or by setting the bean in PL/SQL:
set_custom_item_property(item_name, 'beanName', class_name);
If the bean is an applet, a stub is provided and the init(), start(), stop() and destroy() methods are called. TODO - This functionality should be moved into VBean in Forms 7.0 - PL/SQL <-> Java type conversion improvements and do work at registration time. Not when the property is set. - Indexed properties - Add type registration to registerProperty and move match Params into ID. VERSION $Id: DataBlockHandler.java,v 1.1 1998/11/24 02:03:14 ssaxena Exp $ MODIFIED (MM/DD/YY) cjharris 12/15/98 - Creation
public static final ID BEAN_NAMEDEBUG_MODE
public static final ID DEBUG_MODE
public BeanArea()
public final Component getBean()
public final IHandler getHandler()
public void addNotify()
public void init(IHandler handler)
public void destroy()
public Object getProperty(ID id)
public boolean setProperty(ID id, Object value)
protected void initializeBean()
All Packages Class Hierarchy This Package Previous Next Index