Device Property Files

The device property files consist of a set of files that define the device’s behavior and appearance. Each set of device property files is located in a directory whose name determines the name of the device.

{j2mewtk.dir} is used to refer to the directory in which the J2ME Wireless Toolkit is installed. For example, if you installed the J2ME Wireless Toolkit in the default directory C:\WTK21 then {j2mewtk.dir}\wtklib represents C:\WTK21\wtklib.

The device property directory must be located in {j2mewtk.dir}\wtklib\devices so that it can be used by the J2ME Wireless Toolkit.

For example, TABLE 1 lists the device property file for a device named DefaultGrayPhone and the shared property files used by all the devices provided with the Wireless Toolkit. The DefaultGrayPhone device property file is located at {j2mewtk.dir}\wtklib\devices\DefaultGrayPhone in the binary installation. The shared device property files are located at {j2mewtk.dir}\wtklib\devices\Share in the binary installation.

TABLE 1 Example of Device Property Files and DefaultGrayPhone Property File

Property File

Description

 

 

DefaultGrayPhone\DefaultGrayPhone.properties {j2mewtk.dir}\wtklib\devices\Share\ph1_neut.png {j2mewtk.dir}wtklib\devices\Share\ph1_press.png {j2mewtk.dir}wtklib\devices\Share\ph1_highlight.png {j2mewtk.dir}wtklib\devices\Share\batt.gif {j2mewtk.dir}wtklib\devices\Share\down.gif {j2mewtk.dir}wtklibdevices\Share\internet.gif {j2mewtk.dir}wtklib\devices\Share\reception.gif {j2mewtk.dir}wtklib\devices\Share\up.gif

Main Device Property File

Device image with buttons not pressed Device image with buttons pressed Device image with buttons highlighted Icon used in global region of device Icon used in global region of device Icon used in global region of device Icon used in global region of device Icon used in global region of device

See Appendix A, “Default Emulator Device Property Files” for a full example of device property files.

18 Wireless Toolkit Basic Customization Guide • December 2003

Page 32
Image 32
Sun Microsystems Computer Accessories manual Device Property Files