All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class oracle.forms.demos.GetClientInfo

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

public class GetClientInfo
extends VBean

Oracle Forms Server 6i PJC Example

This JavaBean fetches information from the local client system and delivers it to Forms when the get_custom_property builtin is invoked.

The class will need to be signed before being used in general purpose Forms applications since access to the System properties is an activity that is defined outside of the default Java sandbox.

Version:
1.0 03/10/00
Author:
Steve Button

Constructor Index

 o GetClientInfo()

Method Index

 o GetClientInfo()
The constructor for the GetUsername JavaBean class
 o getDate()
Obtain the date off of the local client machine.
 o getProperty(ID)
Method in the IView interface that is called when the Forms Server wishes to obtain the value of a specific property from the class.
 o getPropertyName(ID)
A convenience function to use the new ID.getName() method exposed in the 6i release but which will still allow the PJC to be used in the 6.0 release
 o init(IHandler)
Method in the IView interface that is called when the component is first initialised from by the Forms Server.
 o main(String[])
The test method which allows class to be run from the command line to determine if it is functioning correctly.

Constructors

 o GetClientInfo
 public GetClientInfo()

Methods

 o GetClientInfo
 public void GetClientInfo()
The constructor for the GetUsername JavaBean class

 o init
 public void init(IHandler handler)
Method in the IView interface that is called when the component is first initialised from by the Forms Server.

Parameters:
a - reference to the Handler object for this class
Overrides:
init in class VBean
 o getProperty
 public Object getProperty(ID pid)
Method in the IView interface that is called when the Forms Server wishes to obtain the value of a specific property from the class. For the 6i release, the get_custom_property method will be available which will allow for a far simple usage model. The Form developer will simply be able to call get_custom_property('USERNAME') and we will return the username as a string.

Parameters:
pid - the property to be returned
Returns:
the value of the property that was requested
Overrides:
getProperty in class VBean
 o getPropertyName
 public String getPropertyName(ID pid)
A convenience function to use the new ID.getName() method exposed in the 6i release but which will still allow the PJC to be used in the 6.0 release

Parameters:
pid - the property to display the name of
Returns:
the property name
 o getDate
 public String getDate()
Obtain the date off of the local client machine.

 o main
 public static void main(String args[])
The test method which allows class to be run from the command line to determine if it is functioning correctly.

Parameters:
args[] - the command line arguments

All Packages  Class Hierarchy  This Package  Previous  Next  Index