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

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

?? alert.java

?? 有關(guān)j2me的很好的例子可以研究一下
?? JAVA
?? 第 1 頁 / 共 2 頁
字號(hào):
/* * @(#)Alert.java	1.59 01/08/10 * Copyright (c) 1999-2001 Sun Microsystems, Inc. All Rights Reserved. * * This software is the confidential and proprietary information of Sun * Microsystems, Inc. ("Confidential Information").  You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with Sun. * * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING * THIS SOFTWARE OR ITS DERIVATIVES. */package javax.microedition.lcdui;import com.sun.midp.lcdui.Resource;/** * <P>An alert is a screen that shows data to the user and waits for a certain * period of time before proceeding to the next screen. An alert is an * ordinary screen that can contain text (String) and image, * and which handles events like other screens. </P> * * <P>The intended use of Alert is to inform the user about errors and other * exceptional conditions.</P> * * <P>The application can set the alert time to be infinity with * <code> setTimeout(Alert.FOREVER)</code> * in which case the Alert is considered to be <em>modal</em> and * the implementation provide a feature that allows the * user to "dismiss" the alert, whereupon the next screen * is displayed as if the timeout had expired immediately.</P> * * <P>If an application specifies an alert to be of a * timed variety <em>and</em> gives it too much content such that it must * scroll, * then it automatically becomes a modal alert.</P> * * <P> An alert may have an <code>AlertType</code> associated with it * to provide an indication of the nature of the alert. * The implementation may use this type to play an * appropriate sound when the Alert is presented to the user. * See {@link AlertType#playSound(javax.microedition.lcdui.Display) * AlertType.playSound()}. * * <P>Alerts do not accept application-defined commands. * </P> * * <p> If the Alert is visible on the display when changes to its contents are * requested by the application, the changes take place automatically. That is, * applications need not take any special action to refresh a Alert's display * after its contents have been modified. </p> * * @see AlertType */public class Alert extends Screen {    /**     * <P>FOREVER indicates that an Alert is kept visible until the user     * dismisses it.  It is used as a value for the parameter to     * {@link #setTimeout(int) setTimeout()}     * to indicate that the alert is modal.  Instead of waiting for a      * specified period of time, a modal Alert will wait for the user to take      * some explicit action, such as pressing a button, before proceeding to      * the next screen.</P>     *     * <P>Value -2 is assigned to FOREVER.</P>     */    public final static int FOREVER = -2;        /**     * <p>Constructs a new, empty Alert object with the given title. If null is     * passed, the Alert will have no title.  Calling this constructor is      * equivalent to calling</p>     *     * <pre>     *    Alert(title, null, null, null)     * </pre>     *     * @param title the title string, or null     *      * @see #Alert(String, String, Image, AlertType)     */    public Alert(String title) {        this(title, null, null, null);    }    /**     * <p>Constructs a new Alert object with the given title, content     * string and image, and alert type.     * The layout of the contents is implementation dependent.      * The timeout value of this new alert is the same value that is     * returned by getDefaultTimeout().     * If an image is provided it must be immutable.     * The handling and behavior of specific AlertTypes is described in     * {@link AlertType}.  Null is allowed as the value of the alertType     * parameter and indicates that the Alert is not to have a specific alert      * type. </p>     *      * @param title the title string, or null if there is no title     * @param alertText the string contents, or null if there is no string     * @param alertImage the image contents, or null if there is no image     * @param alertType the type of the Alert, or null if the Alert has no      * specific type     * @throws IllegalArgumentException if the image is mutable     */    public Alert(String title, String alertText,                 Image alertImage, AlertType alertType) {        super(title);        time = DEFAULT_TIMEOUT;        setImageImpl(alertImage);        setStringImpl(alertText);        this.type = alertType;        // in order to have an accurate alert time, the screen        // has to have an opportunity to lay itself out.	    doLayout();    }    /**     * <p>Gets the default time for showing an Alert.  This is either a     * positive value, which indicates a time in milliseconds, or the special     * value FOREVER, which indicates that Alerts are modal by default.  The     * value returned will vary across implementations and is presumably     * tailored to be suitable for each.</p>     *     * @return default timeout in milliseconds, or FOREVER     */    public int getDefaultTimeout() {        synchronized (Display.LCDUILock) {            return (alertHeight > viewPortHeight) ? FOREVER : DEFAULT_TIMEOUT;        }    }    /**     * <p>Gets the time this Alert will be shown.  This is either a positive     * value, which indicates a time in milliseconds, or the special value     * FOREVER, which indicates that this Alert is modal.</p>     *     * @return timeout in milliseconds, or FOREVER     * @see #setTimeout     */    public int getTimeout() {        synchronized (Display.LCDUILock) {            return (alertHeight > viewPortHeight) ? FOREVER : time;        }    }    /**     * <p>Set the time for which the Alert is to be shown.  This must either     * be a positive time value in milliseconds, or the special value FOREVER.     * </p>     *      * @param time timeout in milliseconds, or FOREVER     * @throws IllegalArgumentException if time is not positive and is     * not FOREVER     * @see #getTimeout     */    public void setTimeout(int time) {        if (time <= 0 && time != FOREVER) {            throw new IllegalArgumentException();        }        synchronized (Display.LCDUILock) {            this.time = time;        }    }    /**     * Gets the type of the Alert.     * @return a reference to an instance of AlertType, or null if the Alert      * has no specific type     * @see #setType     */    public AlertType getType() {        // SYNC NOTE: return of atomic value, no locking necessary        return type;    }    /**     * Sets the type of the Alert.     * The handling and behavior of specific AlertTypes is described in     * {@link AlertType}.     * @param type an AlertType, or <code>null</code> if the Alert has no     * specific type     * @see #getType     */    public void setType(AlertType type) {        synchronized (Display.LCDUILock) {            this.type = type;        }    }    /**     * Gets the text string used in the Alert.     * @return the Alert's text string, or null if there is no text     * @see #setString     */    public String getString() {        synchronized (Display.LCDUILock) {            return getStringImpl();        }    }    /**     * <p> Sets the text string used in the Alert.     * @param str the Alert's text string, or null if there is no text     * @see #getString     */    public void setString(String str) {        synchronized (Display.LCDUILock) {            setStringImpl(str);        }    }    /**     * Gets the Image used in the Alert.     * @return the Alert's image, or null if there is no image     * @see #setImage     */    public Image getImage() {        // SYNC NOTE: return of atomic value, no locking necessary        return alertImage;    }    /**     * <p> Sets the Image used in the Alert.     * @param img the Alert's image, or null if there is no image     * @throws IllegalArgumentException if img is mutable     * @see #getImage     */    public void setImage(Image img) {        synchronized (Display.LCDUILock) {            setImageImpl(img);        }    }    /**     * Commands are not allowed on Alerts, so this method will always throw     * IllegalStateException whenever it is called.     *

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美视频一二三区| 日韩欧美一区二区视频| 日韩激情一二三区| 国产亚洲视频系列| 欧美巨大另类极品videosbest | 日日夜夜一区二区| 国产精品污污网站在线观看| 91精品国产欧美一区二区成人| 国产成人8x视频一区二区| 午夜成人在线视频| 综合激情成人伊人| 久久久精品天堂| 3d动漫精品啪啪一区二区竹菊| av资源网一区| 国产91清纯白嫩初高中在线观看| 婷婷夜色潮精品综合在线| 亚洲视频电影在线| 国产欧美日韩久久| 精品电影一区二区| 欧美大片日本大片免费观看| 在线观看免费成人| 色婷婷久久综合| www.在线欧美| 成人精品一区二区三区中文字幕| 韩国av一区二区三区在线观看| 国产最新精品精品你懂的| 天堂成人免费av电影一区| 一区二区三区在线免费视频| 国产精品成人免费| 国产精品久久久久久久久久久免费看| 欧美大片日本大片免费观看| 4438x成人网最大色成网站| 在线免费观看日韩欧美| 91丨porny丨最新| 成人av在线网| 99精品黄色片免费大全| 不卡一卡二卡三乱码免费网站| 国产综合色在线视频区| 国产一区欧美二区| 国产精品一区二区久久不卡| 激情图片小说一区| 国产精品亚洲成人| 成人免费的视频| 成人av在线观| 一本到不卡精品视频在线观看| 91网址在线看| 欧美三级在线看| 欧美日韩激情一区| 欧美一区二区成人| xvideos.蜜桃一区二区| 国产日韩v精品一区二区| 国产精品视频观看| 亚洲日本va午夜在线影院| 亚洲你懂的在线视频| 一区二区三区四区国产精品| 亚洲第一激情av| 美女一区二区三区| 懂色av中文一区二区三区| a在线欧美一区| 91国模大尺度私拍在线视频| 欧美日韩国产小视频| 欧美videofree性高清杂交| 久久久电影一区二区三区| 中文字幕av一区二区三区高| ●精品国产综合乱码久久久久| 亚洲亚洲人成综合网络| 免费成人av资源网| 国产91综合网| 欧美在线观看一区二区| 欧美大片日本大片免费观看| 欧美高清在线一区二区| 亚洲国产精品久久久久婷婷884| 日本亚洲视频在线| 成人激情免费视频| 欧美精品久久99| 久久久久久久网| 亚洲永久精品大片| 韩国三级中文字幕hd久久精品| 成人精品一区二区三区四区| 欧美无砖专区一中文字| 久久久五月婷婷| 一级日本不卡的影视| 激情综合色综合久久| 91麻豆免费观看| 精品国产麻豆免费人成网站| 亚洲三级小视频| 激情偷乱视频一区二区三区| 在线一区二区三区| 久久久电影一区二区三区| 亚洲成人av资源| 国产v综合v亚洲欧| 日韩手机在线导航| 亚洲欧美经典视频| 国产一区二区视频在线播放| 欧美在线观看一二区| 国产日韩欧美一区二区三区综合| 亚洲v中文字幕| 成人福利视频网站| 精品久久五月天| 丝袜亚洲另类欧美综合| av电影一区二区| 精品国产乱码久久久久久图片 | 亚洲在线成人精品| 国产xxx精品视频大全| 日韩欧美二区三区| 亚洲一区国产视频| 99国产精品久久久久| 久久欧美一区二区| 日本欧美加勒比视频| 日本乱人伦一区| 中文字幕成人网| 国产美女久久久久| 欧美一区二区日韩一区二区| 亚洲蜜臀av乱码久久精品| 国产成人av自拍| 久久只精品国产| 久久精品国产亚洲5555| 欧美日韩不卡视频| 亚洲国产精品一区二区www在线| 成人ar影院免费观看视频| 久久久精品国产99久久精品芒果| 日本不卡123| 9191成人精品久久| 亚洲福利一区二区| 欧美亚洲动漫精品| 亚洲一级二级在线| 欧美午夜宅男影院| 亚洲午夜日本在线观看| 欧美午夜不卡在线观看免费| 亚洲精品中文在线影院| 色综合天天做天天爱| 亚洲欧美日韩国产综合在线| 99在线精品观看| 亚洲人成在线观看一区二区| 99久久伊人精品| 国产精品久久久久久久浪潮网站 | 精品婷婷伊人一区三区三| 一区二区三区产品免费精品久久75| 成人97人人超碰人人99| 国产精品麻豆欧美日韩ww| 成人sese在线| 亚洲欧美激情小说另类| 在线精品视频免费播放| 亚洲国产一二三| 欧美精品在线观看一区二区| 午夜av电影一区| 日韩一区二区三区视频| 国产主播一区二区三区| 国产夜色精品一区二区av| 成人深夜在线观看| 亚洲欧美日韩电影| 欧美日韩国产小视频在线观看| 日本特黄久久久高潮| 日韩一区二区三区四区 | 日韩国产高清影视| 日韩一区二区三区高清免费看看| 久久se这里有精品| 国产日韩影视精品| 91在线无精精品入口| 亚洲国产wwwccc36天堂| 欧美一二三四在线| 国产精品77777| 一区二区中文字幕在线| 欧美视频在线一区| 久久99久久久欧美国产| 国产精品国产三级国产专播品爱网 | 粉嫩av一区二区三区粉嫩| 国产欧美日韩另类一区| 色综合久久中文综合久久牛| 亚瑟在线精品视频| 精品av久久707| 一本色道亚洲精品aⅴ| 免费成人在线观看视频| 亚洲国产电影在线观看| 欧美色精品天天在线观看视频| 奇米精品一区二区三区在线观看| 国产欧美日韩亚州综合| 欧美日韩国产另类不卡| 国产精品一区二区果冻传媒| 亚洲综合视频在线观看| wwww国产精品欧美| 色先锋资源久久综合| 狠狠色综合日日| 亚洲午夜精品网| 亚洲国产高清aⅴ视频| 欧美猛男男办公室激情| 成人黄色片在线观看| 视频在线观看91| 亚洲欧洲另类国产综合| 日韩欧美国产高清| 色欧美88888久久久久久影院| 精品一区二区三区影院在线午夜| 亚洲日本免费电影| 久久精品无码一区二区三区 | 日韩欧美一级二级三级| 一本久久a久久免费精品不卡| 国产一区中文字幕| 日韩国产在线观看一区| 亚洲靠逼com| 国产女主播一区|