Core J2ME™ Technology & MIDP phần 9

Một hình ảnh. Nếu tham số này là 'sự thật' * tải về thành công, và hình ảnh được hiển thị trên một biểu mẫu. * Nếu tham số là 'giả' tải về thất bại, và * người sử dụng được trả lại cho hộp văn bản. * * Trong cả hai trường hợp, hiển thị một cảnh báo chỉ * kết quả của việc tải về. | Simpo PDF Merge and Split Unregistered Version - http an image. If the parameter is true the download was successful and the image is shown on a form. If parameter is false the download failed and the user is returned to the textbox. In either case show an alert indicating the the result of the download. -------------------------------------------------- public void showImage boolean flag Download failed. if flag false Alert followed by the main textbox showAlert Download Failure true tbMain else Successful download. ImageItem ii new ImageItem null im null If there is already an image set replace it if 0 0 ii else Append the image to the empty form ii Alert followed by the form holding the image showAlert Download Successful true fmViewPng ---------------------------------------------------- Show an alert with the parameters determining the type modal or not and the displayable to show after the alert is dismissed -------------------------------------------------- public void showAlert String msg boolean modal Displayable displayable Create alert add text associate a sound alStatus new Alert Status msg null Set the alert type if modal else ALERT_DISPLAY_TIME Show the alert followed by the displayable alStatus displayable ---------------------------------------------------- Class - Download Download an image file in a separate thread -------------------------------------------------- 435 Simpo PDF Merge and Split Unregistered Version - http class Download implements Runnable private String url private ViewPngThread MIDlet private boolean downloadSuccess false public Download String url ViewPngThread MIDlet url MIDlet ----------------------------------------------------- Download the image -------------------------------------------------- public void run .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
427    254    2    13-06-2024
Đã 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.