Device property files, Table 1 – Sun Microsystems Computer Accessories User Manual
Page 32

18
Wireless Toolkit Basic Customization Guide • December 2003
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,
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.
See
Appendix A, “Default Emulator Device Property Files
” for a full example of
device property files.
TABLE 1
Example of Device Property Files and DefaultGrayPhone Property File
Property File
Description
DefaultGrayPhone\DefaultGrayPhone.properties
Main Device Property File
{
j2mewtk.dir
}\wtklib\devices\Share\ph1_neut.png
Device image with buttons not pressed
{
j2mewtk.dir
}wtklib\devices\Share\ph1_press.png
Device image with buttons pressed
{
j2mewtk.dir
}wtklib\devices\Share\ph1_highlight.png
Device image with buttons highlighted
{
j2mewtk.dir
}wtklib\devices\Share\batt.gif
Icon used in global region of device
{
j2mewtk.dir
}wtklib\devices\Share\down.gif
Icon used in global region of device
{
j2mewtk.dir
}wtklibdevices\Share\internet.gif
Icon used in global region of device
{
j2mewtk.dir
}wtklib\devices\Share\reception.gif
Icon used in global region of device
{
j2mewtk.dir
}wtklib\devices\Share\up.gif
Icon used in global region of device