Transcript Slide 1

1

Oracle Forms 10g – Forms Look and Feel project

Agenda Teleconference Access: Teleconference Access:

• Presentation – approximately 60 minutes • There will be no Q&A Session at the end •

Instead, please send an email to

[email protected]

( 877 ) 500 - 9108 Int'l / Local Dial-In: ( 706 ) 902 - 1863 9:00 am GMT Conf ID - 63410683 17:00 pm GMT Conf ID - 63516479 Advisor Webcast Feedback:

[email protected]

2

ATTENTION – AUDIO INFORMATION

If you encounter any audio issues, please call INTERCALL (Audio Conferencing).

International Dial In: US / Canada Dial-in: +44 (0) 1452 555 566 ( 877 ) 500 - 9108 Int'l / Local Dial-In: ( 706 ) 902 - 1863

Conf ID - 63410683 (9:00 am GMT) Conf ID - 63516479 (17:00 pm GMT)

We would like to encourage attendees with sufficient Internet bandwith to listen through VoiceStreaming to continue to use this audio source rather than the Teleconferencing option.

Thank you.

3

Safe Harbor Statement

The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decision. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.

4

Advisor Webcast: Oracle Developer Forms

Reminder: • This presentation was created by the Engineer presenting it and is based on his/her own research. This presentation has not been reviewed by the Development, Quality Assurance, or Product Management staff.

5

Oracle Forms 10g – Forms Look and Feel project

Upcoming live Forms webcasts (Note 423317.1): (if possible each first Wednesday of a Month at 9:00 GMT and 17:00 GMT) Teleconference Access: Teleconference Access: December 3, 2008: Oracle Forms 10g – Forms Look and Feel project ( 877 ) 500 - 9108 Int'l / Local Dial-In: ( 706 ) 902 - 1863 9:00 am GMT Conf ID - 63410683 17:00 pm GMT Conf ID - 63516479 Advisor Webcast Feedback:

[email protected]

February 11, 2009: Troubleshooting the generic FRM-9210x errors 6

Oracle Forms 10g – Forms Look and Feel project

Francois Degrelle Consultant Netsource Network Solutions

Change your Oracle Forms applications’ Look and Feel

December 2008

8

 Introduction  What is it ?

 How it works ?

 How to implement in a new module?

 How to update existing modules ?

 How to maintain the CSS file ?

 Where to download the project ?

December 2008

9

 Introduction  Change easily the look of the Forms application.

 Have a more « HTML » look.

 Externalize the graphical information.

 Add some missing functions.

December 2008

10

 Change easily the look of the Forms application Change the look of the GUIs’ elements Change the look of the Forms’ containers Draw gradient backgrounds, images, shapes and strings on the canvas Give table-blocks an « HTML » style December 2008

11

 Externalize the graphical information Most of the graphical information is read from an external CSS file.

The painting is made at runtime by reading the required tags, then applying the changes through the Java Bean.

canvasEbay { type:canvas gradient-colors:r255g255b204,r255g255b255 gradient-vcycle:/2 gradient-hcycle:0 image1:/ebay.jpg,10,1,.8

image2:/ebay_line.jpg,30,74,.6,560,5 } tableHeaderEbay { type:header font-family: Arial; font-size:12 font-weight:bold frame-color:r250g83b12 inside-color:r255g204b0 font-color:r0g0b204 shade-color:r255g255b204 frame-width:2 frame-rounded-border: 10 transparency:.8

text-align:left text-align-offset:5 } December 2008

12

 Have a more « HTML » look on table-blocks December 2008

13

 Add a few new functions • Handle menus at runtime (add, enable, disable, show, hide, remove options).

• Handle frames at runtime (add, move, modify, hide).

• Play pre-loaded sounds.

• Receive external asynchronous messages.

• Draw texts anywhere on the screen.

• Display input dialog boxes.

• JColorChooser.

December 2008

14

 What is it ?

 a PL/SQL library That contains the functions and the procedures to read the tags from the CSS file and paint every object.

 a JAR file That contains the Java Bean and the PJCs.

 a CSS file That contains the tags’ sections.

December 2008

15

The PL/SQL library (laf.pll)

It contains the functions and the procedures needed to open the CSS file, read the tags from it, then perfom the drawing job through the associated Java Bean’s methods.

 Open and read the CSS file.

PKG_LOOK_AND_FEEL.Open_Css()

 Draw objects on the canvas.

PKG_LOOK_AND_FEEL.Paint_Canvas()

 Decorate the given table-block.

PKG_LOOK_AND_FEEL.Paint_Block()

 Set global properties for every GUIs widgets.

