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

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

?? screenmanager.java

?? 開發j2me 手機程序必須的用到的。文件較小
?? JAVA
字號:
package com.jmobilecore.ui.core;

import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;
import java.util.Stack;

/**
 * This class provides access to the MIDlet's environment
 * and supports navigation among the screens.
 *
 * @author Greg Gridin
 */
public class ScreenManager {

    /**
     * A stack of the path to the currently-displayed screen.
     */
    protected static Stack screens = new Stack();

    /**
     * Current midlet
     * @see #setMIDlet
     */
    protected static MIDlet application = null;

    /**
     *  Reference to Display object that is unique to this MIDlet
     *  @see #setMIDlet
     */
    protected static Display display = null;

    /**
     * Sets the current MIDlet.  If a MIDlet calls this method then environmental
     * information which can only be accessed via the MIDlet object, such as the
     * {@link javax.microedition.lcdui.Display javax.microedition.lcdui.Display},
     * will be accessible to other objects via this class.
     *
     * @param midlet The midlet
     */
    public static void setMIDlet(MIDlet midlet) {
      application = midlet;
      display = Display.getDisplay(midlet);
    }

    /**
     * Returns the current MIDlet.
     *
     * @return The current MIDlet if {@link #setMIDlet} was previously
     * called, else <code>null</code>.
     */
    public static MIDlet getMIDlet() {
      return application;
    }

    /**
     * Gets the Display object associated with the midlet.  This may allow another
     * object, such as an {@link Component Component}, to use
     * environment information which is accessible only via a MIDlet object.  For
     * example, the following code in
     {@link #beep beep} causes the handset to emit a beep.
     * <pre><code>
     * if ( ScreenManager.getDisplay() != null )
     *	AlertType.WARNING.playSound( ScreenManager.getDisplay() );
     * </code></pre>
     *
     * @return The Display object for the MIDlet, or null if the MIDlet has not
     * previously called {@link #setMIDlet setMIDlet}
     */
    public static Display getDisplay() {
      return display;
    }

    /**
     * Causes the handset to emit a beep if {@link #setMIDlet setMIDlet} has
     * been previously called.
     */
    public static void beep(AlertType alert) {
      if (display != null)
        alert.playSound(display);
    }

    /**
     * Display a new screen, and the new screen supports going back to the
     * previous screen.
     *
     * @param newScreen The new screen to display
     */
    public static void goForward(Displayable newScreen) {
        screens.push(newScreen);
        getDisplay().setCurrent(newScreen);
    }

    /**
     * Replaces the currently displayed screen to the new displayed screen.
     *
     * @param newScreen The new replacement screen to display
     */
    public static void replaceScreen(Displayable newScreen) {
        if (!screens.empty()) screens.pop();
        screens.push(newScreen);
        getDisplay().setCurrent(newScreen);
    }

    /**
     * Makes the previously displayed screen the currently displayed screen.
     */
    public static void goBack() {
        if (!screens.empty()) {
            screens.pop();
            if (!screens.empty()) {
                getDisplay().setCurrent((Displayable) screens.peek());
            }
        }
    }

    /**
     * Gets the current screen (the screen at the top of the stack).
     *
     * @return the current screen as <code>Displayable</code> object
     */
    public static Displayable getCurrentScreen() {
        Displayable current = null;
        if (!screens.empty()) {
            current = (Displayable) screens.peek();
        }
        return current;
    }

    /**
     * Goes back to the first (home) screen.
     */
    public static void goHome() {
        Displayable home = null;
        while (!screens.empty()) {
            home = (Displayable) screens.pop();
        }
        getDisplay().setCurrent(home);
        screens.push(home);
    }

    /**
     * Shows alert message and backs to current scrren
     *
     * @param title The title for alert screen
     * @param text The alert message
     * @param delay How long the alert will be displayed, If delay is <code>Alert.FOREVER</code> then
     * alert will be visible until user dismisses it
     * @param type The alert type
     * @see javax.microedition.lcdui.Alert
     */
    public static void showAlert(String title, String text, int delay, AlertType type) {
        showAlert(title, text, delay, type, getCurrentScreen());
    }

