Muscle's profileMusclePhotosBlogListsGuestbook Tools Help
感谢访问!

Comments (1)

Please wait...
Sorry, the comment you entered is too long. Please shorten it.
You didn't enter anything. Please try again.
Sorry, we can't add your comment right now. Please try again later.
To add a comment, you need permission from your parent. Ask for permission
Your parent has turned off comments.
Sorry, we can't delete your comment right now. Please try again later.
You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
Complete the security check below to finish leaving your comment.
The characters you type in the security check must match the characters in the picture or audio.

To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


Don't have a Windows Live ID? Sign up

No namewrote:
你好!我现在学习J2ME Polish,已经一个星期了,还是感觉没有入门,请你帮帮忙!

说一个具体问题:Polish的UI里面提供了TreeItem组件,如果只是使用TreeItem画出一棵树不难,但是应该如何监听这个树上发生的事件呢?

在MIDP提供的接口里,我用的是Canvas自己画了一棵树,然后就可以通过实现pointerPressed(int x,int y)函数来处理相应的点击事件。但是在这个J2ME Polish里面又该如何处理点击事件呢?我知道有一个handlePointerPressed(ing relx,int rely)函数,但是该如何使用呢?比如,我希望点击时通过getFocusItem()函数取出获得焦点的Item,该怎么做呢?

是不是还要配置什么文件啊?我看到网上的英文材料写着“This method needs should be overwritten only when the "polish.hasPointerEvents" preprocessing symbol is defined: "//#ifdef polish.hasPointerEvents". ”我不明白这是要怎样设置的?如何才能使"polish.hasPointerEvents" is defined?


PS:如果可以,请讲一下用J2ME Polish编程的一些基本流程,不是说如何新建项目,如何搭建环境,我是想了解该如何处理事件,如何监听,和CSS格式之间互操作的问题,build.xml对编程的影响,一些参数是在什么地方设置的,比如这个"polish.hasPointerEvents"是在哪里设置的,诸如此类的问题吧!
 
谢谢你!你的博客文章已经给了我很大的帮助,谢谢!
Sept. 15