壹佰网|ERP100 - 企业信息化知识门户

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 713|回复: 3

[二次开发] Oracle Forms Look & Feel Project

[复制链接]
发表于 2012/12/26 13:24:07 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622  。

您需要 登录 才可以下载或查看,没有帐号?注册

x
本帖最后由 tianpan 于 2012/12/26 13:34 编辑

一个有趣的Form个性化项目:“Oracle Forms Look & Feel Project”,推广下,应该会有很多公司需要
http://fdtool.free.fr/LAF/doc/Oracle_Forms_Look_and_Feel_project.htm


The Look and Feel project is a set of tools that permits decorating an Oracle Forms module by reading the graphical properties from an external CSS file, and also add more than 500 new properties to get/set.
All the decoration information is  read from the CSS file and applied at runtime.

The tool is made up of a PL/SQL library (laf.pll), a set of Java Beans and PJCs grouped in a jar file (laf.jar), and a CSS file.
            


                
  • The PL/SQL library contains a package of functions and  procedures need to decorate both canvases and table-blocks.
  • The jar file contains the beans need to paint over the canvas  and overload the standards forms widgets (buttons, check-boxes, radio groups and lists).
  • The CSS file contains all the required tags to apply the  graphical properties.
Because the graphical information is  read from a given CSS file, it is easy to change the look and feel of the application without modifying the form modules.
With it,  you can really externalize the look of the Forms application by  separating the functional implementation to the graphical  presentation.

Look&Feel Project developer_documentation.pdf
Look&Feel Project developer_documentation.pdf (622.55 KB, 下载次数: 1)
 楼主| 发表于 2012/12/26 13:26:27 | 显示全部楼层
LAF_3.jpg
LAF_2.jpg
laf_lovs.jpg
LAF_4.jpg
dyn_table_block.jpg
dynamic_table_blocks_2.jpg




 楼主| 发表于 2012/12/26 13:34:56 | 显示全部楼层
Configuration and Implementation
            
Configuration
            In order to use the LAF project in your application, you have to             do a bit of configuration:
            

                  
  • Download and unzip the LAF zip file.
  • Copy the corresponding JAR file to your               <DEVSUITE_HOME>/forms/java directory.

                  
  • Update your /forms/server/formsweb.cfg               file.

    As it needs the Sun Java Plug-in instead of the               Oracle JInitiator, you have to create a special section that uses               the Sun Plug-in.

    You also need to add the corresponding JAR               file and the QTJava.zip to the archive tag (not the               archive_jini).

    Create a new [laf] section as               follow:

    [laf]
    # --> Forms 10.1.2               --
    archive=frmall.jar,laf_1012.jar,QTJava.zip
    # --> Forms               10.1.2.3 --
    #archive=frmall.jar,laf_10123.jar,QTJava.zip
    #               --> Forms 9i               --
    #archive=f90all.jar,laf_902.jar,QTJava.zip
    # --> Forms               11g               --
    #archive=frmall.jar,laf_11112.jar,QTJava.zip
    baseHTMLjinitiator=basejpi.htm
    jpi_download_page=http://java.sun.com/j2se/1.6.0/download.jsp
    jpi_classid=clsid:CAFEEFAC-0016-0000-0017-ABCDEFFEDCBA
    jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_6_0-windows-i586.cab#Version=1,6,0,17
    jpi_mimetype=application/x-java-applet
    separateFrame=true

    Then               tell Forms Builder to use this configuration section via the               menu:

    Edit -> Preferences... -> Runtime : http://xxx:8889/forms/frmservlet?config=laf

    To               verify if you really use the Java plug-in, run any Forms               module that implements the LAF, then  display the Java               Console. The very first lines show what plugin is               used:

    Java Plug-in               1.6.0_26
    Utilisation de la version JRE 1.6.0_26-b03               Java HotSpot(TM) Client VM
    Repertoire d'accueil de               l'utilisateur = C:\Documents and               Settings\Francois
    ...
    proxyHost=null
    proxyPort=0
    connectMode=HTTP,               native.
    La version Forms Applet est :               10.1.2.3
    ***    ***
    *** Look and               Feel Project v1.6.9 ***
    ...


    If you want to               start asynchronous database procedure/functions via the JDBC               driver, add the signed classes12.jar file in your /forms/java               folder, then add it to the archive tag.

                  
  • Copy the forms.css file somewhere on your disk (by default, it               is searched in the C:/ root directory).
  • Load and execute in the database the two SQL script files               located in the /script directory:

    - PKG_LAF.sql
    -               PKG_DB_LAF_LOV.sql
  • Compile the laf.pll PL/SQL library, then copy the pll.plx and               laf.olb files to one of the directories defined               in the FORMS_PATH variable.
            

            
Implementation of the LAF in existing             modules
            In order to implement the required LAF objects in your existing             Forms modules, a tool is shipped, that use the JDAPI to update the             FMB source files.

     See the JDAPI_LAF tool

            
Implementation of the LAF in brand new             modules
            To create new modules from scratch that include the LAF features,             use the Forms template shipped in the zip file             (/fmb/LAF_TEMPLATE.fmb).
            For more details about configuration, read the Look & Feel Developer Guide.        

发表于 2012/12/26 17:30:46 | 显示全部楼层
研究一下,谢谢 楼主{:soso_e100:}
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|手机版|壹佰网 ERP100 ( 京ICP备19053597号-2 )

Copyright © 2005-2012 北京海之大网络技术有限责任公司 服务器托管由互联互通
手机:13911575376
网站技术点击发送消息给对方83569622   广告&合作 点击发送消息给对方27675401   点击发送消息给对方634043306   咨询及人才点击发送消息给对方138011526

GMT+8, 2025/11/29 06:14 , Processed in 0.040330 second(s), 20 queries , File On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表