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

Purpose

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


         archive_jini=f90all_jinit.jar,……,htmlpane.jar


Implementation Class property

     oracle.forms.fd.HtmlPane


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

     BEAN_QUITTED

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

Published by Oracle Forms community - dans Bean - Text items
commenter cet article

commentaires