All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class oracle.forms.demos.HyperLinkWrapper

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

public class HyperLinkWrapper
extends VBean
implements ActionListener

Oracle Forms Server 6i JavaBean Example

This class acts as a wrapper around the HyperLink JavaBean, enabling it to be embedded and enclosed within an Oracle Forms application. The Oracle Forms application will call the methods on this class which in turn delegates them, performing type translation if necessary onto the HyperLink JavaBean it has instantiated. This class should be embedded within an Oracle Forms application inside of a BeanArea item and the implementation class should be set to oracle.forms.demos.HyperLinkWrapper.


Variable Index

 o ACTIVECOLOR
A custom property for the active color
 o BACKGROUND
The Forms Server BACKGROUND ID
 o FONT
The Forms Server FONT ID
 o FOREGROUND
The Forms Server FOREGROUND ID
 o LINKEVENT
A custom property used in a custom event to signify that a linkevent has occurred
 o LINKEVENTDATA
A custom property used to store the link event data
 o LINKLABEL
A custom property for the link label
 o LINKURL
A custom property for the link URL
 o NORMALCOLOR
A custom property for the normal color
 o VISIBLE
The Forms Server VISIBLE ID
 o VISITEDCOLOR
A custom property for the visited color

Constructor Index

 o HyperLinkWrapper()
Create a HyperLinkWrapper which acts as a wrapper around a HyperLink component and allows it to function within Oracle Forms.

Method Index

 o actionPerformed(ActionEvent)
Notified when the HyperLink Label is clicked by a user indicating that the link has been 'followed'.
 o getProperty(ID)
Overriding method from the IView interface.
 o init(IHandler)
IView initialisation method for this component, will be called when Forms creates a new item instance.
 o log(String)
Debug facility to output message in a standard format if the DEBUG attribute is set to TRUE.
 o setProperty(ID, Object)
Overriding method from the IView interface.

Variables

 o FONT
 public static final ID FONT
The Forms Server FONT ID

 o FOREGROUND
 public static final ID FOREGROUND
The Forms Server FOREGROUND ID

 o VISIBLE
 public static final ID VISIBLE
The Forms Server VISIBLE ID

 o BACKGROUND
 public static final ID BACKGROUND
The Forms Server BACKGROUND ID

 o NORMALCOLOR
 public static final ID NORMALCOLOR
A custom property for the normal color

 o ACTIVECOLOR
 public static final ID ACTIVECOLOR
A custom property for the active color

 o VISITEDCOLOR
 public static final ID VISITEDCOLOR
A custom property for the visited color

 o LINKLABEL
 public static final ID LINKLABEL
A custom property for the link label

 o LINKURL
 public static final ID LINKURL
A custom property for the link URL

 o LINKEVENT
 public static final ID LINKEVENT
A custom property used in a custom event to signify that a linkevent has occurred

 o LINKEVENTDATA
 public static final ID LINKEVENTDATA
A custom property used to store the link event data

Constructors

 o HyperLinkWrapper
 public HyperLinkWrapper()
Create a HyperLinkWrapper which acts as a wrapper around a HyperLink component and allows it to function within Oracle Forms.

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 getProperty
 public Object getProperty(ID id)
Overriding method from the IView interface. Allows the values of properties to be retrieved when called from the Oracle Forms Server runtime. This method allows the Forms Server to get 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 from their analog accessor methods on the JavaBean. For the custom properties, sometimes type translation is required since Forms will only allow a String type as a return value for a custom property.

Parameters:
id - the property to be retrieved, identified by it's ID
Returns:
Object the value of the requested property
Overrides:
getProperty in class VBean
 o setProperty
 public boolean setProperty(ID id,
                            Object value)
Overriding method from the IView interface. Allows the values of properties to be retrieved when called from the Oracle Forms Server runtime. This method allows the Forms Server to get 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 from their analog accessor methods on the JavaBean. For the custom properties, sometimes type translation is required since Forms will only allow a String type as a return value for a custom property.

Parameters:
id - the property to be retrieved, identified by it's ID
Returns:
Object the value of the requested property
Overrides:
setProperty in class VBean
 o actionPerformed
 public void actionPerformed(ActionEvent ae)
Notified when the HyperLink Label is clicked by a user indicating that the link has been 'followed'.

Parameters:
ae - ActionEvent with details of the link that has been clicked
 o log
 public void log(String msg)
Debug facility to output message in a standard format if the DEBUG attribute is set to TRUE.

Parameters:
msg - The message to be output

All Packages  Class Hierarchy  This Package  Previous  Next  Index