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

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

?? conditionalactionrunnerui.java

?? 手機郵箱撒的方式方式方式的
?? JAVA
字號:
/*MujMail - Simple mail client for J2MECopyright (C) 2009 David Hauzar <david.hauzar.mujmail@gmail.com>This program is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2 of the License, or(at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */package mujmail.tasks;import javax.microedition.lcdui.Alert;import javax.microedition.lcdui.AlertType;import javax.microedition.lcdui.Command;import javax.microedition.lcdui.Displayable;import mujmail.MujMail;import mujmail.ui.MVCComponent;import mujmail.util.Callback;/** * User interface for {@link ConditionalActionRunner}. * * It enables to cancel the action, to wait and test whether the condition * holds and to show the Task manager. * * To use it, pass object of this class to method * {@link ConditionalActionRunner#startAction(Callback)}. If the condition does * not hold, it shows this user interface to user. If the condition starts * holding this user interface is automatically canceled. *  * @author David Hauzar */public class ConditionalActionRunnerUI implements Callback {    private boolean wasDisplayed = false;    final ConditionalActionRunner actionRunner;    private final String alertTitle;    private final String alertText;    private ConditionalActionRunnerUIImpl uiScreen;    private String doAnywayText = "";    private Mode mode;    private static Displayable lastNonActionRunnerScreen = null;    /** Does not display action runner user interface. */    public static final ConditionalActionRunnerUI NOT_DISPLAY_ACTION_RUNNER_UI = new NotDisplayConditionalActionRunnerUI();    /**     * Enumeration class where modes of ConditionalActionRunnerUI are declared.     */    public static class Mode {        private Mode() {};        /** Basic mode. Buttons Back, Cancel and Show progress manager will be         displayed. */        public static final Mode BASIC = new Mode();        /** It will be displayed button force action without checking condition. */        public static final Mode WITH_FORCE_ACTION = new Mode();    }        public ConditionalActionRunnerUI(ConditionalActionRunner actionRunner, String alertTitle, String alertText) {        this.actionRunner = actionRunner;        this.alertTitle = alertTitle;        this.alertText = alertText;        mode = Mode.BASIC;    }    public ConditionalActionRunnerUI(ConditionalActionRunner actionRunner, String alertTitle, String alertText, String doAnywayText) {        this(actionRunner, alertTitle, alertText);        this.doAnywayText = doAnywayText;        mode = Mode.WITH_FORCE_ACTION;    }        public void callback(Object called, Object message) {        uiScreen = new ConditionalActionRunnerUIImpl();        uiScreen.showScreen();    }    /**     * If current screen is not displayed by some instance of this class     * sets it as last screen that was not shown by any instance of     * ConditionalActionRunnerUI.     */    private static synchronized void setLastScreen() {        Displayable current = MujMail.mujmail.getDisplay().getCurrent();        if ( !(current instanceof ConditionalActionRunnerUIImpl.ConditionalActionRunnerAlert) ) {            lastNonActionRunnerScreen = current;        }    }    /**     * Gets the screen that this conditional action runner user interface     * displays to user.     * @return the screen that this conditional action runner user interface     *  displays to user.     */    Displayable getUIScreen() {        return uiScreen.getView();    }    /**     * Cancel displaying this conditional action runner user interface.     * Sets last screen that was not shown by any instance of     * ConditionalActionRunnerUI as current screen.     *     * This is not perfect sollution because there can be conditional action     * runner screen of some task that was not yet started - and this screen     * should be displayed. The sollution of this problem would be have the     * list of conditional action runner screens of tasks that were not already     * started and if this queue is not empty display some of this screen     * instead of displaying last screen that was not shouwn like now.     * However, this problem is not critical and this sollution would be     * probably overcomplicated.     */    public void cancelDisplaying() {        if (wasDisplayed) {            MujMail.mujmail.getDisplay().setCurrent(lastNonActionRunnerScreen);        }        wasDisplayed = false;    }    /**     * ConditionalActionRunnerUI that does not anything.     */    private static class NotDisplayConditionalActionRunnerUI extends ConditionalActionRunnerUI {        public NotDisplayConditionalActionRunnerUI() {            super(null, null, null);        }        public void callback(Object called, Object message) {        }        public void cancelDisplaying() {        }            }    private class ConditionalActionRunnerUIImpl extends MVCComponent {        private Displayable prevScreen;        private Displayable view;        private final Command BACK = new Command("Back", Command.BACK, 0);        private final Command CANCEL_ACTION = new Command("Cancel", Command.CANCEL, 1);        private final Command SHOW_TASK_MANAGER = new Command("Show tasks", Command.ITEM, 2);        private final Command FORCE_ACTION = new Command(doAnywayText, Command.ITEM, 3);        private class ConditionalActionRunnerAlert extends Alert {            public ConditionalActionRunnerAlert() {                super(alertTitle, alertText, null, AlertType.INFO);            }            public Displayable getPrevScreen() {                return prevScreen;            }        }        public void showScreen() {            setLastScreen();            wasDisplayed = true;            super.showScreen();        }        protected void createView() {            Alert alert = new ConditionalActionRunnerAlert();            alert.setTimeout(Alert.FOREVER);            alert.addCommand(BACK);            alert.addCommand(CANCEL_ACTION);            alert.addCommand(SHOW_TASK_MANAGER);            if (mode == Mode.WITH_FORCE_ACTION) {                alert.addCommand(FORCE_ACTION);            }            view = alert;        }        protected Displayable getView() {            return view;        }        protected void initModel() {            prevScreen = getDisplay().getCurrent();        }        protected void updateView() {        }        public void commandAction(Command c, Displayable d) {            if (c == BACK) {                getDisplay().setCurrent(prevScreen);                return;            }            if (c == CANCEL_ACTION) {                actionRunner.cancelAction();                getDisplay().setCurrent(prevScreen);                return;            }            if (c == SHOW_TASK_MANAGER) {                TasksManagerUI taskManager = new TasksManagerUI();                taskManager.showScreen();                return;            }            if (c == FORCE_ACTION) {                actionRunner.doTheAction();                return;            }        }    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜精品视频一区| 国产成人av影院| 国产精品一区在线| 欧洲国产伦久久久久久久| 久久久久久久久99精品| 亚洲第一成年网| 99国产精品久久久久久久久久久| 91精品国产高清一区二区三区| 国产精品电影院| 国产精品一区二区视频| 欧美一区二区精品在线| 亚洲一区二区在线免费观看视频| 丁香激情综合国产| 久久久影视传媒| 日韩av电影天堂| 欧美在线观看视频一区二区三区 | 国产传媒日韩欧美成人| 欧美日韩高清影院| 一区二区三区在线视频免费 | 免费看日韩a级影片| 色系网站成人免费| 日韩毛片精品高清免费| 成人激情视频网站| 中文一区在线播放| 高清shemale亚洲人妖| 久久亚洲私人国产精品va媚药| 男人操女人的视频在线观看欧美| 欧美日韩一区二区在线观看| 亚洲精品久久嫩草网站秘色| 99re6这里只有精品视频在线观看| 国产日产欧产精品推荐色| 国产成人在线视频网站| 国产欧美综合色| 成人影视亚洲图片在线| 国产精品青草综合久久久久99| 91国产丝袜在线播放| 综合久久久久综合| 91麻豆国产香蕉久久精品| 日韩毛片一二三区| 91精品办公室少妇高潮对白| 亚洲一区二区三区在线| 精品视频在线免费观看| 日本亚洲一区二区| 精品国产青草久久久久福利| 国产一区二区在线电影| 国产日韩精品视频一区| 99久久精品免费精品国产| 亚洲视频在线观看一区| 欧美艳星brazzers| 蜜臀av性久久久久蜜臀av麻豆 | 日韩综合小视频| 日韩精品一区二区三区中文不卡| 久久国产精品色婷婷| 国产日韩欧美亚洲| 白白色亚洲国产精品| 一区二区在线观看视频| 欧美情侣在线播放| 韩日欧美一区二区三区| 国产精品久久久久久妇女6080 | 欧美日韩一区二区三区在线看| 欧美一级二级在线观看| 国产精品白丝jk黑袜喷水| 欧美三级韩国三级日本一级| 蜜桃视频免费观看一区| 久久免费美女视频| 在线国产电影不卡| 精品一二三四区| 亚洲男同1069视频| 精品裸体舞一区二区三区| 99久久国产免费看| 久久不见久久见中文字幕免费| 日本一区二区三区在线观看| 欧美三级乱人伦电影| 国产精品综合一区二区| 亚洲一区二区影院| 国产女主播一区| 欧美浪妇xxxx高跟鞋交| 成人高清视频免费观看| 奇米888四色在线精品| 亚洲色图20p| 精品国产青草久久久久福利| 一本色道久久加勒比精品| 国产一区二区三区在线观看免费视频 | 亚洲视频一区在线| 26uuu欧美| 在线成人免费观看| 一本一本久久a久久精品综合麻豆| 另类小说视频一区二区| 日韩福利电影在线观看| 亚洲乱码中文字幕综合| 久久亚洲一区二区三区四区| 欧美日韩免费一区二区三区| 91免费视频观看| 成人免费视频播放| 国产精品一二三区在线| 久久97超碰色| 奇米精品一区二区三区在线观看 | 视频在线观看一区二区三区| 综合电影一区二区三区| 国产一区二区三区四区在线观看| 亚洲精品一区二区三区99| 国产成人高清视频| 亚洲激情图片小说视频| 欧美日韩国产在线观看| 免费精品99久久国产综合精品| 日韩欧美亚洲一区二区| 狠狠色丁香婷婷综合久久片| 精品国产1区二区| 91精品综合久久久久久| 欧美日韩国产中文| 欧美日韩高清在线播放| 91网站在线播放| 久久99国产精品免费| 国产不卡视频一区二区三区| 久久精品国产网站| 奇米四色…亚洲| 久久成人免费网| 国产真实乱偷精品视频免| 久久99精品国产麻豆不卡| 久久精品国产99国产精品| 久久99精品国产麻豆婷婷| 激情六月婷婷久久| 国产美女主播视频一区| 成人高清免费观看| av电影在线观看不卡| 91搞黄在线观看| 3d成人动漫网站| 亚洲精品在线观| 国产精品日日摸夜夜摸av| 亚洲图片激情小说| 亚洲第一av色| 韩国三级中文字幕hd久久精品| 国产真实乱偷精品视频免| 成人禁用看黄a在线| 日韩欧美一二区| 久久久精品黄色| 国产精品电影一区二区三区| 亚洲中国最大av网站| 日韩电影在线免费观看| 国产一区二区不卡| 99精品偷自拍| 欧美一级欧美三级在线观看| 精品国产一区久久| 国产精品久久久久影院色老大 | 午夜精品一区二区三区电影天堂| 偷窥少妇高潮呻吟av久久免费| 蜜桃久久精品一区二区| 成人午夜av影视| 欧美少妇bbb| 国产亚洲综合性久久久影院| 亚洲天天做日日做天天谢日日欢| 午夜精品福利久久久| 国产一区视频网站| 欧美性色欧美a在线播放| www激情久久| 亚洲国产精品久久久久婷婷884 | 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 亚洲欧美另类在线| 免费成人美女在线观看.| 大陆成人av片| 欧美精品一二三四| 国产精品女主播在线观看| 日韩av电影天堂| 91日韩精品一区| 久久先锋影音av鲁色资源网| 亚洲一区二区成人在线观看| 国产另类ts人妖一区二区| 欧美日韩亚洲综合在线| 国产欧美日韩综合精品一区二区| 日韩主播视频在线| 色哟哟日韩精品| 国产精品人妖ts系列视频| 麻豆国产一区二区| 欧美日韩久久不卡| 亚洲嫩草精品久久| 国产成人av网站| 日韩精品一区国产麻豆| 亚洲一区电影777| 不卡的电视剧免费网站有什么| 欧美电影精品一区二区| 日韩中文字幕1| 欧美视频一区二区三区在线观看| 中国色在线观看另类| 国产精品综合久久| 欧美电影精品一区二区| 日本免费新一区视频| 欧美视频一区二区三区在线观看| 1024成人网| 成人动漫在线一区| 国产亚洲成aⅴ人片在线观看| 精品在线播放午夜| 精品日产卡一卡二卡麻豆| 男男gaygay亚洲| 91精品国产91综合久久蜜臀| 丝袜亚洲另类丝袜在线| 欧美肥妇毛茸茸| 日本美女视频一区二区| 69久久99精品久久久久婷婷| 日日夜夜精品视频天天综合网| 欧美日本乱大交xxxxx|