J2ME Polish
J2ME Polish 2.4 Documentation
Enough Software

Generic/SoftKeyPhone


A MIDP 2.0 and CLDC 1.1 phone that supports softkeys and the fullscreen mode.

Display

PropertyValuePreprocessing Access
Supports Pointer/Touch Eventsyespolish.hasPointerEvents

Platform

PropertyValuePreprocessing Access
VendorGenericpolish.Vendor
PlatformMIDP/2.0, JTWI/1.0polish.JavaPlatform, polish.midp2
ConfigurationCLDC/1.1polish.JavaConfiguration, polish.cldc1.1
Supported APIsmmapi, wmapipolish.JavaPackage, polish.api.mmapi, polish.api.wmapi
Meets the Recommended Capablities for the J2ME Polish GUIyes  --

Memory

PropertyValuePreprocessing Variable
Heap-Size1MBpolish.HeapSize

Multimedia

PropertyValuePreprocessing Access
Supported Audio Formatsmidi, amr, wavpolish.SoundFormat, polish.audio.midi, polish.audio.amr, polish.audio.wav

Keys

KeyValuePreprocessing Variable
Left Soft Key-6polish.key.LeftSoftKey
Right Soft Key-7polish.key.RightSoftKey

Groups

Groups can be used to assemble the resources (like images or sound-files) for an application.
Have a look at the documentation for more info.

GroupResource Folder
midp2resources/midp2
jtwiresources/jtwi
mmapiresources/mmapi
wmapiresources/wmapi
midiresources/midi
amrresources/amr
wavresources/wav

Preprocessing Capabilities

Capabilities can be used with the "//#=" preprocessing directive and can be compared with the "//#if" directive. For each defined capability a preprocessing symbol with the same name will be defined.
Have a look at the preprocessing documentation for more information.

Examples:

//#if polish.Vendor == Generic
	// this is a Generic device
//#endif
//#ifdef polish.ScreenWidth:defined
	//#= int screenWidth = ${ polish.ScreenWidth };
//#else
	int screenWidth = UNKNOWN_WIDTH;
//#endif

CapabilityValue
polish.build.bootclasspathcldc-1.1.jar,midp-2.0.jar
polish.build.implicitgroupsmidp2
polish.heapsize1MB
polish.identifierGeneric/SoftKeyPhone
polish.javaconfigurationCLDC/1.1
polish.javapackagemmapi,wmapi
polish.javaplatformMIDP/2.0, JTWI/1.0
polish.key.leftsoftkey-6
polish.key.rightsoftkey-7
polish.menubar.okpositionleft
polish.menubar.optionspositionright
polish.nameSoftKeyPhone
polish.soundformatmidi, amr, wav
polish.supportfloatingpointtrue
polish.vendorGeneric

Preprocessing Symbols

Symbols can be evaluated with the "//#ifdef" and related preprocessing directives.
Have a look at the preprocessing documentation for more information.

Example:

//#if polish.api.mmapi || polish.midp2
	// this device supports the Mobile Media API
//#endif

Symbol
polish.api.mmapi
polish.api.wmapi
polish.audio.amr
polish.audio.midi
polish.audio.wav
polish.build.bootclasspath.cldc-1.1.jar
polish.build.bootclasspath.midp-2.0.jar
polish.build.bootclasspath:defined
polish.build.implicitgroups.midp2
polish.build.implicitgroups:defined
polish.cldc
polish.cldc1.1
polish.cldc11
polish.hascommandkeyevents
polish.hasfloatingpoint
polish.haspointerevents
polish.heapsize.1mb
polish.heapsize:defined
polish.identifier.generic/softkeyphone
polish.identifier:defined
polish.isvirtual
polish.javaconfiguration.cldc/1.1
polish.javaconfiguration:defined
polish.javapackage.mmapi
polish.javapackage.wmapi
polish.javapackage:defined
polish.javaplatform.jtwi/1.0
polish.javaplatform.midp/2.0
polish.javaplatform:defined
polish.jtwi
polish.key.leftsoftkey.-6
polish.key.leftsoftkey:defined
polish.key.rightsoftkey.-7
polish.key.rightsoftkey:defined
polish.menubar.okposition.left
polish.menubar.okposition:defined
polish.menubar.optionsposition.right
polish.menubar.optionsposition:defined
polish.midp
polish.midp2
polish.name.softkeyphone
polish.name:defined
polish.soundformat.amr
polish.soundformat.midi
polish.soundformat.wav
polish.soundformat:defined
polish.supportfloatingpoint
polish.supportfloatingpoint.true
polish.supportfloatingpoint:defined
polish.supportspolishgui
polish.vendor.generic
polish.vendor:defined
back to top