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.
-
ACTIVECOLOR
- A custom property for the active color
-
BACKGROUND
- The Forms Server BACKGROUND ID
-
FONT
- The Forms Server FONT ID
-
FOREGROUND
- The Forms Server FOREGROUND ID
-
LINKEVENT
- A custom property used in a custom event to signify that
a linkevent has occurred
-
LINKEVENTDATA
- A custom property used to store the link event data
-
LINKLABEL
- A custom property for the link label
-
LINKURL
- A custom property for the link URL
-
NORMALCOLOR
- A custom property for the normal color
-
VISIBLE
- The Forms Server VISIBLE ID
-
VISITEDCOLOR
- A custom property for the visited color
-
HyperLinkWrapper()
- Create a HyperLinkWrapper which acts as a wrapper around a HyperLink
component and allows it to function within Oracle Forms.
-
actionPerformed(ActionEvent)
- Notified when the HyperLink Label is clicked by a user indicating that
the link has been 'followed'.
-
getProperty(ID)
- Overriding method from the IView interface.
-
init(IHandler)
- IView initialisation method for this component, will be called when
Forms creates a new item instance.
-
log(String)
- Debug facility to output message in a standard format if the DEBUG attribute is
set to TRUE.
-
setProperty(ID, Object)
- Overriding method from the IView interface.
FONT
public static final ID FONT
- The Forms Server FONT ID
FOREGROUND
public static final ID FOREGROUND
- The Forms Server FOREGROUND ID
VISIBLE
public static final ID VISIBLE
- The Forms Server VISIBLE ID
BACKGROUND
public static final ID BACKGROUND
- The Forms Server BACKGROUND ID
NORMALCOLOR
public static final ID NORMALCOLOR
- A custom property for the normal color
ACTIVECOLOR
public static final ID ACTIVECOLOR
- A custom property for the active color
VISITEDCOLOR
public static final ID VISITEDCOLOR
- A custom property for the visited color
LINKLABEL
public static final ID LINKLABEL
- A custom property for the link label
LINKURL
public static final ID LINKURL
- A custom property for the link URL
LINKEVENT
public static final ID LINKEVENT
- A custom property used in a custom event to signify that
a linkevent has occurred
LINKEVENTDATA
public static final ID LINKEVENTDATA
- A custom property used to store the link event data
HyperLinkWrapper
public HyperLinkWrapper()
- Create a HyperLinkWrapper which acts as a wrapper around a HyperLink
component and allows it to function within Oracle Forms.
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
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
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
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
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