J2ME Polish
J2ME Polish 2.4 Documentation
Enough Software

Generic/Java


A device to build supports applets, desktop and webstart applications.

Display

PropertyValuePreprocessing Access
Screen-Size (width x height)240x320polish.ScreenSize, polish.ScreenWidth, polish.ScreenHeight
Canvas-Size (width x height)240x320polish.CanvasSize, polish.CanvasWidth, polish.CanvasHeight
Canvas-Size in fullscreen mode240x320polish.FullCanvasSize, polish.FullCanvasWidth, polish.FullCanvasHeight
Bits per Pixel18
(262,144 colors)
polish.BitsPerPixel
Supports Pointer/Touch Eventsyespolish.hasPointerEvents

Platform

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

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
wmapiresources/wmapi
mmapiresources/mmapi
btapiresources/btapi
pdaapiresources/pdaapi
ScreenSize.240x320resources/ScreenSize.240x320
CanvasSize.240x320resources/CanvasSize.240x320
FullCanvasSize.240x320resources/FullCanvasSize.240x320
BitsPerPixel.4+resources/BitsPerPixel.4+
BitsPerPixel.8+resources/BitsPerPixel.8+
BitsPerPixel.12+resources/BitsPerPixel.12+
BitsPerPixel.16+resources/BitsPerPixel.16+
BitsPerPixel.18+resources/BitsPerPixel.18+
BitsPerPixel.18resources/BitsPerPixel.18

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.bitsperpixel18
polish.build.bootclasspathcldc-1.1.jar,midp-2.0.jar,${polish.home}/lib/AppleJavaExtensions.jar,${java.home}/jre/lib/rt.jar,${java.home}/lib/rt.jar,${java.home}/../Classes/classes.jar,midp-2.0.jar
polish.build.compile.dontsetbootclasspathtrue
polish.build.descriptorcreatornone
polish.build.finalizerapplet
polish.build.implicitgroupsmidp2
polish.build.manifestcreatorj2se
polish.build.obfuscator.ignorewarningstrue
polish.build.obfuscator.keepclassesde.enough.polish.runtime.swing.SwingSimulator,de.enough.polish.runtime.swing.SwingAppletSimulator
polish.build.postcompilerj2se
polish.build.preverifiernone
polish.canvasheight320
polish.canvassize240x320
polish.canvaswidth240
polish.emulator.skinSeries60
polish.fullcanvasheight320
polish.fullcanvassize240x320
polish.fullcanvaswidth240
polish.identifierGeneric/Java
polish.javaconfigurationCLDC/1.1
polish.javapackagewmapi,mmapi,btapi,pdaapi
polish.javaplatformMIDP/2.0, JavaSE/1.0
polish.nameJava
polish.screenheight320
polish.screensize240x320
polish.screenwidth240
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.btapi
polish.api.fileconnection
polish.api.fileconnectionapi
polish.api.mmapi
polish.api.pdaapi
polish.api.pim
polish.api.pimapi
polish.api.wmapi
polish.bitsperpixel.18
polish.bitsperpixel:defined
polish.build.bootclasspath.${java.home}/../classes/classes.jar
polish.build.bootclasspath.${java.home}/jre/lib/rt.jar
polish.build.bootclasspath.${java.home}/lib/rt.jar
polish.build.bootclasspath.${polish.home}/lib/applejavaextensions.jar
polish.build.bootclasspath.cldc-1.1.jar
polish.build.bootclasspath.midp-2.0.jar
polish.build.bootclasspath:defined
polish.build.compile.dontsetbootclasspath
polish.build.compile.dontsetbootclasspath.true
polish.build.compile.dontsetbootclasspath:defined
polish.build.descriptorcreator.none
polish.build.descriptorcreator:defined
polish.build.finalizer.applet
polish.build.finalizer:defined
polish.build.implicitgroups.midp2
polish.build.implicitgroups:defined
polish.build.manifestcreator.j2se
polish.build.manifestcreator:defined
polish.build.obfuscator.ignorewarnings
polish.build.obfuscator.ignorewarnings.true
polish.build.obfuscator.ignorewarnings:defined
polish.build.obfuscator.keepclasses.de.enough.polish.runtime.swing.swingappletsimulator
polish.build.obfuscator.keepclasses.de.enough.polish.runtime.swing.swingsimulator
polish.build.obfuscator.keepclasses:defined
polish.build.postcompiler.j2se
polish.build.postcompiler:defined
polish.build.preverifier.none
polish.build.preverifier:defined
polish.canvasheight:defined
polish.canvassize.240x320
polish.canvassize:defined
polish.canvaswidth:defined
polish.cldc
polish.cldc1.1
polish.cldc11
polish.emulator.skin.series60
polish.emulator.skin:defined
polish.fullcanvasheight:defined
polish.fullcanvassize.240x320
polish.fullcanvassize:defined
polish.fullcanvaswidth:defined
polish.hascommandkeyevents
polish.hasfloatingpoint
polish.haspointerevents
polish.identifier.generic/java
polish.identifier:defined
polish.isvirtual
polish.j2seruntime
polish.javaconfiguration.cldc/1.1
polish.javaconfiguration:defined
polish.javapackage.btapi
polish.javapackage.mmapi
polish.javapackage.pdaapi
polish.javapackage.wmapi
polish.javapackage:defined
polish.javaplatform.javase/1.0
polish.javaplatform.midp/2.0
polish.javaplatform:defined
polish.javase
polish.midp
polish.midp2
polish.name.java
polish.name:defined
polish.screenheight:defined
polish.screensize.240x320
polish.screensize:defined
polish.screenwidth:defined
polish.supportfloatingpoint
polish.supportfloatingpoint.true
polish.supportfloatingpoint:defined
polish.supportspolishgui
polish.vendor.generic
polish.vendor:defined
back to top