Overblog Suivre ce blog
Editer l'article Administration Créer mon blog
14 avril 2006 5 14 /04 /avril /2006 16:55


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


The Implementation Class property


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:

   . 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

Partager cet article

Repost 0
Published by Oracle Forms community - dans Bean - general
commenter cet article