All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class oracle.forms.demos.CalendarWidgetWrapper

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----oracle.ewt.lwAWT.LWComponent
                           |
                           +----oracle.ewt.lwAWT.LWContainer
                                   |
                                   +----oracle.forms.ui.VBean
                                           |
                                           +----oracle.forms.demos.CalendarWidgetWrapper

public class CalendarWidgetWrapper
extends VBean
implements CalendarWidgetListener

An Oracle Forms Server 6i Pluggable Java Component (PJC)

This class acts as a wrapper class between the Oracle Forms Java Applet and the CalendarWidget JavaBean. This class is derived from the oracle.forms.ui.VBean class which implements the oracle.forms.ui.IView interface and extends the EWT lightweight container class. All Pluggable Java Components must implement the IView interface either directly or via subclassing from another class that implements the IView interface. By extending from the VBean interface we need only override the methods we desire and are not forced to provide an implementation for each of the methods defined in the IView interface since the VBean class does this for us.


Constructor Index

 o CalendarWidgetWrapper()
Construct a new CalendarWidgetWrapper and add to it an instance of the item it is wrappering.

Method Index

 o calendarWidgetDateChanged(CalendarWidgetEvent)
Method required to be able to detect changes in the date selected in the CalendarWidget.
 o destroy()
IView destructor method for this component, will be called when Forms wants to kill the item instance.
 o init(IHandler)
IView initialisation method for this component, will be called when Forms creates a new item instance.
 o setProperty(ID, Object)
Overriding method from the IView interface.

Constructors

 o CalendarWidgetWrapper
 public CalendarWidgetWrapper()
Construct a new CalendarWidgetWrapper and add to it an instance of the item it is wrappering. The CalendarWidgetWrapper uses a GridLayout of (1,1) so that any component added to it will take up all the available space.

Methods

 o init
 public void init(IHandler handler)
IView initialisation method for this component, will be called when Forms creates a new item instance.

Parameters:
the - Forms Handler object for this view class
Overrides:
init in class VBean
 o destroy
 public void destroy()
IView destructor method for this component, will be called when Forms wants to kill the item instance.

Overrides:
destroy in class VBean
 o setProperty
 public boolean setProperty(ID pid,
                            Object value)
Overriding method from the IView interface. Allows properties to be set when called from the Oracle Forms Server runtime. This method allows the Forms Server to set both standard and custom properties. The standard properties such as FOREGROUND, FONT, etc. all have type mappings performed by the Forms engine itself so these can simply be passed onto their analog accessor methods on the JavaBean. For the custom properties, sometimes type translation is required since Forms will only send over a String type for a custom property.

Parameters:
id - the property to be set, identified by it's ID
value - the value to set the property to
Returns:
boolean true if property could be set, false otherwise
Overrides:
setProperty in class VBean
 o calendarWidgetDateChanged
 public void calendarWidgetDateChanged(CalendarWidgetEvent cwe)
Method required to be able to detect changes in the date selected in the CalendarWidget. Will be called by the CalendarWidget.

Parameters:
the - CalendarWidgetEvent that contains the details of the date selected

All Packages  Class Hierarchy  This Package  Previous  Next  Index