Oracle® Fusion Middleware Mobile Client Developer's Guide for Oracle Application Development Framework 11g Release 1 (11.1.1.5.0) Part Number E14826-02 |
|
|
View PDF |
This document includes the following sections:
The adfnmc-config.xml
file (Example B-1) contains information about all of the supported platforms and form factors within its platforms
and form-factors
elements.
Tip:
This file is usually located atC:\Documents and Settings\<USERNAME>\Application Data\JDeveloper\<Build Number>\o.adfnmc.dt\adfnmc-config.xml
.Using this XML file, you can create new platforms and form factors and map the rendering kits (using in the rendering-kit-factory-mappings
element). Only update this file with devices supported by the ADF Mobile client runtime. This file enables you to change the list of platforms and form factors without any changes to the JDeveloper mobile client extension.
Note:
JDeveloper does not automatically generateadfmnc-config.xml
when you create an ADF Mobile client project. Instead, you must create this file within the META-INF
folder of the MobileClient project.Example B-1 The adfnmc-config.xml File
<?xml version="1.0"?> <adfnmc-config> <platforms> <platform id="WM" display-value="Windows Mobile" default="true"/> <platform id="RIM" display-value="RIM BlackBerry"/> </platforms> <form-factors> <form-factor width="240" height="320" default="true"/> <form-factor width="240" height="260"/> <form-factor width="240" height="240"/> <form-factor width="320" height="240"/> </form-factors> <rendering-kit-factory-mappings> <rendering-kit-factory-mapping idref="WM"> <rendering-kit-factory-class> oracle.adfnmc.imagerenderer.WMRenderingKitFactory </rendering-kit-factory-class> </rendering-kit-factory-mapping> <rendering-kit-factory-mapping idref="RIM"> <rendering-kit-factory-class> oracle.adfnmc.imagerenderer.RIMRenderingKitFactory </rendering-kit-factory-class> </rendering-kit-factory-mapping> </rendering-kit-factory-mappings> <image-repository-mappings> <image-repository-mapping idref="WM"> <image-repository>c:\adf-nmc\controls\images\wm</image-repository> </image-repository-mapping > <image-repository-mapping idref="RIM"> <image-repository>c:\adf-nmc\controls\images\rim</image-repository> </image-repository-mapping > </image-repository-mappings> </adfnmc-config>