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

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

?? display.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
 * @see #removeListener *  * @since 2.0  */public void addListener (int eventType, Listener listener) {	checkDevice ();	if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);	if (eventTable == null) eventTable = new EventTable ();	eventTable.hook (eventType, listener);}void addBar (Menu menu) {	if (bars == null) bars = new Menu [4];	int length = bars.length;	for (int i=0; i<length; i++) {		if (bars [i] == menu) return;	}	int index = 0;	while (index < length) {		if (bars [index] == null) break;		index++;	}	if (index == length) {		Menu [] newBars = new Menu [length + 4];		System.arraycopy (bars, 0, newBars, 0, length);		bars = newBars;	}	bars [index] = menu;}void addControl (int handle, Control control) {	if (handle == 0) return;	if (freeSlot == -1) {		int length = (freeSlot = indexTable.length) + GROW_SIZE;		int [] newIndexTable = new int [length];		Control [] newControlTable = new Control [length];		System.arraycopy (indexTable, 0, newIndexTable, 0, freeSlot);		System.arraycopy (controlTable, 0, newControlTable, 0, freeSlot);		for (int i=freeSlot; i<length-1; i++) newIndexTable [i] = i + 1;		newIndexTable [length - 1] = -1;		indexTable = newIndexTable;		controlTable = newControlTable;	}	OS.SetWindowLong (handle, OS.GWL_USERDATA, freeSlot + 1);	int oldSlot = freeSlot;	freeSlot = indexTable [oldSlot];	indexTable [oldSlot] = -2;	controlTable [oldSlot] = control;}void addMenuItem (MenuItem item) {	if (items == null) items = new MenuItem [64];	for (int i=0; i<items.length; i++) {		if (items [i] == null) {			item.id = i + ID_START;			items [i] = item;			return;		}	}	item.id = items.length + ID_START;	MenuItem [] newItems = new MenuItem [items.length + 64];	newItems [items.length] = item;	System.arraycopy (items, 0, newItems, 0, items.length);	items = newItems;}void addPopup (Menu menu) {	if (popups == null) popups = new Menu [4];	int length = popups.length;	for (int i=0; i<length; i++) {		if (popups [i] == menu) return;	}	int index = 0;	while (index < length) {		if (popups [index] == null) break;		index++;	}	if (index == length) {		Menu [] newPopups = new Menu [length + 4];		System.arraycopy (popups, 0, newPopups, 0, length);		popups = newPopups;	}	popups [index] = menu;}/** * Causes the <code>run()</code> method of the runnable to * be invoked by the user-interface thread at the next  * reasonable opportunity. The caller of this method continues  * to run in parallel, and is not notified when the * runnable has completed. * * @param runnable code to run on the user-interface thread. * * @exception SWTException <ul> *    <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li> * </ul> *  * @see #syncExec */public void asyncExec (Runnable runnable) {	if (isDisposed ()) error (SWT.ERROR_DEVICE_DISPOSED);	synchronizer.asyncExec (runnable);}/** * Causes the system hardware to emit a short sound * (if it supports this capability). *  * @exception SWTException <ul> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> *    <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li> * </ul> */public void beep () {	checkDevice ();	OS.MessageBeep (OS.MB_OK);}/** * Checks that this class can be subclassed. * <p> * IMPORTANT: See the comment in <code>Widget.checkSubclass()</code>. * </p> * * @exception SWTException <ul> *    <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li> * </ul> * * @see Widget#checkSubclass */protected void checkSubclass () {	if (!isValidClass (getClass ())) error (SWT.ERROR_INVALID_SUBCLASS);}protected void checkDevice () {	if (thread == null) error (SWT.ERROR_WIDGET_DISPOSED);	if (thread != Thread.currentThread ()) error (SWT.ERROR_THREAD_INVALID_ACCESS);	if (isDisposed ()) error (SWT.ERROR_DEVICE_DISPOSED);}static synchronized void checkDisplay (Thread thread) {	for (int i=0; i<Displays.length; i++) {		if (Displays [i] != null && Displays [i].thread == thread) {			SWT.error (SWT.ERROR_THREAD_INVALID_ACCESS);		}	}}void clearModal (Shell shell) {	if (modalShells == null) return;	int index = 0, length = modalShells.length;	while (index < length) {		if (modalShells [index] == shell) break;		if (modalShells [index] == null) return;		index++;	}	if (index == length) return;	System.arraycopy (modalShells, index + 1, modalShells, index, --length - index);	modalShells [length] = null;	if (index == 0 && modalShells [0] == null) modalShells = null;	Shell [] shells = getShells ();	for (int i=0; i<shells.length; i++) shells [i].updateModal ();}int controlKey (int key) {	int upper = OS.CharUpper ((short) key);	if (64 <= upper && upper <= 95) return upper & 0xBF;	return key;}/** * Requests that the connection between SWT and the underlying * operating system be closed. * * @exception SWTException <ul> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> *    <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li> * </ul> * * @see Device#dispose *  * @since 2.0 */public void close () {	checkDevice ();	Event event = new Event ();	sendEvent (SWT.Close, event);	if (event.doit) dispose ();}/** * Creates the device in the operating system.  If the device * does not have a handle, this method may do nothing depending * on the device. * <p> * This method is called before <code>init</code>. * </p> * * @param data the DeviceData which describes the receiver * * @see #init */protected void create (DeviceData data) {	checkSubclass ();	checkDisplay (thread = Thread.currentThread ());	createDisplay (data);	register (this);	if (Default == null) Default = this;}void createDisplay (DeviceData data) {}static synchronized void deregister (Display display) {	for (int i=0; i<Displays.length; i++) {		if (display == Displays [i]) Displays [i] = null;	}}/** * Destroys the device in the operating system and releases * the device's handle.  If the device does not have a handle, * this method may do nothing depending on the device. * <p> * This method is called after <code>release</code>. * </p> * @see #dispose * @see #release */protected void destroy () {	if (this == Default) Default = null;	deregister (this);	destroyDisplay ();}void destroyDisplay () {}/** * Causes the <code>run()</code> method of the runnable to * be invoked by the user-interface thread just before the * receiver is disposed. * * @param runnable code to run at dispose time. *  * @exception SWTException <ul> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> *    <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li> * </ul> */public void disposeExec (Runnable runnable) {	checkDevice ();	if (disposeList == null) disposeList = new Runnable [4];	for (int i=0; i<disposeList.length; i++) {		if (disposeList [i] == null) {			disposeList [i] = runnable;			return;		}	}	Runnable [] newDisposeList = new Runnable [disposeList.length + 4];	System.arraycopy (disposeList, 0, newDisposeList, 0, disposeList.length);	newDisposeList [disposeList.length] = runnable;	disposeList = newDisposeList;}void drawMenuBars () {	if (bars == null) return;	for (int i=0; i<bars.length; i++) {		Menu menu = bars [i];		if (menu != null && !menu.isDisposed ()) menu.update ();	}	bars = null;}int embeddedProc (int hwnd, int msg, int wParam, int lParam) {	switch (msg) {		case SWT_KEYMSG: {			MSG keyMsg = new MSG ();			OS.MoveMemory (keyMsg, lParam, MSG.sizeof);			OS.TranslateMessage (keyMsg);			OS.DispatchMessage (keyMsg);			int hHeap = OS.GetProcessHeap ();			OS.HeapFree (hHeap, 0, lParam);			break;		}		case SWT_DESTROY: {			OS.DestroyWindow (hwnd);			if (embeddedCallback != null) embeddedCallback.dispose ();			if (getMsgCallback != null) getMsgCallback.dispose ();			embeddedCallback = getMsgCallback = null;			embeddedProc = getMsgProc = 0;			break;		}		case SWT_RESIZE: {			int flags = OS.SWP_NOZORDER | OS.SWP_DRAWFRAME | OS.SWP_NOACTIVATE;			OS.SetWindowPos (wParam, 0, 0, 0, lParam & 0xFFFF, lParam >> 16, flags);			break;		}	}	return OS.DefWindowProc (hwnd, msg, wParam, lParam);}/** * Does whatever display specific cleanup is required, and then * uses the code in <code>SWTError.error</code> to handle the error. * * @param code the descriptive error code * * @see SWTError#error */void error (int code) {	SWT.error (code);}boolean filterEvent (Event event) {	if (filterTable != null) filterTable.sendEvent (event);	return false;}boolean filters (int eventType) {	if (filterTable == null) return false;	return filterTable.hooks (eventType);}boolean filterMessage (MSG msg) {	int message = msg.message;	if (OS.WM_KEYFIRST <= message && message <= OS.WM_KEYLAST) {		Control control = findControl (msg.hwnd);		if (control != null) {			if (translateAccelerator (msg, control) || translateMnemonic (msg, control) || translateTraversal (msg, control)) {					lastAscii = lastKey = 0;				lastVirtual = lastNull = lastDead = false;				return true;			}		}	}	return false;}/** * Given the operating system handle for a widget, returns * the instance of the <code>Widget</code> subclass which * represents it in the currently running application, if * such exists, or null if no matching widget can be found. * * @param handle the handle for the widget * @return the SWT widget that the handle represents * * @exception SWTException <ul> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> *    <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li> * </ul> */public Widget findWidget (int handle) {	checkDevice ();	return getControl (handle);}Control findControl (int handle) {	if (handle == 0) return null;	do {		Control control = getControl (handle);		if (control != null) return control;	} while ((handle = OS.GetParent (handle)) != 0);	return null;}/** * Returns the display which the given thread is the * user-interface thread for, or null if the given thread * is not a user-interface thread for any display. * * @param thread the user-interface thread * @return the display for the given thread */public static synchronized Display findDisplay (Thread thread) {	for (int i=0; i<Displays.length; i++) {		Display display = Displays [i];		if (display != null && display.thread == thread) {			return display;		}	}	return null;}/** * Returns the currently active <code>Shell</code>, or null * if no shell belonging to the currently running application * is active. * * @return the active shell or null * * @exception SWTException <ul> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> *    <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li> * </ul> */public Shell getActiveShell () {	checkDevice ();	Control control = findControl (OS.GetActiveWindow ());	return control != null ? control.getShell () : null;}/** * Returns a rectangle describing the receiver's size and location. * * @return the bounding rectangle * * @exception SWTException <ul> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> *    <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li> * </ul> */public Rectangle getBounds () {	checkDevice ();	if (OS.GetSystemMetrics (OS.SM_CMONITORS) < 2) {		int width = OS.GetSystemMetrics (OS.SM_CXSCREEN);		int height = OS.GetSystemMetrics (OS.SM_CYSCREEN);		return new Rectangle (0, 0, width, height);	}	int x = OS.GetSystemMetrics (OS.SM_XVIRTUALSCREEN);	int y = OS.GetSystemMetrics (OS.SM_YVIRTUALSCREEN);	

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久蜜桃香蕉精品一区二区三区| 久久av中文字幕片| 麻豆视频一区二区| 成人动漫精品一区二区| 欧美成人r级一区二区三区| 亚洲最大成人综合| 成人爱爱电影网址| 精品捆绑美女sm三区| 亚洲成a人片在线观看中文| 色综合一区二区三区| 国产欧美日韩一区二区三区在线观看 | 国产精品中文有码| 777色狠狠一区二区三区| 亚洲精品国产视频| 91在线一区二区三区| 久久久精品人体av艺术| 麻豆国产91在线播放| 欧美日韩在线播放| 一区二区三区免费在线观看| 成年人网站91| 国产精品久久久久久久浪潮网站| 国产乱码字幕精品高清av| 日韩精品一区二区在线| 婷婷成人激情在线网| 欧美熟乱第一页| 亚洲综合在线电影| 91成人在线精品| 一区二区在线免费观看| 91福利视频在线| 亚洲精品综合在线| 在线看国产一区| 亚洲不卡在线观看| 在线不卡一区二区| 免费在线观看一区二区三区| 欧美男女性生活在线直播观看| 一区二区三区日韩| 欧美日韩国产另类一区| 午夜激情久久久| 91精品国产乱| 国产一区二区视频在线播放| 国产色综合一区| 成人a级免费电影| 亚洲欧美激情在线| 欧美日韩在线不卡| 美女视频黄免费的久久 | 国产不卡视频一区| 国产精品国产馆在线真实露脸| 99在线精品观看| 亚洲国产精品久久久男人的天堂| 777亚洲妇女| 国产馆精品极品| 亚洲天堂精品在线观看| 欧美日韩久久久一区| 蜜臀av性久久久久蜜臀aⅴ流畅 | 日韩一级片在线播放| 久色婷婷小香蕉久久| 国产三区在线成人av| 色综合夜色一区| 全国精品久久少妇| 国产精品私房写真福利视频| 色系网站成人免费| 久久成人av少妇免费| 国产精品成人免费在线| 欧美精品日韩综合在线| 久久99热99| 最新国产精品久久精品| 91精品国产福利| 波多野结衣中文字幕一区| 日韩成人av影视| 国产精品毛片无遮挡高清| 91精品国产色综合久久ai换脸| 国产99久久久国产精品潘金| 图片区小说区区亚洲影院| 国产精品美女久久久久久久久| 欧美精品一二三| 91麻豆免费在线观看| 麻豆免费精品视频| 亚洲一区二区精品3399| 国产精品美女久久福利网站| 欧美一级免费大片| 欧美亚洲动漫另类| 成人免费视频视频在线观看免费| 无吗不卡中文字幕| 亚洲人成伊人成综合网小说| 精品久久久久av影院| 欧美剧情片在线观看| 91在线免费视频观看| 国产做a爰片久久毛片| 天天操天天综合网| 亚洲免费观看高清完整版在线| 精品国内片67194| 欧美精品第1页| 欧美性高清videossexo| 国产91精品露脸国语对白| 久久精品国产一区二区| 日韩成人免费电影| 亚洲成人自拍网| 亚洲午夜精品一区二区三区他趣| 国产精品电影院| 中文字幕一区在线观看视频| 亚洲国产精品黑人久久久| 久久精品人人做人人爽人人| 亚洲精品一区二区三区99| 日韩精品一区二区三区在线播放| 欧美日韩精品一区二区三区四区 | 日本一区二区三区国色天香 | 蜜臀91精品一区二区三区| 三级久久三级久久久| 婷婷丁香久久五月婷婷| 午夜久久久影院| 天堂久久久久va久久久久| 天涯成人国产亚洲精品一区av| 亚洲mv大片欧洲mv大片精品| 亚洲一二三区视频在线观看| 亚洲综合一区二区| 亚洲午夜免费视频| 亚洲成人7777| 蜜臀久久99精品久久久久宅男| 美女www一区二区| 国产一区二区电影| 粉嫩aⅴ一区二区三区四区| 国产成人免费av在线| 成人av在线播放网址| 色偷偷88欧美精品久久久| 欧美这里有精品| 91麻豆精品国产91久久久久久久久 | 欧美日韩一区精品| 欧美一区二区三区不卡| 精品国产乱码久久久久久久久| 精品久久久久久无| 中文字幕乱码一区二区免费| 亚洲素人一区二区| 日韩高清在线一区| 国产一区不卡在线| 91网站在线观看视频| 欧美日韩日日夜夜| 久久免费看少妇高潮| 亚洲欧洲无码一区二区三区| 亚洲成人精品一区| 国产精品一二三四区| 在线观看亚洲专区| 日韩欧美自拍偷拍| 亚洲视频电影在线| 日本午夜一本久久久综合| 国精产品一区一区三区mba桃花| 91亚洲男人天堂| 日韩亚洲欧美综合| 1000部国产精品成人观看| 日产国产欧美视频一区精品| 国产不卡视频在线播放| 欧美日产在线观看| 中文字幕av一区二区三区高 | 亚洲黄色在线视频| 久久精品国产成人一区二区三区| 97久久久精品综合88久久| 日韩一级二级三级精品视频| 亚洲色欲色欲www在线观看| 狠狠色伊人亚洲综合成人| 色999日韩国产欧美一区二区| 欧美成va人片在线观看| 一区二区三区资源| 国产凹凸在线观看一区二区| 欧美日韩激情一区二区| 国产精品国产三级国产aⅴ中文 | 日本不卡免费在线视频| av资源站一区| 久久久国际精品| 日韩激情av在线| 欧美性xxxxxxxx| 一区在线播放视频| 国产麻豆91精品| 9191久久久久久久久久久| 亚洲欧洲综合另类| av激情成人网| 日本一区二区三区在线观看| 蜜臀a∨国产成人精品| 欧美久久久久中文字幕| 亚洲美女免费视频| 成人激情免费网站| 久久精品欧美日韩| 韩国v欧美v日本v亚洲v| 欧美一区二区美女| 秋霞影院一区二区| 欧美疯狂做受xxxx富婆| 亚洲精品ww久久久久久p站| 91在线云播放| 亚洲视频你懂的| 色综合天天综合网天天狠天天| 国产精品久久久久久一区二区三区| 久久精品国产在热久久| 精品少妇一区二区三区视频免付费| 婷婷综合久久一区二区三区| 欧美日韩国产片| 亚洲成av人片在线观看| 欧美日韩成人综合在线一区二区| 亚洲电影激情视频网站| 欧美精品电影在线播放| 日韩电影网1区2区| 日韩免费看网站| 激情六月婷婷久久|