depends="j2mepolish"
>
</target>
<target name="clean-all"
depends="clean"
>
</target>
<target name="deploy-all"
depends="deploy"
>
</target>
<target name="enable-compiler-mode">
<property name="enableCompilerMode" value="true" />
</target>
<target name="compile-single"
depends="enable-compiler-mode, j2mepolish"
>
</target>
<target name="connect-debugger">
<property name="jpda.port" value="${polish.debug.port}" />
<antcall target="nbdebug"/>
</target>
<target name="enableCustomization1">
<property name="dir.work" value="build/customization1" />
<property name="cfg.customization1" value="true" />
</target>
<target name="customization1"
description="customizes this project with the settings found in resources/customization1"
depends="enableCustomization1, j2mepolish"
/>
<target name="enableCustomization2">
<property name="dir.work" value="build/customization2" />
<property name="cfg.customization2" value="true" />
</target>
<target name="customization2"
description="customizes this project with the settings found in resources/customization2"
depends="enableCustomization2, j2mepolish"
/>
</project>
build.xml文件中最主要的是<info>,<deviceRequirements>和<build>三部分。
其中<info>元素指定说明了工程中的一般信息,如,工程名和版本。<deviceRequirements> 元素是用来指定程序编译时所选择的模拟器。<build>元素是工程编译构件时的主要控制器(如,可以设定属性 usePolishGui=”true”来指定把polish应用当前工程中,而设为false时,则说明当前工程不引入polish,此时工程与一般的 mobile应用程序一样)。
当build.xml文件中的<build>属性usePolishGui=”true”时,我们就可以修改工程目录中 resources里的polish.css文件控制程序的显示(美化j2me介面)。在j2me程序中只需要以“//#style”指令就可以调用相应的css属性(请注意这指令与注释“//”的区别)。其中,polish.css文件包含对应用程序的全部items和screens的style定义。
polish.css文件中常用的预定义的style(用于程序中的所有items和screens,但当引用自定义style时,预定义的style会被自定义style覆盖掉:
colors{}:用来定义一系列的颜色,供其它style中的color属性引用。
backgrounds{}:用来定义一系列的背景,供其它style中的background属性引用。
borders{}:用来定义一系列的边框,供其它style中的border属性引用。
focused{}:当获取某个item或screen的焦点时的style。
ti
j2mePolish安装配置文档j2mePolish安装配置文档隐藏>> J2ME 移植 Polish 教程(1)之配置环境 2009-11-25 01:00 antenna 和 Polish 是常用的手机打包、移植的辅助工...
j2me教程 47页 1下载券 (J2ME入门一)Eclipse配置... 6页 免费在...在Eclipse下应用J2ME POLISH Author: 一滴蔚蓝色
j2me 中文教程_IT/计算机_专业资料。j2me 学习 开发 实例 应用 配置 中文教程1.01 修正版 版权声明本教程由J2ME开发网(www.j2medev.com)的网友集体创作。任何人...
中文教程(6) (6)— J2ME 中文教程(6)— GAME API 第6章 6.1 6.2 6.2.1 6.2.2 6.3 6.3.1 6.3.2 6.3.3 6.3.4 6.3.5 6.3.6 6....
J2ME简介 ...1 1.2.1 概述......
j2me教程2_ch2(1) 5页 1下载券 VC绘图简易教程 42页 免费 VC绘图简易教程 36页 2下载券 VC绘图简易教程_4 4页 1下载券 VC绘图简易教程_3 2页 1下载券...
大学英语阅读教程(文化)... 18页 免费[Polish...J2ME?Polish 相关任务被分成的三部分 “info”, “deviceRequirements” 和“...
J2mePolish 集成 Eclipse 安装配置文档一, 环境 PC:windows Xp IDE:Eclipse3.2.1 IDE-plug-in:EclipseMe1.5.4 IDE-plug-in:Mepose0.7.1 JAVA :Jdk1.5...
J2ME开发教程_IT/计算机_专业资料。J2ME开发教程J2ME 开发环境达建 ...2 Eclipse 快速上手指南 ......
J2ME慢慢学教程_IT/计算机_专业资料。我们将从定义 J2ME 开始,然后讨论它的总体架构并学习 J2ME 目标设备。作为架构讨论的一部分,我们将提供有关简表和配置的概述...
热门文档