亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? photoalbum.java

?? J2ME PHOTO處理
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * * Copyright ? 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */package example.photoalbum;import example.About;import java.io.DataInputStream;import java.io.IOException;import java.util.Vector;import javax.microedition.io.Connector;import javax.microedition.io.ContentConnection;import javax.microedition.io.HttpConnection;import javax.microedition.lcdui.*;import javax.microedition.midlet.*;import javax.microedition.rms.*;/** * The PhotoAlbum MIDlet provides the commands and screens * that implement a simple photograph and animation album. * The images and animations to be displayed are configured * in the descriptor file with attributes. * <p> * Options are provided to to vary the speed of display * and the frame style. * */public class PhotoAlbum extends MIDlet implements CommandListener, ItemStateListener, Runnable {    /** The Command object for the About command */    private Command aboutCommand;    /** The Command object for the Exit command */    private Command exitCommand;    /** The Command object for the Ok command */    private Command okCommand;    /** The Command object for the Options command */    private Command optionsCommand;    /** The Command object for the Back command */    private Command backCommand;    /** The Command object for the Cancel command */    private Command cancelCommand;    /** The Form object for the Progress form */    private Form progressForm;    /** The Gauge object for the Progress gauge */    private Gauge progressGauge;    /** The Form object for the Options command */    private Form optionsForm;    /** Set of choices for the border styles */    private ChoiceGroup borderChoice;    /** Set of choices for the speeds */    private ChoiceGroup speedChoice;    /** The current display for this MIDlet */    private Display display;    /** The PhotoFrame that displays images */    private PhotoFrame frame;    /** The Alert for messages */    private Alert alert;    /** Contains Strings with the image names */    private Vector imageNames;    /** List of Image titles for user to select */    private List imageList;    /** Name of current image, may be null */    private String imageName;    /** Current thread loading images, may be null */    private Thread thread;    /** Name of persistent storage */    private final String optionsName = "PhotoAlbum";    /** Persistent storage for options */    private RecordStore optionsStore;    private boolean firstTime = true;    /**     * Construct a new PhotoAlbum MIDlet and initialize the base options     * and main PhotoFrame to be used when the MIDlet is started.     */    public PhotoAlbum() {        display = Display.getDisplay(this);        exitCommand = new Command("Exit", Command.EXIT, 1);        optionsCommand = new Command("Options", Command.SCREEN, 1);        okCommand = new Command("Ok", Command.OK, 3);        backCommand = new Command("Back", Command.BACK, 3);        cancelCommand = new Command("Cancel", Command.CANCEL, 1);        aboutCommand = new Command("About", Command.HELP, 30);        frame = new PhotoFrame();        frame.setStyle(2);        frame.setSpeed(2);        frame.addCommand(optionsCommand);        frame.addCommand(backCommand);        frame.setCommandListener(this);        alert = new Alert("Warning");        setupImageList();        firstTime = true;    }    /**     * Start up the Hello MIDlet by setting the PhotoFrame     * and loading the initial images.     */    protected void startApp() {        if (firstTime) {            if (imageList.size() > 0) {                display.setCurrent(imageList);                openOptions();                restoreOptions();            } else {                alert.setString("No images configured.");                display.setCurrent(alert, imageList);            }            firstTime = false;        }        openOptions();        restoreOptions();    }    /**     * Pause is used to release the memory used by Image.     * When restarted the images will be re-created.     * Save the options for the next restart.     */    protected void pauseApp() {        saveOptions();    }    /**     * Destroy must cleanup everything not handled by the garbage collector.     * In this case there is nothing to cleanup.     * Save the options for the next restart.     * @param unconditional true if this MIDlet should always cleanup     */    protected void destroyApp(boolean unconditional) {        saveOptions();        frame.reset(); // Discard images cached in the frame.        saveOptions();        closeOptions();    }    /**     * Respond to commands. Commands are added to each screen as     * they are created.  Each screen uses the PhotoAlbum MIDlet as the     * CommandListener. All commands are handled here:     * <UL>     * <LI>Select on Image List - display the progress form and start the thread     *  to read in the images.     * <LI>Options - display the options form.     * <LI>Ok on the Options form - returns to the PhotoFrame.     * <LI>Back - display the Image List, deactivating the PhotoFrame.     * <LI>Cancel - display the image List and stop the thread loading images.     * <LI>Exit - images are released and notification is given that the MIDlet     *  has exited.     * </UL>     * @param c the command that triggered this callback     * @param s the screen that contained the command     */    public void commandAction(Command c, Displayable s) {        if (c == exitCommand) {            // Cleanup and notify that the MIDlet has exited            destroyApp(false);            notifyDestroyed();        } else if (c == optionsCommand) {            // Display the options form            display.setCurrent(genOptions());        } else if ((c == okCommand) && (s == optionsForm)) {            // Return to the PhotoFrame, the option values have already            // been saved by the item state listener            display.setCurrent(frame);        } else if (c == List.SELECT_COMMAND) {            // Display the progress screen and            // start the thread to read the images            int i = imageList.getSelectedIndex();            imageName = (String)imageNames.elementAt(i);            display.setCurrent(genProgress(imageList.getString(i)));            thread = new Thread(this);            thread.start();        } else if (c == backCommand) {            // Display the list of images.            display.setCurrent(imageList);        } else if (c == cancelCommand) {            // Signal thread to stop and put an alert.            thread = null;            alert.setString("Loading images cancelled.");            display.setCurrent(alert, imageList);        } else if (c == aboutCommand) {            About.showAbout(display);        }    }    /**     * Listener for changes to options.     * The new values are set in the PhotoFrame.     * @param item - the item whose value has changed.     */    public void itemStateChanged(Item item) {        if (item == borderChoice) {            frame.setStyle(borderChoice.getSelectedIndex());        } else if (item == speedChoice) {            frame.setSpeed(speedChoice.getSelectedIndex());        }    }    /**     * Generate the options form with speed and style choices.     * Speed choices are stop, slow, medium, and fast.     * Style choices for borders are none, plain, fancy.     * @return the generated options Screen     */    private Screen genOptions() {        if (optionsForm == null) {            optionsForm = new Form("Options");            optionsForm.addCommand(okCommand);            optionsForm.setCommandListener(this);            optionsForm.setItemStateListener(this);            speedChoice = new ChoiceGroup("Speed", Choice.EXCLUSIVE);            speedChoice.append("Stop", null);            speedChoice.append("Slow", null);            speedChoice.append("Medium", null);            speedChoice.append("Fast", null);            speedChoice.append("Unlimited", null);            speedChoice.setSelectedIndex(frame.getSpeed(), true);            optionsForm.append(speedChoice);            borderChoice = new ChoiceGroup("Borders", Choice.EXCLUSIVE);            borderChoice.append("None", null);            borderChoice.append("Plain", null);            borderChoice.append("Fancy", null);            borderChoice.setSelectedIndex(frame.getStyle(), true);            optionsForm.append(borderChoice);        }        return optionsForm;    }    /**     * Generate the options form with image title and progress gauge.     * @param name the title of the Image to be loaded.     * @return the generated progress screen     */    private Screen genProgress(String name) {        if (progressForm == null) {            progressForm = new Form(name);            progressForm.addCommand(cancelCommand);            progressForm.setCommandListener(this);            progressGauge = new javax.microedition.lcdui.Gauge("Loading images...", false, 9, 0);            progressForm.append(progressGauge);        } else {            progressGauge.setValue(0);            progressForm.setTitle(name);        }        return progressForm;    }    /**     * Check the attributes in the descriptor that identify     * images and titles and initialize the lists of imageNames     * and imageList.     * <P>     * The attributes are named "PhotoTitle-n" and "PhotoImage-n".     * The value "n" must start at "1" and increment by 1.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品中文字幕一区二区三区| 日韩码欧中文字| 欧美三级中文字| www.在线欧美| 成人精品免费看| 不卡的电影网站| 99综合影院在线| 91在线无精精品入口| 成人动漫在线一区| 99久久国产综合精品麻豆| 99久久综合狠狠综合久久| a在线播放不卡| 色综合中文字幕| 91麻豆精品国产91久久久更新时间| 在线一区二区三区四区| 色婷婷国产精品久久包臀| 91麻豆高清视频| 欧美日韩国产欧美日美国产精品| 欧美精品乱人伦久久久久久| 在线成人免费视频| 欧美mv日韩mv国产网站app| 亚洲精品一线二线三线| 国产精品国产三级国产普通话99 | 欧美一级日韩免费不卡| 3d动漫精品啪啪| 久久免费看少妇高潮| **网站欧美大片在线观看| 一区二区三区在线视频播放| 亚洲午夜国产一区99re久久| 精油按摩中文字幕久久| 成人国产精品免费观看视频| 色久优优欧美色久优优| 日韩视频一区二区三区在线播放| 2023国产精品| 亚洲国产欧美一区二区三区丁香婷| 亚洲福利视频导航| 国产一区二区精品久久| 在线观看91视频| 精品国精品国产| 一区二区视频免费在线观看| 日本成人在线不卡视频| 99精品欧美一区二区三区小说| 欧美色视频在线| 国产欧美一区二区精品婷婷| 天堂久久一区二区三区| 风间由美一区二区av101| 欧美日韩国产高清一区| 欧美国产日韩一二三区| 日日摸夜夜添夜夜添国产精品 | 色婷婷综合久久久久中文一区二区 | 免播放器亚洲一区| 成人av网址在线观看| 日韩欧美亚洲一区二区| 亚洲精品久久嫩草网站秘色| 国产精品资源网站| 欧美男生操女生| 亚洲精品国产无天堂网2021| 国产精品一区二区在线观看不卡| 欧美日韩在线直播| 亚洲日本中文字幕区| 国产乱色国产精品免费视频| 在线电影欧美成精品| 一区二区三区精品视频| av激情成人网| 国产欧美一区二区精品性色| 久久se精品一区二区| 欧美性视频一区二区三区| 日本一区二区三区四区在线视频| 久久国产生活片100| 这里只有精品视频在线观看| 亚洲国产综合91精品麻豆| 99精品视频在线观看| 国产精品成人免费| 国产不卡一区视频| 久久综合久久综合久久综合| 另类综合日韩欧美亚洲| 欧美一级一区二区| 麻豆成人综合网| 日韩一区二区不卡| 免费精品视频在线| 日韩精品一区二区三区swag| 麻豆一区二区在线| 精品国产免费一区二区三区香蕉| 久久激情五月激情| 精品国产三级电影在线观看| 国产精品1区2区3区在线观看| 久久久久国产精品厨房| 国产成人精品免费看| 欧美激情一区二区三区不卡| 成人在线视频一区二区| 中文字幕一区二区在线播放| 91在线无精精品入口| 亚洲综合视频网| 欧美精品tushy高清| 麻豆精品精品国产自在97香蕉| 91精品国产一区二区人妖| 蜜臀av亚洲一区中文字幕| 日韩视频在线永久播放| 欧美一卡二卡在线| 精彩视频一区二区三区| 日韩一级黄色片| 麻豆精品新av中文字幕| 精品日韩在线观看| 成人h动漫精品| 亚洲综合男人的天堂| 日韩三级电影网址| a4yy欧美一区二区三区| 婷婷综合另类小说色区| 精品国产一区二区在线观看| 成人一区二区三区在线观看| 亚洲制服丝袜av| 亚洲精品一区二区三区福利| 99久久精品国产一区| 日本欧美在线观看| 国产精品美女久久久久高潮| 欧美熟乱第一页| 国产麻豆精品在线观看| 亚洲一区二区不卡免费| 精品成人一区二区| 欧美系列在线观看| 成人午夜视频福利| 青青草91视频| 亚洲精品视频在线观看免费| wwww国产精品欧美| 欧美久久一区二区| 99久久99久久综合| 国产自产2019最新不卡| 亚洲成a人v欧美综合天堂下载| 久久久影视传媒| 欧美久久高跟鞋激| 99国产精品视频免费观看| 精品一区二区三区欧美| 亚洲午夜久久久久久久久电影网| 中文字幕欧美日韩一区| 欧美一级电影网站| 欧美性色aⅴ视频一区日韩精品| 国产一区二区三区高清播放| 日韩专区一卡二卡| 亚洲最大成人网4388xx| 国产精品久久久久久久久免费樱桃| 日韩一区二区中文字幕| 欧美日韩三级一区| 99re这里只有精品视频首页| 国产99一区视频免费| 免费成人小视频| 蜜臀av一区二区在线观看| 亚洲午夜影视影院在线观看| 专区另类欧美日韩| 欧美日韩国产一级二级| www.色综合.com| 成人午夜免费电影| 国产91丝袜在线观看| 奇米影视在线99精品| 日韩avvvv在线播放| 香蕉乱码成人久久天堂爱免费| 亚洲精品中文在线影院| 亚洲一区二区3| 亚洲综合区在线| 午夜免费久久看| 老司机午夜精品99久久| 美女一区二区视频| 激情丁香综合五月| 粉嫩av一区二区三区在线播放| 国产伦精品一区二区三区视频青涩| 韩国欧美国产1区| 国产精品1区二区.| 9久草视频在线视频精品| 色呦呦国产精品| 欧美四级电影在线观看| 欧美丰满高潮xxxx喷水动漫| 日韩欧美一二三区| 国产无人区一区二区三区| 欧美国产成人精品| 亚洲男人都懂的| 日韩不卡在线观看日韩不卡视频| 精品午夜久久福利影院| 国产福利一区二区| 99r国产精品| 欧美精品在线一区二区| 日韩一级二级三级精品视频| 久久久久高清精品| 亚洲精品自拍动漫在线| 免费一区二区视频| 成人一二三区视频| 欧美亚洲国产bt| 欧美zozo另类异族| 亚洲天堂a在线| 日本不卡的三区四区五区| 国产精品12区| 欧美亚洲国产一区在线观看网站| 日韩免费看网站| 亚洲日韩欧美一区二区在线| 日本不卡123| 99精品视频一区| 日韩精品一区二区三区中文精品| 国产精品日韩成人| 三级欧美韩日大片在线看| 美女脱光内衣内裤视频久久网站| 国产99精品国产| 欧美一区二区三区白人|