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

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

?? photoalbum.java

?? Photoalbum,開發于J2ME
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * * Copyright (c) 2007, Sun Microsystems, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * *  * Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. *  * Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. *  * Neither the name of Sun Microsystems nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */package example.photoalbum;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 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);        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);        }     }    /**     * 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);        }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91色综合久久久久婷婷| 国产精品久久久久久妇女6080| 黄色小说综合网站| 亚洲国产精品成人综合| 成人福利电影精品一区二区在线观看| 国产喂奶挤奶一区二区三区| 91久久精品国产91性色tv| 福利视频网站一区二区三区| 一本大道久久a久久精品综合| 五月天激情小说综合| 555www色欧美视频| 91精品国产色综合久久不卡蜜臀| 欧美欧美午夜aⅴ在线观看| 911精品产国品一二三产区| 91精品婷婷国产综合久久竹菊| 在线不卡免费av| 欧美电影精品一区二区| 欧美一级生活片| 一本一本久久a久久精品综合麻豆| 国产福利一区二区三区视频在线| 麻豆免费精品视频| 亚洲国产欧美在线人成| 中文字幕在线不卡一区| 精品区一区二区| 精品日韩欧美一区二区| 欧美精选午夜久久久乱码6080| 99精品在线观看视频| 国产精品99久久久久久宅男| 国产精品自拍三区| 黄色资源网久久资源365| 国内一区二区视频| 国产xxx精品视频大全| 国产精品一卡二| 国产成人av网站| 91色九色蝌蚪| 在线免费亚洲电影| 欧美成人艳星乳罩| 久久久99久久精品欧美| 久久久不卡网国产精品一区| 国产日产欧美一区二区三区| 亚洲精品国久久99热| 中文字幕在线播放不卡一区| 一区二区三区在线免费| 精品视频1区2区| 欧美一级免费观看| 日本成人在线电影网| 水野朝阳av一区二区三区| 亚洲色图.com| 久久狠狠亚洲综合| 91在线精品一区二区| 欧美一级夜夜爽| 亚洲视频免费看| 日本欧美久久久久免费播放网| 国产一区二区按摩在线观看| 色哟哟一区二区| 欧美tickle裸体挠脚心vk| 国产成人自拍在线| 91麻豆福利精品推荐| 精品少妇一区二区三区免费观看| 欧美激情中文不卡| 美女国产一区二区| 色婷婷综合久久久中文一区二区 | 亚洲丝袜自拍清纯另类| 亚洲欧洲综合另类在线| 免费在线欧美视频| 成人av小说网| 精品久久久久久久久久久院品网| 专区另类欧美日韩| 精品一区二区三区免费视频| 欧美日韩国产另类不卡| 中文字幕精品在线不卡| 精品亚洲成av人在线观看| 欧美在线高清视频| 中文字幕一区二区三区色视频| 日本欧美一区二区三区| 欧美日韩aaa| 尤物视频一区二区| 99精品视频在线观看| 欧美精品一区二区三区视频| 亚洲午夜三级在线| 色综合久久久网| 午夜av电影一区| 欧美网站大全在线观看| 日韩黄色免费电影| 精品亚洲成a人| 欧美一区二区视频在线观看2022| 亚洲一区二区三区视频在线| 欧美日韩国产综合一区二区| 99在线精品免费| 91丨porny丨国产入口| 国产成人aaaa| 欧美精品一区二区久久久| 午夜精品一区二区三区电影天堂 | 国产精品护士白丝一区av| 国内成人精品2018免费看| 久久久不卡影院| 欧美色手机在线观看| 亚洲一级在线观看| 91精品国产综合久久精品app| 亚洲午夜免费电影| 日韩午夜av电影| 成人一区二区三区视频| 亚洲女爱视频在线| 欧美一区二区不卡视频| 国产一区在线不卡| 亚洲国产日韩在线一区模特| 福利电影一区二区三区| 亚洲一区av在线| 亚洲天堂a在线| 日韩一区二区三区四区| 国产成人鲁色资源国产91色综| 成人欧美一区二区三区小说| 色视频一区二区| 日本中文字幕一区二区视频| 亚洲欧洲一区二区在线播放| 欧美日韩精品一区二区三区| 久久精工是国产品牌吗| 亚洲国产精品精华液2区45| 色综合久久综合网欧美综合网| 免费亚洲电影在线| 亚洲色图色小说| 亚洲精品国产无天堂网2021| 欧美一级艳片视频免费观看| 日韩三级在线免费观看| 97se亚洲国产综合自在线观| 亚洲午夜在线观看视频在线| 日韩欧美国产三级电影视频| 成人h版在线观看| 国产福利一区二区三区视频在线| 国产酒店精品激情| 91网页版在线| 亚洲一本大道在线| 欧美一区二区三区思思人| 日本不卡高清视频| 欧美成人a视频| 成人性生交大片免费看在线播放| 亚洲精品视频在线观看网站| 欧美精品高清视频| 国产一区二区三区在线观看免费 | 久久久蜜臀国产一区二区| 制服.丝袜.亚洲.中文.综合| 色狠狠一区二区| 欧美日本在线观看| 3d动漫精品啪啪1区2区免费| 欧美日韩国产综合一区二区三区| 欧美这里有精品| 99综合影院在线| 99精品1区2区| 91国产免费看| 91精品国产综合久久香蕉麻豆| 在线视频国内一区二区| 91国模大尺度私拍在线视频| 欧美日韩久久久一区| 日韩视频在线一区二区| 欧美不卡视频一区| 国产亚洲精品aa午夜观看| 中文字幕字幕中文在线中不卡视频| 国产精品久久久99| 亚洲成人免费观看| 黄一区二区三区| 色94色欧美sute亚洲线路二| 欧美一区二视频| 欧美国产激情一区二区三区蜜月| 亚洲图片激情小说| 天天综合日日夜夜精品| 国产精品自拍av| 一本色道亚洲精品aⅴ| 91麻豆精品国产| 日韩影院在线观看| 九九九精品视频| 国产午夜亚洲精品理论片色戒 | 成人毛片老司机大片| 成人国产在线观看| 777久久久精品| 亚洲成av人片观看| 国产日韩影视精品| 91久久精品一区二区三| 成人免费黄色大片| 日韩一区欧美二区| 亚洲综合一区二区精品导航| 国产欧美日韩亚州综合 | 国产白丝精品91爽爽久久| 青娱乐精品视频在线| 1区2区3区精品视频| 自拍视频在线观看一区二区| 久久精品综合网| 亚洲高清视频在线| 粉嫩av一区二区三区| 欧美日韩精品福利| 国产精品女同互慰在线看| 麻豆精品国产传媒mv男同| 欧美久久久久久久久| 亚洲欧美色一区| 北条麻妃国产九九精品视频| 精品成人在线观看| 全国精品久久少妇| 欧洲精品一区二区| 亚洲精品视频免费观看| 高清视频一区二区| 国产精品免费网站在线观看|