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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? photoalbum.java

?? Photoalbum,開(kāi)發(fā)于J2ME
?? JAVA
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/* * * 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);        }

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91麻豆精品国产| 99v久久综合狠狠综合久久| 欧美精品在线视频| 日韩va亚洲va欧美va久久| 亚洲丝袜精品丝袜在线| 色婷婷综合久久久中文字幕| 亚洲制服丝袜av| 91精品国产色综合久久不卡蜜臀 | 婷婷中文字幕一区三区| 欧美性猛片xxxx免费看久爱| 亚洲国产va精品久久久不卡综合| 欧美电影一区二区| 免费欧美日韩国产三级电影| 欧美白人最猛性xxxxx69交| 国内精品久久久久影院薰衣草| 精品国产91乱码一区二区三区| 国产精品一区在线观看乱码| 国产精品嫩草99a| av一区二区三区四区| 偷拍亚洲欧洲综合| 国产亚洲精品bt天堂精选| 91无套直看片红桃| 日韩av一区二区三区四区| 337p日本欧洲亚洲大胆色噜噜| 粉嫩在线一区二区三区视频| 一区二区三区欧美激情| 日韩一区二区中文字幕| 福利一区福利二区| 亚洲高清免费在线| 国产午夜亚洲精品羞羞网站| 在线免费观看视频一区| 国产精品影视天天线| 一区二区久久久久久| xfplay精品久久| 欧美色爱综合网| 国产成人精品免费网站| 一卡二卡三卡日韩欧美| 精品国产乱码91久久久久久网站| 成人免费高清在线观看| 喷水一区二区三区| 樱桃国产成人精品视频| 精品sm在线观看| 欧美性三三影院| 北岛玲一区二区三区四区| 日本视频在线一区| 亚洲综合在线五月| 国产精品乱码一区二区三区软件| 欧美电影一区二区三区| 91在线一区二区三区| 韩国v欧美v日本v亚洲v| 亚洲成在人线在线播放| 国产精品第四页| 精品sm在线观看| 欧美另类变人与禽xxxxx| 成人avav影音| 久久精品国产一区二区三 | 精品乱人伦小说| 在线中文字幕一区| 懂色av中文一区二区三区| 理论片日本一区| 免费看欧美女人艹b| 香蕉加勒比综合久久| 国产成人综合在线播放| 日韩精品亚洲专区| 亚洲图片自拍偷拍| 亚洲情趣在线观看| 亚洲私人黄色宅男| 国产精品电影院| 国产精品久久久久久久久搜平片| 精品成a人在线观看| 91精品国产丝袜白色高跟鞋| 欧美美女一区二区三区| 欧美日韩电影在线| 9191国产精品| 欧美一区二区三区色| 在线不卡一区二区| 欧美一区二区视频网站| 日韩一区二区三区在线视频| 欧美一区二区在线视频| 欧美一级片在线观看| 欧美一级在线视频| 日韩欧美国产一区二区在线播放| 欧美一区二区网站| 欧美tk丨vk视频| 久久这里只有精品首页| 久久久久久久综合日本| 久久久精品日韩欧美| 欧美激情中文不卡| 亚洲欧洲综合另类| 亚洲成av人**亚洲成av**| 天天av天天翘天天综合网| 日韩精品亚洲专区| 国产精品亚洲午夜一区二区三区| 国产大片一区二区| 色婷婷综合久久| 91超碰这里只有精品国产| 精品少妇一区二区三区| 国产精品色哟哟网站| 亚洲综合一区二区精品导航| 天天操天天干天天综合网| 韩国三级电影一区二区| jlzzjlzz欧美大全| 欧美日韩一级大片网址| 日韩美女主播在线视频一区二区三区| 337p粉嫩大胆噜噜噜噜噜91av| 亚洲国产精品成人久久综合一区| 一区二区在线观看免费视频播放 | 欧美一区永久视频免费观看| 久久这里只有精品6| 亚洲欧洲99久久| 日韩成人免费在线| 不卡视频在线观看| 678五月天丁香亚洲综合网| 久久婷婷综合激情| 亚洲尤物视频在线| 国产在线精品一区二区不卡了| 99re这里只有精品6| 日韩欧美一二三| 亚洲欧美区自拍先锋| 看片的网站亚洲| 91原创在线视频| 久久先锋影音av鲁色资源 | 日韩国产欧美在线观看| 国产精品亚洲一区二区三区在线| 色狠狠色噜噜噜综合网| 久久综合九色综合久久久精品综合 | 国产69精品久久久久毛片 | 欧美精品 国产精品| 久久亚洲精品小早川怜子| 亚洲国产一区二区三区| 成人影视亚洲图片在线| 日韩一区二区免费高清| 亚洲精品日日夜夜| 国产精品88888| 日韩午夜激情电影| 一区二区三区欧美激情| 成人高清av在线| 精品99一区二区| 午夜国产精品影院在线观看| 99精品桃花视频在线观看| 精品国产乱子伦一区| 日韩av不卡在线观看| 91国偷自产一区二区三区成为亚洲经典| 欧美精品一区男女天堂| 日本亚洲免费观看| 在线观看视频91| 亚洲免费在线电影| 成人妖精视频yjsp地址| 欧美sm极限捆绑bd| 热久久免费视频| 3751色影院一区二区三区| 亚洲午夜视频在线| 色综合久久综合网| 国产精品私人影院| 国产成人免费视频一区| 精品国产3级a| 国产在线视频不卡二| 日韩欧美久久久| 蜜桃视频免费观看一区| 3d成人h动漫网站入口| 五月开心婷婷久久| 欧美在线观看视频一区二区三区| 综合激情网...| 97精品国产露脸对白| 亚洲视频精选在线| 99精品国产91久久久久久| 亚洲欧美中日韩| 91小视频在线| 一区二区三区精品| 91国偷自产一区二区开放时间| 一区二区三区四区精品在线视频| 91蜜桃视频在线| 一区二区三区中文字幕| 91成人免费在线视频| 午夜精品久久久久久| 91精品国产91综合久久蜜臀| 免费成人在线观看视频| 欧美电影免费观看高清完整版在 | 日韩欧美一区二区久久婷婷| 热久久免费视频| 2023国产精品视频| 国产成人综合自拍| 亚洲视频每日更新| 欧美日韩极品在线观看一区| 蜜臀va亚洲va欧美va天堂| 久久久久成人黄色影片| 99热99精品| 亚洲bt欧美bt精品| 26uuu精品一区二区| 成人av第一页| 亚洲成av人影院在线观看网| 欧美一区中文字幕| 高潮精品一区videoshd| 亚洲激情校园春色| 欧美本精品男人aⅴ天堂| 丁香婷婷深情五月亚洲| 一区二区激情视频| 欧美videos大乳护士334| 成人精品免费看| 亚洲成人免费视频|