Overblog
Editer l'article Suivre ce blog Administration + Créer mon blog
9 mars 2015 1 09 /03 /mars /2015 21:12

Purpose

Here is a Java bean that allows to have an enhanced Web Browser able to display and handle Google maps.
It is a full Web browser that can handle Javascript.

The enhanced Web browser JAR comes from the JDIC sourceforge project.


 

Web Browser to handle Google maps



The implementation class of the Bean Item

     oracle.forms.fd.GMapBrowser


The methods you can call

  • Get the Forms Window

Set_Custom_Property( 'BL.BEAN', 1, 'INFOBEAN', '' ) ;

This mathod is used to retrieve the Forms window that handles the webBrowser, then synchronize its position when the windows is moved.
This must be the first property set (in the When-New-Form-Instance trigger).

 

  • Set the HTML content

Set_Custom_Property( 'BL.BEAN', 1, 'SET_HTML_CONTENT', '<html>...</html>' ) ;

In the case of this bean, that method is used to initialise the Google map.

 

  • Set a javascript command 

Set_Custom_Property( 'BL.BEAN', 1, 'SET_JAVASCRIPT', 'javascript code' ) ;

e.g. :

Set_Custom_Property('BL.BEAN', 1, 'SET_JAVASCRIPT', 'map.panBy(100,60);' )

 

  • Set the URL/File

Set_Custom_Property( 'BL.BEAN', 1, 'SET_URL', 'url | file_name' ) ;


e.g. :

Set_Custom_Property('BL.BEAN', 1, 'SET_URL', 'http://www.developpez.com/' ) ;         


Set_Custom_Property('BL.BEAN', 1, 'SET_URL', 'd:/mypage.htm' ) ;

 

  • Set the border of the bean

Set_Custom_Property( 'BL.BEAN', 1, 'SET_BORDER', 'true | false' ) ;


When you want to use this bean to display a Flash image (*.swf), you would probably prefer not to have any border bounding the image.
In this case, set the border to false.

 

  • Basic navigation

Set_Custom_Property( 'BL.BEAN', 1, 'SET_NAVIGATION', 'back | forward | refresh' ) ;



The sample dialog

     .
Download the gmapbrowser.zip file

     . Unzip the files
     . copy the
JDICplus.jar and GMapBrowser.jar files in the <ORACLE_HOME>/forms/java directory
     . Edit your /forms/server/formsweb.cfg file to add these 2 jar files to the archive tags
     . Add the 2 .dll files 
jdicArc.dll and jdicWeb.dll (from the JDICplus-0.2.2-bin-win32.zip file) to your Windows/system32 directory
     . Open the GMapBowser.fmb module (Oracle Forms 10.1.2)
     . Compile all and run the module


     The .jar files must be signed
     The GMapBrowser.jar and JDICplus.jar files provided with the .zip file are already signed

 

 

Partager cet article
Repost0

commentaires

D
The most famous trip activities can be Desert Firefox. To check out the inexplicable life along with culture involving must embark on a wilderness. A wilderness safari goes on a new tour over the Thar deserts where a traveler will knowledge many villages and have a firsthand connection with the colourful life involving rural parts.
Répondre
M
As you hire an online business, you would have a team of folks which will mean the anxiety over cancellations is more unlikely. They will be able to cover alot more territory in the house and may just be more good. The negative is you'll not get so much personalized treatment because you aren't going to their primarily client.
Répondre
D
The professional home cleaning maids as well as villa cleansing experts help to make your cleansing task easy using their versatile cleansing solutions. We make use of the latest technology with regards to cleaning the actual devices. Using the same, all of our cleaning items is in the top manufacturers and via trusted as well as reputed suppliers.
Répondre
B
Choose a location at home that provides good day light and will be well ventilated. Working inside the basement or even a closet can really learn to close in for you after several hours at work and definately will not encourage one to ‘go to be able to work’ daily.
Répondre
S
Très bel article, très intéressant et bien écrit. Je reviendrai me poser chez vous. A bientôt.
Répondre