Example of using the ITEM class in j2-based architecture (1)

Source: Internet
Author: User

If you are familiar with the use of the ITEM class in j2_m3. here, I will share with you a brief introduction to explain to you through examples. I believe this article will surely help you gain some benefits.

Usage of the ITEM class in j2m2.

I. Basic Knowledge

1. The ITEM class is a derived class of the Form class.

2. By changing the instance status of the derived class of the ITEM class, you can interact with the application.

3. The StateChanged method of the ITEM class is different from that of a common trigger. operations that are automatically called when a user changes the State will not be called by the program itself.

Ii. Creation practices

1. Taking ChoiceGroup as an example, if the MIDlet of all application ITEM classes is to handle the State Changes of ITEM classes, the StateChanged method of ITEM classes must be rewritten.

2. Actual Operation

3. Design of The NETBEANS designer

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.