前两篇主要描述了我学习smart ticket的Model部分的过程,总体感受是,使用了很多的设计模式(Facade,Adapter,Proxy,职责链)。在我自己的代码中,一般没有考虑过这么多模式的使用。    我记得在一篇帖子中,robbin曾将设计模式和围棋的定式做了比较,我虽然不懂得“定式”,原来也翻看过《建筑的永恒之道》这本书,我想,设计模式也就是经过软件开发者长期摸索而推出的解决普遍问题的通用方式吧。    就拿建筑来说,我生活的13朝古都西安城就有很多古代建筑,比较著名的唐朝建筑--大雁 ...
接昨天的思路继续浅谈RMSCacheHandler的使用,RemoteModelProxy、RemoteModelRequestHandle和RemoteModel之间应用了代理模式。其中RemoteModelProxy充当了代理主题角色,RemoteModel是抽象主题角色,而RemoteModelRequestHandle是真实主题角色。 代理模式(Proxy),给某一个对象提供一个代理对象,并由代理对象控制对原对象的引用。(参见RemoteModelProxy、RemoteModelRequestHandle和RemoteModel之间关系及UML图)。 在Remot ...
SmartTicket是sun的一个blueprint项目,我想通过学习它的设计,来提高自己的设计、编码水平。欢迎大家一起学习、或者提供好的建议:) 下图是它的UML设计,可以看到,设计是遵循MVC设计模式;毫无疑问,UIController类是一个控制器(Controller),ModelFacade充当的是模型(Model),它使用了Facade(门面)模式。 关于门面模式,门面模式要求一个子系统的外部与其内部的通信必须通过一个统一的门面(Facade)对象进行;使用时机,为复杂的系统提供一个简单的接口、子系统的独立性、层次化结构。 ModelFacade充 ...
Email On-the-Go Now Even Easier -- Google Launches New Mobile Application for Speedier Access to Gmail http://www.google.com/press/pressrel/mail_mobileclient.html MOUNTAIN VIEW, Calif., November 2, 2006 – Google Inc. (NASDAQ: GOOG) today announced the release of an innovative new mobile cl ...
The Mobile & Embedded Community is a gathering place that enables and empowers developers to collaborate and innovate, driving the evolution and adoption of the Java(TM) Platform, Micro Edition (Java ME) for mobile and embedded devices. Here you can be a part of a robust culture of developers ...
j2mepolish is a wonderful framework . ------------------------ First of all , install netbeans and mobility package. Then do the follows: http://www.j2mepolish.org/docs/install.html#netbeans5 J2ME Polish provides NetBeans specific build scripts from J2ME Polish 1.3 Beta 3 onwards. You can no ...
2006-10-12

j2mepolish中文化问题

关键字: j2me
我在j2mepolish的cvs上check out了build包,在其根目录下发现了‘translations.txt’文档。 其专门用于翻译在j2mepolish中出现的英文,内容如下: ################################################################################ #                   ...
2006-09-10

j2mepolish的licence问题

关键字: j2me
他的license分为几种收费类型:GPL的,single的,企业的 那么我们做商业开发是否能用它呢?能否使用GPL的license?是否必须购买商业版本呢? j2mepolish的license在这里: http://www.j2mepolish.org/licenses.html 1.如果在项目中使用GPL license,则可以无限制的使用,前提是你的项目必须遵循GPL。 2.Commercial Licenses(商业许可证) 分为:Developer Seat、Single License、Runtime License、Enterprise License ...
需要: jdk,wtk就不用说了. 下载j2mepolish :http://www.j2mepolish.org/downloads/j2mepolish-1.2.4.html#download 直接双击jar文件(java -jar j2mepolish-1.2.4.jar)根据向导安装即可,很简单. 在eclipse中运行samples里面的menu例子. 拷贝 ${polish.home}/samepse/menu到eclipse的工作目录. 然后建立一个java工程名为 menu (会自动导入拷过来的menu里面的src,res等等) 直接a ...
dodoflying
搜索本博客
存档
最新评论
评论排行榜