Editer l'article Suivre ce blog Administration + Créer mon blog
16 février 2006 4 16 /02 /février /2006 16:23


This is a JavaBean component that allows to edit a HTML styled text field.
You can use the Ctrl+B, Ctrl+I and Ctrl+U keys to toggle some simple attributes like Bold, Italic and Underline.

Html Pane

The java code

Get the source code here

Forms configuration

. Copy the htmlpane.jar file in the /forms/java directory
. Edit the /forms/server/formsweb.cfg file to add the jar file to the archive_jini variable


Implementation Class property


The properties you can set

Set the text

Set_Custom_Property( 'BL.BEAN_AREA', 1, 'SET_TEXT', 'html text' ) ;

Set the editable flag

Set_Custom_Property( 'BL.BEAN_AREA', 1, 'SET_EDIT', 'true|false' ) ;

The properties you can get

Get the HTML text

Varchar2 := Get_Custom_Property( 'BL.BEAN_AREA', 1, 'GET_TEXT' ) ;

The events you can raise from the Bean


raised when the Bean lose the focus to prevent Forms that its content may have changed.

The sample dialog

     . Download the htmlpane.zip file
     . Unzip the file
     . Edit your /forms/server/formsweb.cfg file
     . Open the HTML_PANE.fmb module (Oracle Forms 9.0.2)
     . Compile all and run the module

Partager cet article