PKG_LOOK_AND_FEEL.Set_GUI_Properties()

December 2008

16

The JAR file (laf.jar)

It contains a Java Bean to perform all the graphical operations, and some PJCs to overload the common Forms widgets.

- The Java Bean allows to manage the following aspects:

          Drawing shapes on the current canvas (images, lines, rectangles and strings).

Loading and playing sounds.

Dynamically handling menus - add, remove, enable, disable, show and hide menu options at runtime.

Dynamically handling frames – add, remove, modify, move, show and hide frames at runtime.

Display single or multi-line input dialog box.

Transform the Forms into a Socket Server, able to receive external asynchronous messages.

Display texts anywhere on the canvas during a given time.

Change fonts and colors for menu bar, window caption, status bar and tabs.

Pick a color from a JColorChooser.

Turn simple images into sensitive areas you can click on.

December 2008

17

The PJCs tend to give a more « Windows XP » look with the use of gradients.

They also extend the standard functions of the common Forms items:  Buttons with mixed text and image, and mouse-on, mouse-over events.

 Text items that allow sending events to the Forms (last key typed with key char, key code and key modifier) via the Tom Cleymans dispatching feature.

 Blinking text items.

 Hyperlink sort of text items.

 Extended lists (multiple selection – sorted lists).

December 2008

18

The CSS file

It contains the different tags, grouped in five different section’s types: 

type:canvas

That contains tags to decorate a canvas 

type:title

That contains tags to draw a table-block title area 

type:header

That contains tags to draw a table-block header area 

type:body

That contains tags to draw a table-block body area 

type:gui

That contains tags to manage the common GUIs elements December 2008

19

Title section’s tags Header section’s tags Body section’s tags December 2008

20

How it works?

 The Forms side Read the CSS file, then decorate the elements by calling the Java methods -

Set_Custom_Property()

.

 The Java side Use the Java methods to paint the Forms elements.

setProperty()

and

getProperty()

December 2008

21

The Forms side

When-Timer-Expired

trigger December 2008

22

The Java side

When-Timer-Expired

trigger Colorize widgets Draw images Re-draw buttons Draw shapes Paint gradients December 2008

23

L&F Demo

December 2008

24

How to implement the L&F in a new module?

 a Forms Object Library (laf.olb) That contains all the required objects to implement the L&F features.

 a Forms template (LAF_TEMPLATE.fmb) To create a « fully equiped » new module from scratch.

 attach the laf.pll library, compile and run !

Forms template demonstration

December 2008

25

How to implement the L&F in existing modules?

The JDAPI_LAF tool  Written in Java to use the Oracle Forms JDAPI feature.

 It Uses a XML configuration file to upgrade existing modules in a massive way.

 It runs directly from the command line.

JDAPI_LAF demonstration

December 2008

26

How to maintain the CSS file?

The css_updater.fmb Forms’ sample dialog  Updates any tag in any section of any CSS file.

 Displays immediately any change done in any property.

css_updater.fmb demonstration

December 2008

27

Some links

   Oracle Forms Look and Feel project home page http://sheikyerbouti.developpez.com/forms-pjc-bean/LAF/doc/Oracle_Forms_Look_and_Feel_project.htm

Forms Java Beans and PJCs’ library http://forms.pjc.bean.over-blog.com/ Francois Degrelle’s blog http://fdegrelle.over-blog.com/  White papers on OTN Forms section • • Dynamic Color Customization Generic LOVs http://www.oracle.com/technology/products/forms/techlisting10g.html

December 2008

28

Where to find additional information

• • • • •

Log in to Metalink

• Click on Knowledge tab • Under Tools and Training on the left side of screen click on Training (Web Seminars) • Click on Advisor Webcast Program

Forms Advisor webcast scheduling

: • Metalink Note 423317.1

Please submit your comments

: • [email protected]

Please suggest webcast topics

: • [email protected]

Forms Advisor webcasts scheduling

: • Metalink Note 423317.1

29

Questions

• There will be no Q&A Session at the end •

Instead, please send an email to

[email protected]

30

THANK YOU

Day, Date, 2004 time p.m. ET Upcoming live Forms webcasts (Note 423317.1): (if possible each first Wednesday of a Month at 9:00 GMT and 17:00 GMT) Forms Advisor Webcast Feedback:

Password: Advisor

December 3, 2008: Oracle Forms 10g – Forms Look and Feel project with Francois Degrelle (see his white paper) February 11, 2009: Troubleshooting the generic FRM-9210x errors 31

THANK YOU

32