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

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

?? messagebox.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
字號:
/******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html *  * Contributors: *     IBM Corporation - initial API and implementation *******************************************************************************/package org.eclipse.swt.widgets;import org.eclipse.swt.internal.win32.*;import org.eclipse.swt.*;/** * Instances of this class are used used to inform or warn the user. * <dl> * <dt><b>Styles:</b></dt> * <dd>ICON_ERROR, ICON_INFORMATION, ICON_QUESTION, ICON_WARNING, ICON_WORKING</dd> * <dd>OK, OK | CANCEL</dd> * <dd>YES | NO, YES | NO | CANCEL</dd> * <dd>RETRY | CANCEL</dd> * <dd>ABORT | RETRY | IGNORE</dd> * <dt><b>Events:</b></dt> * <dd>(none)</dd> * </dl> * <p> * Note: Only one of the styles ICON_ERROR, ICON_INFORMATION, ICON_QUESTION, * ICON_WARNING and ICON_WORKING may be specified. * </p><p> * IMPORTANT: This class is intended to be subclassed <em>only</em> * within the SWT implementation. * </p> */public  class MessageBox extends Dialog {	String message = "";	/** * Constructs a new instance of this class given only its parent. * * @param parent a shell which will be the parent of the new instance * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the parent is null</li> * </ul> * @exception SWTException <ul> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li> *    <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li> * </ul> */public MessageBox (Shell parent) {	this (parent, SWT.OK | SWT.ICON_INFORMATION | SWT.APPLICATION_MODAL);}/** * Constructs a new instance of this class given its parent * and a style value describing its behavior and appearance. * <p> * The style value is either one of the style constants defined in * class <code>SWT</code> which is applicable to instances of this * class, or must be built by <em>bitwise OR</em>'ing together  * (that is, using the <code>int</code> "|" operator) two or more * of those <code>SWT</code> style constants. The class description * lists the style constants that are applicable to the class. * Style bits are also inherited from superclasses. * * @param parent a shell which will be the parent of the new instance * @param style the style of dialog to construct * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the parent is null</li> * </ul> * @exception SWTException <ul> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li> *    <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li> * </ul> */public MessageBox (Shell parent, int style) {	super (parent, checkStyle (style));	checkSubclass ();}static int checkStyle (int style) {	if ((style & (SWT.PRIMARY_MODAL | SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL)) == 0) style |= SWT.APPLICATION_MODAL;	int mask = (SWT.YES | SWT.NO | SWT.OK | SWT.CANCEL | SWT.ABORT | SWT.RETRY | SWT.IGNORE);	int bits = style & mask;	if (bits == SWT.OK || bits == SWT.CANCEL || bits == (SWT.OK | SWT.CANCEL)) return style;	if (bits == SWT.YES || bits == SWT.NO || bits == (SWT.YES | SWT.NO) || bits == (SWT.YES | SWT.NO | SWT.CANCEL)) return style;	if (bits == (SWT.RETRY | SWT.CANCEL) || bits == (SWT.ABORT | SWT.RETRY | SWT.IGNORE)) return style;	style = (style & ~mask) | SWT.OK;	return style;}/** * Returns the dialog's message, which is a description of * the purpose for which it was opened. This message will be * visible on the dialog while it is open. * * @return the message */public String getMessage () {	return message;}/** * Makes the dialog visible and brings it to the front * of the display. * * @return the ID of the button that was selected to dismiss the *         message box (e.g. SWT.OK, SWT.CANCEL, etc...) * * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the dialog has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the dialog</li> * </ul> */public int open () {	/* Compute the MessageBox style */	int buttonBits = 0;	if ((style & SWT.OK) == SWT.OK) buttonBits = OS.MB_OK;	if ((style & (SWT.OK | SWT.CANCEL)) == (SWT.OK | SWT.CANCEL)) buttonBits = OS.MB_OKCANCEL;	if ((style & (SWT.YES | SWT.NO)) == (SWT.YES | SWT.NO)) buttonBits = OS.MB_YESNO;	if ((style & (SWT.YES | SWT.NO | SWT.CANCEL)) == (SWT.YES | SWT.NO | SWT.CANCEL)) buttonBits = OS.MB_YESNOCANCEL;	if ((style & (SWT.RETRY | SWT.CANCEL)) == (SWT.RETRY | SWT.CANCEL)) buttonBits = OS.MB_RETRYCANCEL;	if ((style & (SWT.ABORT | SWT.RETRY | SWT.IGNORE)) == (SWT.ABORT | SWT.RETRY | SWT.IGNORE)) buttonBits = OS.MB_ABORTRETRYIGNORE;	if (buttonBits == 0) buttonBits = OS.MB_OK;	int iconBits = 0;	if ((style & SWT.ICON_ERROR) != 0) iconBits = OS.MB_ICONERROR;	if ((style & SWT.ICON_INFORMATION) != 0) iconBits = OS.MB_ICONINFORMATION;	if ((style & SWT.ICON_QUESTION) != 0) iconBits = OS.MB_ICONQUESTION;	if ((style & SWT.ICON_WARNING) != 0) iconBits = OS.MB_ICONWARNING;	if ((style & SWT.ICON_WORKING) != 0) iconBits = OS.MB_ICONINFORMATION;	/* Only MB_APPLMODAL is supported on WinCE */	int modalBits = 0;	if (OS.IsWinCE) {		if ((style & (SWT.PRIMARY_MODAL | SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL)) != 0) {			modalBits = OS.MB_APPLMODAL;		}	} else {		if ((style & SWT.PRIMARY_MODAL) != 0) modalBits = OS.MB_APPLMODAL;		if ((style & SWT.APPLICATION_MODAL) != 0) modalBits = OS.MB_TASKMODAL;		if ((style & SWT.SYSTEM_MODAL) != 0) modalBits = OS.MB_SYSTEMMODAL;	}	int bits = buttonBits | iconBits | modalBits;	if ((style & SWT.RIGHT_TO_LEFT) != 0) bits |= OS.MB_RTLREADING;	if ((style & (SWT.LEFT_TO_RIGHT | SWT.RIGHT_TO_LEFT)) == 0) {		if (parent != null && (parent.style & SWT.MIRRORED) != 0) {			bits |= OS.MB_RTLREADING;		}	}		/*	* Feature in Windows.  System modal is not supported	* on Windows 95 and NT.  The fix is to convert system	* modal to task modal.	*/	if ((bits & OS.MB_SYSTEMMODAL) != 0) {		bits |= OS.MB_TASKMODAL;		bits &= ~OS.MB_SYSTEMMODAL;	}	/*	* Feature in Windows.  In order for MB_TASKMODAL to work,	* the parent HWND of the MessageBox () call must be NULL.	* If the parent is not NULL, MB_TASKMODAL behaves the	* same as MB_APPLMODAL.  The fix to set the parent HWND	* anyway and not rely on MB_MODAL to work by making the	* parent be temporarily modal. 	*/	int hwndOwner = parent != null ? parent.handle : 0;	Shell oldModal = null;	Display display = null;	if ((bits & OS.MB_TASKMODAL) != 0) {		display = parent.getDisplay ();		oldModal = display.getModalDialogShell ();		display.setModalDialogShell (parent);	}	/* Open the message box */	/* Use the character encoding for the default locale */	TCHAR buffer1 = new TCHAR (0, message, true);	TCHAR buffer2 = new TCHAR (0, title, true);	int code = OS.MessageBox (hwndOwner, buffer1, buffer2, bits);		/* Clear the temporarily dialog modal parent */	if ((bits & OS.MB_TASKMODAL) != 0) {		display.setModalDialogShell (oldModal);	}		/*	* This code is intentionally commented.  On some	* platforms, the owner window is repainted right	* away when a dialog window exits.  This behavior	* is currently unspecified.	*///	if (hwndOwner != 0) OS.UpdateWindow (hwndOwner);		/* Compute and return the result */	if (code != 0) {		int type = bits & 0x0F;		if (type == OS.MB_OK) return SWT.OK;		if (type == OS.MB_OKCANCEL) {			return (code == OS.IDOK) ? SWT.OK : SWT.CANCEL;		}		if (type == OS.MB_YESNO) {			return (code == OS.IDYES) ? SWT.YES : SWT.NO;		}		if (type == OS.MB_YESNOCANCEL) {			if (code == OS.IDYES) return SWT.YES;			if (code == OS.IDNO) return SWT.NO;			return SWT.CANCEL;		}		if (type == OS.MB_RETRYCANCEL) {			return (code == OS.IDRETRY) ? SWT.RETRY : SWT.CANCEL;		}		if (type == OS.MB_ABORTRETRYIGNORE) {			if (code == OS.IDRETRY) return SWT.RETRY;			if (code == OS.IDABORT) return SWT.ABORT;			return SWT.IGNORE;		}	}	return SWT.CANCEL;}/** * Sets the dialog's message, which is a description of * the purpose for which it was opened. This message will be * visible on the dialog while it is open. * * @param string the message *  * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the string is null</li> * </ul> */public void setMessage (String string) {	if (string == null) error (SWT.ERROR_NULL_ARGUMENT);	message = string;}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本不卡免费在线视频| 884aa四虎影成人精品一区| 色狠狠一区二区| 日韩欧美中文字幕一区| 欧美高清在线一区| 天天操天天干天天综合网| 国产福利视频一区二区三区| 欧美视频一二三区| 国产精品萝li| 麻豆久久久久久| 91久久免费观看| 久久蜜臀中文字幕| 亚洲国产精品一区二区久久| 成人国产视频在线观看| 日韩精品一区二区在线| 亚洲永久精品国产| av在线这里只有精品| 国产欧美一区二区精品秋霞影院| 日日夜夜精品免费视频| 欧美午夜精品理论片a级按摩| 欧美国产精品中文字幕| 久久69国产一区二区蜜臀| 欧美日韩亚洲综合| 一区二区在线观看免费视频播放| 粉嫩av一区二区三区粉嫩| 精品999久久久| 麻豆精品视频在线| 欧美一区二区福利视频| 日韩高清中文字幕一区| 欧美色国产精品| 一区二区三区在线观看动漫 | 亚洲三级理论片| 国产精品91一区二区| 精品少妇一区二区三区免费观看| 亚洲第一av色| 欧美高清性hdvideosex| 偷拍亚洲欧洲综合| 制服视频三区第一页精品| 日本欧美在线看| 日韩一卡二卡三卡国产欧美| 日本午夜一区二区| 日韩欧美黄色影院| 老司机精品视频导航| 2021久久国产精品不只是精品| 久久精品国产色蜜蜜麻豆| 欧美精品一区二区三区久久久| 激情图区综合网| 久久精品视频免费观看| 高清国产一区二区| 亚洲视频小说图片| 欧美影视一区在线| 日韩精品欧美精品| 亚洲精品在线三区| 国v精品久久久网| 亚洲你懂的在线视频| 欧美精品久久一区| 精品在线一区二区| 国产精品久久久久一区二区三区共| 91网上在线视频| 亚洲成人第一页| 久久亚洲精品国产精品紫薇| 成人性视频免费网站| 一区二区在线免费| 日韩一区二区在线观看视频 | 亚洲一区二区欧美日韩 | 色悠悠亚洲一区二区| 亚洲精品成人精品456| 欧美一区二区三区四区五区| 国内精品视频一区二区三区八戒 | 欧美tickling挠脚心丨vk| 国产91精品一区二区| 亚洲日本欧美天堂| 日韩欧美一级在线播放| 成人高清免费观看| 日韩高清一区二区| 国产精品第一页第二页第三页| 欧美精品一级二级三级| 高清shemale亚洲人妖| 性做久久久久久| 中文字幕不卡在线播放| 欧美一区二区在线不卡| 91网页版在线| 国产美女精品一区二区三区| 亚洲大型综合色站| 国产精品传媒入口麻豆| 日韩精品综合一本久道在线视频| 99久久久免费精品国产一区二区| 麻豆精品在线观看| 亚洲成av人片在线观看| 亚洲欧美经典视频| 国产欧美一区二区精品性| 日韩欧美综合一区| 欧美日韩精品电影| av动漫一区二区| 国产精一区二区三区| 日韩精品乱码av一区二区| 成人欧美一区二区三区1314| 精品国产一二三| 777午夜精品免费视频| 99国产精品久| 成人免费毛片a| 国产一区二区三区黄视频| 日韩电影在线观看一区| 亚洲国产一区二区视频| 国产精品久久久久久久久动漫 | 欧洲色大大久久| 97国产精品videossex| 国产成人aaa| 国产米奇在线777精品观看| 秋霞国产午夜精品免费视频| 午夜精品久久久久久久| 一区二区三区小说| 一区二区三区欧美日韩| 自拍av一区二区三区| 国产精品久久免费看| 国产精品美女久久久久久久久 | 国内一区二区在线| 精品一区二区三区在线视频| 青青草视频一区| 秋霞午夜av一区二区三区| 日日夜夜精品视频免费| 奇米色一区二区| 精品一区二区三区av| 国产成人av网站| 国产福利精品一区二区| www.欧美日韩| 99国产欧美久久久精品| 色婷婷综合久久久久中文一区二区 | 欧美视频在线观看一区二区| 日本韩国欧美一区| 欧美日韩1234| 91精品国产aⅴ一区二区| 日韩欧美黄色影院| 国产亚洲一区二区在线观看| 国产精品免费看片| 亚洲已满18点击进入久久| 天堂久久久久va久久久久| 男人操女人的视频在线观看欧美| 激情都市一区二区| 成人午夜电影网站| 色婷婷精品大在线视频| 欧美乱妇20p| 精品国产露脸精彩对白| 国产精品久久影院| 午夜久久电影网| 精品无人码麻豆乱码1区2区| 成人黄色综合网站| 欧美撒尿777hd撒尿| 欧美不卡一区二区| 中文字幕成人av| 午夜精品久久久久久不卡8050| 久久国产成人午夜av影院| 成人小视频免费观看| 欧美人妖巨大在线| 久久精品视频在线看| 亚洲福利一二三区| 国内精品伊人久久久久av影院 | 国产电影一区在线| 欧美无砖砖区免费| 久久精品人人做人人爽人人| 亚洲乱码中文字幕| 麻豆国产精品一区二区三区| 99精品一区二区三区| 日韩免费高清视频| 一区二区三区在线免费播放| 国产麻豆精品在线观看| 欧美老肥妇做.爰bbww视频| 国产人久久人人人人爽| 婷婷开心激情综合| 丰满少妇久久久久久久| 欧美一区二区三区四区五区 | 视频一区二区欧美| av中文字幕不卡| 久久久综合网站| 日本特黄久久久高潮| 99国内精品久久| 国产色综合久久| 蜜桃视频在线观看一区| 91免费在线播放| 久久蜜桃一区二区| 美女视频黄频大全不卡视频在线播放| 95精品视频在线| 欧美国产1区2区| 国产精品系列在线观看| 欧美一区欧美二区| 亚洲成人av一区二区三区| 91网站在线观看视频| 国产精品久久毛片| 国产美女av一区二区三区| 精品久久久久久久久久久久久久久久久 | 精品美女一区二区三区| 日本伊人精品一区二区三区观看方式| 91麻豆视频网站| 国产精品成人一区二区三区夜夜夜 | 色八戒一区二区三区| 亚洲欧洲一区二区在线播放| zzijzzij亚洲日本少妇熟睡| 欧美激情艳妇裸体舞| 成人精品小蝌蚪| 国产欧美视频在线观看|