    /**
     * Shows alert message and moves to specified scrren
     *
     * @param title The title for alert screen
     * @param text The alert message
     * @param delay How long the alert will be displayed, If delay is <code>Alert.FOREVER</code> then
     * alert will be visible until user dismisses it
     * @param type The alert type
     * @param next The next screen
     * @see javax.microedition.lcdui.Alert
     */
    public static void showAlert(String title, String text, int delay, AlertType type, Displayable next) {
        Alert currentAlert = new Alert(title);
        currentAlert.setTimeout(delay);
        currentAlert.setString(text);
        currentAlert.setType(type);

        display.setCurrent(currentAlert, next);
    }

    /**
     * Resets screen stack
     */
    public static void resetScreens() {
        screens.removeAllElements();
    }

    /**
     * Default destructor. Helps VM to perform garbage collection
     */
    public static void destructor() {
        screens.removeAllElements();
        screens = null;
        display = null;
        application = null;
    }

} // class ScreenManager

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
不卡一区二区在线| 一级做a爱片久久| 国内精品免费在线观看| 欧美一区欧美二区| 亚洲欧美激情插| 色哟哟亚洲精品| 久久se这里有精品| 欧美日韩国产美| 亚洲综合成人在线| 九九精品一区二区| 欧美亚洲综合一区| 在线观看欧美日本| 久久久亚洲精品一区二区三区| 日本一区二区视频在线| 久久国产精品免费| 色综合天天狠狠| 91麻豆自制传媒国产之光| 色狠狠色噜噜噜综合网| 欧美一区二区在线免费观看| 欧美成人精品3d动漫h| 日韩欧美另类在线| 日本人妖一区二区| 国产欧美日韩麻豆91| 另类中文字幕网| 8v天堂国产在线一区二区| 狠狠狠色丁香婷婷综合激情| 中文字幕一区二区三区四区| 欧美日韩视频在线观看一区二区三区 | 美女一区二区三区| 国产日本亚洲高清| 欧洲在线/亚洲| 国产一区欧美二区| 午夜影视日本亚洲欧洲精品| 欧美精品一区二区三| 欧美亚洲一区三区| 大尺度一区二区| 免费成人小视频| 亚洲精品videosex极品| 久久夜色精品一区| 欧美日韩成人综合天天影院 | 精品一区二区三区蜜桃| 亚洲大尺度视频在线观看| 91视频免费观看| 久久不见久久见免费视频7| 亚洲欧美另类久久久精品| 精品国产欧美一区二区| 欧美午夜精品电影| 99视频超级精品| 国产精一品亚洲二区在线视频| 亚洲国产精品欧美一二99| 欧美国产日韩精品免费观看| 日韩一区二区三区在线视频| 欧美综合天天夜夜久久| 国产呦精品一区二区三区网站| 亚洲电影第三页| 亚洲女人的天堂| 中文字幕制服丝袜一区二区三区 | 成人丝袜18视频在线观看| 久久aⅴ国产欧美74aaa| 亚洲午夜久久久久久久久久久 | 国产真实乱子伦精品视频| 最近中文字幕一区二区三区| 国产午夜精品久久| 久久综合999| 欧美成人一区二区三区| 欧美一区二区三区四区视频| 欧美视频在线观看一区二区| 色婷婷av一区二区三区之一色屋| 风间由美一区二区av101 | 粉嫩欧美一区二区三区高清影视 | 激情六月婷婷久久| 日韩电影免费在线观看网站| 五月天视频一区| 午夜视频在线观看一区二区三区| 樱花草国产18久久久久| 尤物av一区二区| 亚洲一线二线三线视频| 亚洲一区二区视频| 一级女性全黄久久生活片免费| 中文字幕一区二区三区四区| 椎名由奈av一区二区三区| 日韩一区在线播放| 欧美激情一区二区三区蜜桃视频 | 成人伦理片在线| 国产黄色91视频| 国产成人亚洲综合a∨猫咪| 国产又粗又猛又爽又黄91精品| 国产精品18久久久久久久久| 国产91清纯白嫩初高中在线观看| 成人高清在线视频| 91麻豆swag| 欧美日韩精品专区| 日韩三级视频中文字幕| 久久女同精品一区二区| 国产视频911| 亚洲视频一区二区在线观看| 亚洲一区二区三区中文字幕在线| 天天av天天翘天天综合网| 蜜臂av日日欢夜夜爽一区| 国产九九视频一区二区三区| 成人av资源站| 欧美日韩一级黄| 亚洲精品一区在线观看| 国产精品国产a级| 婷婷开心久久网| 韩国理伦片一区二区三区在线播放| 国产一区二区91| 91捆绑美女网站| 911精品国产一区二区在线| 精品国产网站在线观看| 亚洲天堂中文字幕| 日韩精品欧美精品| 国产精品一区一区三区| 91麻豆国产福利精品| 欧美一区二区视频免费观看| 久久久久国产精品麻豆ai换脸| 亚洲欧美日本韩国| 国产自产高清不卡| 欧洲亚洲精品在线| 久久精品免费在线观看| 亚洲风情在线资源站| 国产高清一区日本| 欧美区一区二区三区| 最新欧美精品一区二区三区| 依依成人综合视频| 一本一本大道香蕉久在线精品 | 欧美日韩成人在线一区| 欧美性生活久久| 国产精品天美传媒| 午夜精品在线看| 日本丰满少妇一区二区三区| 日韩欧美国产一区二区三区| 亚洲美女一区二区三区| 欧美日韩和欧美的一区二区| 成人午夜碰碰视频| 在线观看一区二区视频| 久久久亚洲欧洲日产国码αv| 亚洲成av人综合在线观看| 国产99久久久国产精品免费看| 欧美精品日日鲁夜夜添| 最新不卡av在线| 国产成人av福利| 精品日韩99亚洲| 五月婷婷另类国产| 色菇凉天天综合网| 国产精品久久网站| 国产一区二区三区免费看| 88在线观看91蜜桃国自产| 一区二区在线免费| 99久久99久久精品国产片果冻| 精品1区2区在线观看| 奇米影视一区二区三区| 欧美在线视频不卡| 一区二区高清在线| 91网站在线播放| 中文字幕在线不卡一区二区三区| 国产主播一区二区| 日韩欧美亚洲国产精品字幕久久久| 亚洲已满18点击进入久久| 91视频国产观看| 亚洲欧美怡红院| 成人97人人超碰人人99| 中文字幕欧美日韩一区| 国产成人综合网站| 中文字幕不卡在线播放| 懂色一区二区三区免费观看| 久久久久综合网| 国产传媒一区在线| 国产精品久久久久久久久快鸭| 成人久久视频在线观看| 中文字幕不卡在线观看| jizz一区二区| 亚洲欧美日韩人成在线播放| 色综合视频一区二区三区高清| 一区二区三国产精华液| 欧美一a一片一级一片| 天堂成人国产精品一区| 日韩三级精品电影久久久 | 亚洲成人免费电影| 欧美日韩你懂得| 蜜臀久久99精品久久久画质超高清| 欧美一级片在线看| 国产一区二区剧情av在线| 国产日本亚洲高清| 91美女视频网站| 亚洲成a人片在线观看中文| 日韩区在线观看| 国产乱人伦偷精品视频免下载| 国产精品三级av| 欧美在线观看一区二区| 蜜臀久久久久久久| 国产色产综合色产在线视频| 91啪亚洲精品| 日韩国产一区二| 国产亚洲一区二区三区| 日本高清视频一区二区| 免费观看日韩av| 中文字幕一区二区三区乱码在线| 精品视频在线看| 国产精品一二三四|