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

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

?? guiimageclient.java

?? 手機藍牙通信程序
?? JAVA
字號:
/* * * 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.bluetooth.demo;// midp/cldc classesimport java.io.IOException;import java.util.Enumeration;import java.util.Hashtable;// midp GUI classesimport javax.microedition.lcdui.Alert;import javax.microedition.lcdui.AlertType;import javax.microedition.lcdui.Command;import javax.microedition.lcdui.CommandListener;import javax.microedition.lcdui.Display;import javax.microedition.lcdui.Displayable;import javax.microedition.lcdui.Form;import javax.microedition.lcdui.Gauge;import javax.microedition.lcdui.Image;import javax.microedition.lcdui.ImageItem;import javax.microedition.lcdui.List;import javax.microedition.lcdui.StringItem;/** * Provides a GUI to present the download options * to used, gives a chance to make a choice, * finally shows the downloaded image. * * @version , */final class GUIImageClient implements CommandListener {    /** This command goes to demo main screen. */    private final Command SCR_MAIN_BACK_CMD = new Command("Back", Command.BACK, 2);    /** Starts the proper services search. */    private final Command SCR_MAIN_SEARCH_CMD = new Command("Find", Command.OK, 1);    /** Cancels the device/services discovering. */    private final Command SCR_SEARCH_CANCEL_CMD = new Command("Cancel", Command.BACK, 2);    /** This command goes to client main screen. */    private final Command SCR_IMAGES_BACK_CMD = new Command("Back", Command.BACK, 2);    /** Start the chosen image download. */    private final Command SCR_IMAGES_LOAD_CMD = new Command("Load", Command.OK, 1);    /** Cancels the image download. */    private final Command SCR_LOAD_CANCEL_CMD = new Command("Cancel", Command.BACK, 2);    /** This command goes from image screen to images list one. */    private final Command SCR_SHOW_BACK_CMD = new Command("Back", Command.BACK, 2);    /** The main screen of the client part. */    private final Form mainScreen = new Form("Image Viewer");    /** The screen with found images names. */    private final List listScreen = new List("Image Viewer", List.IMPLICIT);    /** The screen with download image. */    private final Form imageScreen = new Form("Image Viewer");    /** Keeps the parent MIDlet reference to process specific actions. */    private DemoMIDlet parent;    /** This object handles the real transmission. */    private BTImageClient bt_client;    /** Constructs client GUI. */    GUIImageClient(DemoMIDlet parent) {        this.parent = parent;        bt_client = new BTImageClient(this);        mainScreen.addCommand(SCR_MAIN_BACK_CMD);        mainScreen.addCommand(SCR_MAIN_SEARCH_CMD);        mainScreen.setCommandListener(this);        listScreen.addCommand(SCR_IMAGES_BACK_CMD);        listScreen.addCommand(SCR_IMAGES_LOAD_CMD);        listScreen.setCommandListener(this);        imageScreen.addCommand(SCR_SHOW_BACK_CMD);        imageScreen.setCommandListener(this);    }    /**     * Process the command events.     *     * @param c - the issued command.     * @param d - the screen object the command was issued for.     */    public void commandAction(Command c, Displayable d) {        // back to demo main screen        if (c == SCR_MAIN_BACK_CMD) {            destroy();            parent.show();            return;        }        // starts images (device/services) search        if (c == SCR_MAIN_SEARCH_CMD) {            Form f = new Form("Searching...");            f.addCommand(SCR_SEARCH_CANCEL_CMD);            f.setCommandListener(this);            f.append(new Gauge("Searching images...", false, Gauge.INDEFINITE,                    Gauge.CONTINUOUS_RUNNING));            Display.getDisplay(parent).setCurrent(f);            bt_client.requestSearch();            return;        }        // cancels device/services search        if (c == SCR_SEARCH_CANCEL_CMD) {            bt_client.cancelSearch();            Display.getDisplay(parent).setCurrent(mainScreen);            return;        }        // back to client main screen        if (c == SCR_IMAGES_BACK_CMD) {            bt_client.requestLoad(null);            Display.getDisplay(parent).setCurrent(mainScreen);            return;        }        // starts image download        if (c == SCR_IMAGES_LOAD_CMD) {            Form f = new Form("Loading...");            f.addCommand(SCR_LOAD_CANCEL_CMD);            f.setCommandListener(this);            f.append(new Gauge("Loading image...", false, Gauge.INDEFINITE, Gauge.CONTINUOUS_RUNNING));            Display.getDisplay(parent).setCurrent(f);            List l = (List)d;            bt_client.requestLoad(l.getString(l.getSelectedIndex()));            return;        }        // cancels image load        if (c == SCR_LOAD_CANCEL_CMD) {            bt_client.cancelLoad();            Display.getDisplay(parent).setCurrent(listScreen);            return;        }        // back to client main screen        if (c == SCR_SHOW_BACK_CMD) {            Display.getDisplay(parent).setCurrent(listScreen);            return;        }    }    /**     * We have to provide this method due to "do not do network     * operation in command listener method" restriction, which     * is caused by crooked midp design.     *     * This method is called by BTImageClient after it is done     * with bluetooth initialization and next screen is ready     * to appear.     */    void completeInitialization(boolean isBTReady) {        // bluetooth was initialized successfully.        if (isBTReady) {            StringItem si = new StringItem("Ready for images search!", null);            si.setLayout(StringItem.LAYOUT_CENTER | StringItem.LAYOUT_VCENTER);            mainScreen.append(si);            Display.getDisplay(parent).setCurrent(mainScreen);            return;        }        // something wrong        Alert al = new Alert("Error", "Can't initialize bluetooth", null, AlertType.ERROR);        al.setTimeout(DemoMIDlet.ALERT_TIMEOUT);        Display.getDisplay(parent).setCurrent(al, parent.getDisplayable());    }    /** Destroys this component. */    void destroy() {        // finalize the image client work        bt_client.destroy();    }    /**     * Informs the error during the images search.     */    void informSearchError(String resMsg) {        Alert al = new Alert("Error", resMsg, null, AlertType.ERROR);        al.setTimeout(DemoMIDlet.ALERT_TIMEOUT);        Display.getDisplay(parent).setCurrent(al, mainScreen);    }    /**     * Informs the error during the selected image load.     */    void informLoadError(String resMsg) {        Alert al = new Alert("Error", resMsg, null, AlertType.ERROR);        al.setTimeout(DemoMIDlet.ALERT_TIMEOUT);        Display.getDisplay(parent).setCurrent(al, listScreen);    }    /**     * Shows the downloaded image.     */    void showImage(Image img, String imgName) {        imageScreen.deleteAll();        imageScreen.append(new ImageItem(imgName, img,                ImageItem.LAYOUT_CENTER | ImageItem.LAYOUT_VCENTER, "Downloaded image: " + imgName));        Display.getDisplay(parent).setCurrent(imageScreen);    }    /**     * Shows the available images names.     *     * @returns false if no images names were found actually     */    boolean showImagesNames(Hashtable base) {        Enumeration keys = base.keys();        // no images actually        if (!keys.hasMoreElements()) {            informSearchError("No images names in found services");            return false;        }        // prepare the list to be shown        while (listScreen.size() != 0) {            listScreen.delete(0);        }        while (keys.hasMoreElements()) {            listScreen.append((String)keys.nextElement(), null);        }        Display.getDisplay(parent).setCurrent(listScreen);        return true;    }} // end of class 'GUIImageClient' definition

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一级二级在线| 欧美日韩国产在线播放网站| 亚洲在线中文字幕| 国产精品美日韩| 久久精品欧美日韩| www国产精品av| 日韩一区二区免费在线观看| 91精品视频网| 日韩三级电影网址| 欧美岛国在线观看| 久久中文字幕电影| 久久先锋影音av鲁色资源网| 久久综合色天天久久综合图片| 欧美不卡一区二区三区四区| 日韩视频在线永久播放| 精品国产一区二区三区四区四| 2欧美一区二区三区在线观看视频| 日韩一区二区三区视频在线观看| 日韩欧美亚洲另类制服综合在线| 欧美一区二区网站| 精品成人佐山爱一区二区| 久久夜色精品国产欧美乱极品| 国产亚洲欧美日韩俺去了| 中文字幕精品一区| 亚洲精品免费播放| 日本三级韩国三级欧美三级| 日韩va亚洲va欧美va久久| 激情综合网最新| 丁香天五香天堂综合| 色哟哟在线观看一区二区三区| 欧美日韩国产成人在线免费| 欧美不卡视频一区| 又紧又大又爽精品一区二区| 奇米色777欧美一区二区| 粉嫩嫩av羞羞动漫久久久| 在线观看成人小视频| 欧美一级黄色录像| 综合激情网...| 日本成人中文字幕在线视频| 成人丝袜高跟foot| 91.com在线观看| 国产婷婷一区二区| 亚洲va国产天堂va久久en| 国产成人精品免费看| 欧美高清dvd| 亚洲少妇30p| 久久成人av少妇免费| 91美女片黄在线观看91美女| 91精品国模一区二区三区| 国产精品私人影院| 美女诱惑一区二区| 欧美日韩在线播放| 中文字幕一区二区在线播放| 免费高清成人在线| 在线中文字幕一区二区| 久久久久国产精品免费免费搜索| 亚洲午夜在线电影| 91丨porny丨中文| 久久蜜臀中文字幕| 麻豆精品精品国产自在97香蕉| 97se亚洲国产综合自在线不卡| 精品国产网站在线观看| 天堂资源在线中文精品| 色综合夜色一区| 国产亲近乱来精品视频| 午夜精品一区在线观看| 色婷婷av一区二区三区之一色屋| 精品电影一区二区三区| 奇米四色…亚洲| 这里只有精品99re| 亚洲综合免费观看高清在线观看| 成人免费看视频| 久久久www免费人成精品| 美女视频黄频大全不卡视频在线播放 | 一区二区三区欧美久久| 成人激情免费网站| 亚洲精品一区二区三区蜜桃下载 | 蜜臀国产一区二区三区在线播放| 色婷婷av一区二区三区之一色屋| 中文字幕+乱码+中文字幕一区| 久久99精品一区二区三区三区| 91精品国产综合久久精品麻豆| 视频一区在线播放| 日韩欧美在线影院| 久久99在线观看| 久久久久久久久久久久久久久99 | 亚洲永久精品国产| 欧美日韩一区二区在线视频| 亚洲一区二区三区中文字幕| 在线日韩国产精品| 日本欧美加勒比视频| 日韩一区二区免费在线电影| 久久99精品一区二区三区| 精品卡一卡二卡三卡四在线| 韩国午夜理伦三级不卡影院| 国产欧美视频一区二区| 91在线国产福利| 一个色在线综合| 欧美一区二区视频在线观看2022 | 久久久亚洲国产美女国产盗摄| 国产精品影视在线观看| 国产精品无遮挡| 91精品1区2区| 日本伊人精品一区二区三区观看方式| 日韩你懂的在线播放| 久久99精品国产| 亚洲日本免费电影| 91精品国产综合久久久久久久久久| 久久精品国产亚洲高清剧情介绍| 国产日韩欧美精品在线| 在线欧美小视频| 国产一区二区三区四区五区美女| 国产精品久线在线观看| 欧美日韩视频在线一区二区| 精品综合免费视频观看| 国产精品麻豆久久久| 欧美日韩在线观看一区二区 | 日韩亚洲欧美在线| 国产69精品久久久久777| 亚洲一区二区在线免费观看视频 | 国产在线精品免费| 亚洲免费电影在线| 久久中文娱乐网| 欧美另类videos死尸| 成人性视频网站| 日本视频一区二区三区| 亚洲精品日日夜夜| 亚洲国产精品黑人久久久| 欧美精品丝袜久久久中文字幕| 国产高清在线观看免费不卡| 日韩在线观看一区二区| 亚洲黄色小视频| 久久精品视频网| 欧美一区二区啪啪| 欧洲激情一区二区| 99在线热播精品免费| 国产综合成人久久大片91| 亚洲福利视频一区二区| 一区二区三区在线观看动漫| 国产精品久久免费看| 精品国产一区二区国模嫣然| 欧美一区二区视频在线观看| 欧美日韩中文字幕一区| 91亚洲精品乱码久久久久久蜜桃 | 亚洲精品综合在线| 中文一区在线播放| 精品欧美一区二区三区精品久久| 欧美视频三区在线播放| 91免费在线视频观看| av电影在线观看一区| 成人午夜视频免费看| 国产精品 日产精品 欧美精品| 激情综合色播五月| 久久99国产精品久久99果冻传媒| 日韩国产精品91| 日本免费在线视频不卡一不卡二| 亚洲国产精品久久一线不卡| 亚洲国产日日夜夜| 亚洲成人免费影院| 日产国产欧美视频一区精品| 日韩电影在线观看网站| 蜜臀91精品一区二区三区| 日本不卡免费在线视频| 麻豆freexxxx性91精品| 国产精品18久久久久| 国产aⅴ综合色| 91麻豆蜜桃一区二区三区| 91免费看视频| 欧美午夜在线观看| 日韩亚洲欧美在线观看| 久久久影院官网| 中文字幕欧美国产| 亚洲乱码国产乱码精品精98午夜 | 韩国成人精品a∨在线观看| 精品一区二区三区免费毛片爱| 国产一区二区三区国产| 成人午夜在线视频| 99国产欧美久久久精品| 在线视频国产一区| 亚洲精品一区二区三区福利| 久久久久久久久久久久电影 | 成人高清伦理免费影院在线观看| 99这里只有久久精品视频| 色爱区综合激月婷婷| 欧美一区二区三区视频| 中文字幕第一区二区| 亚洲va国产va欧美va观看| 国产精品一二三四| 91国产成人在线| 久久精品人人做人人综合 | 亚洲成人7777| 国产福利一区在线观看| 一本久久a久久精品亚洲| 日韩欧美一二三区| 亚洲视频在线一区观看| 免费高清视频精品| 色欲综合视频天天天| 国产日韩一级二级三级| 亚洲h精品动漫在线观看| 国产.精品.日韩.另类.中文.在线.播放 |