Overblog Tous les blogs Top blogs Technologie & Science Tous les blogs Technologie & Science
Editer l'article Suivre ce blog Administration + Créer mon blog
MENU

This is a bunch of tips and techniques related to Oracle PL/SQL and Forms.

Publicité

A "utilities" Java Bean part II

Purpose

This is the part II of the utilities Java Bean.

utilities (2)

A second tab allows to manipulate some Text field properties.

  . You can set dynamically the maximum of  charaters the user can enter.
  . You can also set the cursor blink rate and the cursor style.


The Java code

      FJTextField.java


The Implementation Class property

      forms.fd.utilities.FJTextField


The properties you can set

The maximum characters the user can enter

Set_Custom_Property( 'BL.BEAN', 1, 'SETMAX', 'max_length' ) ;

The cursor blink rate

Set_Custom_Property( 'BL.BEAN', 1, 'SETBLINKRATE', 'value' ) ;

100 is very fast and 800 is very slow

The cursor style

Set_Custom_Property( 'BL.BEAN', 1, 'SETCURSOR', 'style' ) ;

Where style can be one of the following:

   . DEFAULT
   . HAND
   . CROSS
   . MOVE
   . TEXT
   . WAIT


The sample dialog

     . Download the utilities.zip file
     . Unzip the file
     . copy the fjutilities.jar file in the <ORACLE_HOME>/forms/java directory
     . Edit your /forms/server/formsweb.cfg file
     . Open the UTILITIES.fmb module (Oracle Forms 9.0.2)
     . Compile all and run the module


Publicité
Retour à l'accueil
Partager cet article
Repost0
Pour être informé des derniers articles, inscrivez vous :
Commenter cet article