TAILIEUCHUNG - Core J2ME™ Technology & MIDP phần 6

Nếu bạn chọn để thêm một mục mới vào danh sách cần làm của bạn, màn hình hiển thị trong hình 12-3 sẽ xuất hiện. Có chỉ đủ chi tiết trên màn hình để làm cho màn hình này bao gồm một mẫu với một TextField và ChoiceGroup. Hình 12-3. Cần làm mục; mẫu có chứa một TextField và ChoiceGroup | Simpo PDF Merge and Split Unregistered Version - http Example --------------------------------------------------- Class OptionsList List to provide options for configuring of timer ------------------------------------------------- import . class OptionsList extends List implements CommandListener private AnimatedTimer midlet Main midlet private Command cmBack public OptionsList String title int listType AnimatedTimer midlet Call list constructor super title listType Save reference to MIDlet so we can access the display manager class midlet Create the list entries append Sleep interval null append Start null append Stop null Create command and listen for events cmBack new Command Back 1 addCommand cmBack setCommandListener this --------------------------------------------------- Command event handling ------------------------------------------------- public void commandAction Command c Displayable s Event generated by the implicit list if c switch getSelectedIndex case 0 Push current displayable and show the form to adjust the timer sleep break case 1 Start timer and return to previous displayable break 267 Simpo PDF Merge and Split Unregistered Version - http case 2 Stop timer and return to previous displayable break else if c cmBack Return to previous displayable Example --------------------------------------------------- Class SleepForm Form with gauge to adjust sleep interval of timer ------------------------------------------------- import . public class SleepForm extends Form implements CommandListener private AnimatedTimer midlet Main midlet private Command cmBack Back to options list cmHome Go to

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.