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

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

?? menu.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
 * If one of the receiver's ancestors is not visible or some * other condition makes the receiver not visible, this method * may still indicate that it is considered visible even though * it may not actually be showing. * </p> * * @return the receiver's visibility state * * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */public boolean getVisible () {	checkWidget ();	if ((style & SWT.BAR) != 0) {		return this == parent.menuShell ().menuBar;	}	if ((style & SWT.POP_UP) != 0) {		Menu [] popups = display.popups;		if (popups == null) return false;		for (int i=0; i<popups.length; i++) {			if (popups [i] == this) return true;		}	}	return this == getShell ().activeMenu;}int imageIndex (Image image) {	if (hwndCB == 0 || image == null) return OS.I_IMAGENONE;	if (imageList == null) {		int hOldList = OS.SendMessage (hwndCB, OS.TB_GETIMAGELIST, 0, 0);		if (hOldList != 0) OS.ImageList_Destroy (hOldList);		Rectangle bounds = image.getBounds ();		imageList = display.getImageList (new Point (bounds.width, bounds.height));		int index = imageList.indexOf (image);		if (index == -1) index = imageList.add (image);		int hImageList = imageList.getHandle ();		OS.SendMessage (hwndCB, OS.TB_SETIMAGELIST, 0, hImageList);		return index;	}	int index = imageList.indexOf (image);	if (index != -1) return index;	return imageList.add (image);}/** * Searches the receiver's list starting at the first item * (index 0) until an item is found that is equal to the  * argument, and returns the index of that item. If no item * is found, returns -1. * * @param item the search item * @return the index of the item * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the string is null</li> * </ul> * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */public int indexOf (MenuItem item) {	checkWidget ();	if (item == null) error (SWT.ERROR_NULL_ARGUMENT);	if (item.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);	if (item.parent != this) return -1;	if ((OS.IsPPC || OS.IsSP) && hwndCB != 0) {		if (OS.IsPPC) {			return OS.SendMessage (hwndCB, OS.TB_COMMANDTOINDEX, item.id, 0);		}		if (OS.IsSP) {			if (item.id == id0) return 0;			if (item.id == id1) return 1;			return -1;		}	}	int index = 0;	MENUITEMINFO info = new MENUITEMINFO ();	info.cbSize = MENUITEMINFO.sizeof;	info.fMask = OS.MIIM_DATA;	while (OS.GetMenuItemInfo (handle, index, true, info)) {		if (info.dwItemData == item.id) return index;		index++;	}	return -1;}/** * Returns <code>true</code> if the receiver is enabled and all * of the receiver's ancestors are enabled, and <code>false</code> * otherwise. A disabled control is typically not selectable from the * user interface and draws with an inactive or "grayed" look. * * @return the receiver's enabled state * * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> *  * @see #getEnabled */public boolean isEnabled () {	checkWidget ();	Menu parentMenu = getParentMenu ();	if (parentMenu == null) return getEnabled ();	return getEnabled () && parentMenu.isEnabled ();}/** * Returns <code>true</code> if the receiver is visible and all * of the receiver's ancestors are visible and <code>false</code> * otherwise. * * @return the receiver's visibility state * * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * * @see #getVisible */public boolean isVisible () {	checkWidget ();	return getVisible ();}void redraw () {	if ((style & SWT.BAR) != 0) {		display.addBar (this);	} else {		update ();	}}void releaseChild () {	super.releaseChild ();	if (cascade != null) cascade.releaseMenu ();	if ((style & SWT.BAR) != 0) {		display.removeBar (this);		if (this == parent.menuBar) {			parent.setMenuBar (null);		}	} else {		if ((style & SWT.POP_UP) != 0) {			display.removePopup (this);		}	}}void releaseHandle () {	super.releaseHandle ();	handle = hwndCB = 0;}void releaseWidget () {	MenuItem [] items = getItems ();	for (int i=0; i<items.length; i++) {		MenuItem item = items [i];		if (!item.isDisposed ()) {			if (OS.IsPPC && hwndCB != 0) {				item.dispose ();			} else {				item.releaseResources ();			}		}	}	if (OS.IsPPC && hwndCB != 0) {		if (imageList != null) {			OS.SendMessage (hwndCB, OS.TB_SETIMAGELIST, 0, 0);			display.releaseToolImageList (imageList);			imageList = null;		}	}	super.releaseWidget ();	if (parent != null) parent.removeMenu (this);	parent = null;	cascade = null;}/** * Removes the listener from the collection of listeners who will * be notified when the help events are generated for the control. * * @param listener the listener which should be notified * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the listener is null</li> * </ul> * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * * @see HelpListener * @see #addHelpListener */public void removeHelpListener (HelpListener listener) {	checkWidget ();	if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);	if (eventTable == null) return;	eventTable.unhook (SWT.Help, listener);}/** * Removes the listener from the collection of listeners who will * be notified when the menu events are generated for the control. * * @param listener the listener which should be notified * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the listener is null</li> * </ul> * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * * @see MenuListener * @see #addMenuListener */public void removeMenuListener (MenuListener listener) {	checkWidget ();	if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);	if (eventTable == null) return;	eventTable.unhook (SWT.Hide, listener);	eventTable.unhook (SWT.Show, listener);}/** * Sets the default menu item to the argument or removes * the default emphasis when the argument is <code>null</code>. *  * @param item the default menu item or null * * @exception IllegalArgumentException <ul> *    <li>ERROR_INVALID_ARGUMENT - if the menu item has been disposed</li>  * </ul> * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */public void setDefaultItem (MenuItem item) {	checkWidget ();	int newID = -1;	if (item != null) {		if (item.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);		if (item.parent != this) return;		newID = item.id;	}	if (OS.IsWinCE) return;	int oldID = OS.GetMenuDefaultItem (handle, OS.MF_BYCOMMAND, OS.GMDI_USEDISABLED);	if (newID == oldID) return;	OS.SetMenuDefaultItem (handle, newID, OS.MF_BYCOMMAND);	redraw ();}/** * Enables the receiver if the argument is <code>true</code>, * and disables it otherwise. A disabled control is typically * not selectable from the user interface and draws with an * inactive or "grayed" look. * * @param enabled the new enabled state * * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */public void setEnabled (boolean enabled) {	checkWidget ();	state &= ~DISABLED;	if (!enabled) state |= DISABLED;}/** * Sets the receiver's location to the point specified by * the arguments which are relative to the display. * <p> * Note:  This is different from most widgets where the * location of the widget is relative to the parent. * </p> * * @param x the new x coordinate for the receiver * @param y the new y coordinate for the receiver * * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */public void setLocation (int x, int y) {	checkWidget ();	if ((style & (SWT.BAR | SWT.DROP_DOWN)) != 0) return;	this.x = x;	this.y = y;	hasLocation = true;}/** * Sets the receiver's location to the point specified by * the arguments which are relative to the display. * <p> * Note:  This is different from most widgets where the * location of the widget is relative to the parent. * </p> * * @param location the new location for the receiver * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the point is null</li> * </ul> * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> *  * @since 2.1 */public void setLocation (Point location) {	checkWidget ();	if (location == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);	setLocation (location.x, location.y);}/** * Marks the receiver as visible if the argument is <code>true</code>, * and marks it invisible otherwise.  * <p> * If one of the receiver's ancestors is not visible or some * other condition makes the receiver not visible, marking * it visible may not actually cause it to be displayed. * </p> * * @param visible the new visibility state * * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */public void setVisible (boolean visible) {	checkWidget ();	if ((style & (SWT.BAR | SWT.DROP_DOWN)) != 0) return;	if (visible) {		display.addPopup (this);	} else {		display.removePopup (this);		_setVisible (false);	}}void update () {	if (OS.IsPPC || OS.IsSP) return;	if (OS.IsHPC) {		/*		* Each time a menu has been modified, the command menu bar		* must be redrawn or it won't update properly.  For example,		* a submenu will not drop down.		*/		Menu menuBar = parent.menuBar;		if (menuBar != null) {			Menu menu = this;			while (menu != null && menu != menuBar) {				menu = menu.getParentMenu ();			}			if (menu == menuBar) {				OS.CommandBar_DrawMenuBar (menuBar.hwndCB, 0);				OS.CommandBar_Show (menuBar.hwndCB, true);			}		}		return;	}	if (OS.IsWinCE) return;	if ((style & SWT.BAR) != 0) {		if (this == parent.menuBar) OS.DrawMenuBar (parent.handle);		return;	}	if ((OS.WIN32_MAJOR << 16 | OS.WIN32_MINOR) < (4 << 16 | 10)) {		return;	}	boolean hasCheck = false, hasImage = false;	MenuItem [] items = getItems ();	for (int i=0; i<items.length; i++) {		MenuItem item = items [i];		if (item.image != null) {			if ((hasImage = true) && hasCheck) break;		}		if ((item.style & (SWT.CHECK | SWT.RADIO)) != 0) {			if ((hasCheck = true) && hasImage) break;		}	}		/*	* Bug in Windows.  If a menu contains items that have	* images and can be checked, Windows does not include	* the width of the image and the width of the check when	* computing the width of the menu.  When the longest item	* does not have an image, the label and the accelerator	* text can overlap.  The fix is to use SetMenuItemInfo()	* to indicate that all items have a bitmap and then include	* the width of the widest bitmap in WM_MEASURECHILD.	* 	* NOTE:  This work around causes problems on Windows 98.	* Under certain circumstances that have yet to be isolated,	* some menus can become huge and blank.  For now, do not	* run the code on Windows 98.	*/		if (!OS.IsWin95) {		MENUITEMINFO info = new MENUITEMINFO ();		info.cbSize = MENUITEMINFO.sizeof;		info.fMask = OS.MIIM_BITMAP;		for (int i=0; i<items.length; i++) {			MenuItem item = items [i];			if ((style & SWT.SEPARATOR) == 0) {				if (item.image == null) {					info.hbmpItem = hasImage ? OS.HBMMENU_CALLBACK : 0;					OS.SetMenuItemInfo (handle, item.id, false, info);				}			}		}	}	/* Update the menu to hide or show the space for bitmaps */	MENUINFO lpcmi = new MENUINFO ();	lpcmi.cbSize = MENUINFO.sizeof;	lpcmi.fMask = OS.MIM_STYLE;	OS.GetMenuInfo (handle, lpcmi);	if (hasImage && !hasCheck) {		lpcmi.dwStyle |= OS.MNS_CHECKORBMP;	} else {		lpcmi.dwStyle &= ~OS.MNS_CHECKORBMP;	}	OS.SetMenuInfo (handle, lpcmi);}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一级高清片在线观看| 欧美羞羞免费网站| 久久99精品久久久久久久久久久久| 亚洲日本一区二区三区| 国产亚洲综合在线| 国产色综合一区| 欧美激情综合网| 亚洲欧洲成人自拍| 久久久午夜电影| 国产精品88av| 粉嫩绯色av一区二区在线观看| 男男成人高潮片免费网站| 欧美大片在线观看| 精品成人在线观看| 久久伊99综合婷婷久久伊| 久久综合久久99| 国产精品每日更新| 亚洲精品成人a在线观看| 亚洲综合小说图片| 麻豆视频一区二区| 国产不卡高清在线观看视频| eeuss影院一区二区三区| 色天使色偷偷av一区二区| 欧美美女直播网站| 国产性做久久久久久| 亚洲人成7777| 蜜臀91精品一区二区三区| 国产一区亚洲一区| 欧洲精品在线观看| 亚洲精品一区二区三区影院| 国产精品视频观看| 亚洲va欧美va国产va天堂影院| 奇米色一区二区| 91在线国内视频| 欧美va日韩va| 一区二区三区欧美日| 久久av中文字幕片| 在线区一区二视频| 国产欧美日韩在线看| 午夜国产精品影院在线观看| 国产精品一区在线观看乱码 | 国产欧美精品区一区二区三区 | 亚洲自拍偷拍欧美| 蓝色福利精品导航| 成人av综合一区| 欧美电影在线免费观看| 中文字幕精品一区二区三区精品| 亚洲香肠在线观看| 国产成人免费网站| 日韩视频一区二区三区在线播放| 亚洲视频网在线直播| 精品在线亚洲视频| 欧美日韩高清一区二区三区| 国产日韩精品久久久| 日本aⅴ亚洲精品中文乱码| 国产福利一区二区| 日韩欧美国产一区在线观看| 亚洲一区二区三区四区在线观看 | 国产日韩欧美a| 日韩和的一区二区| 色综合久久99| 国产精品电影院| 国产精品影视在线观看| 日韩一级完整毛片| 亚洲综合免费观看高清在线观看| 不卡在线观看av| 久久综合久久综合久久| 奇米一区二区三区| 欧美一区二区视频在线观看2022| 一区二区三区四区在线免费观看| 福利一区二区在线| 国产精品每日更新在线播放网址| 国产高清不卡一区二区| 久久日一线二线三线suv| 日韩av在线播放中文字幕| 欧美日韩一区三区四区| 午夜视频在线观看一区| 欧美日韩精品免费观看视频| 亚洲超碰97人人做人人爱| 在线观看一区不卡| 亚洲动漫第一页| 欧美日韩国产另类一区| 日韩在线一区二区三区| 777a∨成人精品桃花网| 美国十次了思思久久精品导航| 日韩一区二区三区电影在线观看 | 欧美成人性福生活免费看| 久久国产婷婷国产香蕉| 久久综合久久综合久久综合| 国产a区久久久| 亚洲精品国产精华液| 欧美日韩和欧美的一区二区| 免费成人在线网站| 久久久av毛片精品| jiyouzz国产精品久久| 亚洲mv在线观看| 日韩欧美亚洲一区二区| 成人永久aaa| 一个色在线综合| 欧美一级欧美三级| 成人午夜又粗又硬又大| 日韩一区欧美小说| 欧美女孩性生活视频| 国产精品亚洲一区二区三区在线 | 亚洲国产综合色| 日韩精品一区二区三区视频在线观看 | 精品美女在线观看| 国产+成+人+亚洲欧洲自线| 亚洲欧美一区二区三区极速播放| 91麻豆精品国产91久久久久久久久| 另类小说综合欧美亚洲| 国产精品久久久一本精品| 欧美无砖专区一中文字| 国产成a人亚洲精| 日韩国产一区二| 亚洲视频你懂的| 精品国产乱码久久| 日本精品免费观看高清观看| 麻豆国产欧美一区二区三区| 一区二区视频在线看| 欧美日韩你懂的| 91在线小视频| 久久不见久久见中文字幕免费| 一区二区三区在线观看网站| 久久综合九色综合97_久久久| 色婷婷综合久久久久中文一区二区 | 国产伦精品一区二区三区在线观看| 亚洲国产精品国自产拍av| 欧美色老头old∨ideo| 不卡免费追剧大全电视剧网站| 视频一区视频二区在线观看| 欧美国产一区二区| 26uuu色噜噜精品一区二区| 9191成人精品久久| 91久久奴性调教| 99久久久无码国产精品| 国产成人综合自拍| 午夜精品久久久久影视| 一片黄亚洲嫩模| 一区二区三区四区激情| 中文字幕视频一区二区三区久| 久久影院午夜片一区| 欧美mv和日韩mv的网站| 欧美一级日韩免费不卡| 91精品一区二区三区久久久久久 | 欧美国产日韩精品免费观看| 欧美一区二区在线视频| 欧美日韩一区二区三区四区五区| 91亚洲资源网| 在线观看精品一区| 91黄色激情网站| 在线观看www91| 在线精品国精品国产尤物884a| 91视频一区二区三区| 99精品国产视频| 99国产精品久久| 日本道色综合久久| 欧美伦理电影网| 日韩亚洲欧美高清| 欧美一区二区三区免费在线看| 日韩网站在线看片你懂的| 欧美电影免费观看高清完整版 | 久久精品国产精品亚洲精品| 男男gaygay亚洲| 国产精一品亚洲二区在线视频| 国产一区二区h| 成人ar影院免费观看视频| 日本久久一区二区三区| 欧美精三区欧美精三区| 日韩欧美aaaaaa| 国产精品青草久久| 一区二区三区四区精品在线视频| 偷窥少妇高潮呻吟av久久免费| 日韩成人一区二区三区在线观看| 九色综合国产一区二区三区| 国产精品白丝jk白祙喷水网站| 91在线精品一区二区三区| 538在线一区二区精品国产| 日韩欧美不卡在线观看视频| 欧美韩国日本一区| 亚洲成人av电影在线| 国产一区二区女| 欧美性受xxxx黑人xyx性爽| 日韩一区二区精品葵司在线| 中文字幕高清一区| 天天操天天干天天综合网| 国产久卡久卡久卡久卡视频精品| 94-欧美-setu| 精品少妇一区二区三区在线播放| 中文字幕一区二区不卡| 视频在线观看一区二区三区| 成人免费三级在线| 在线综合亚洲欧美在线视频| 国产精品亲子伦对白| 男女性色大片免费观看一区二区| 成人精品视频一区二区三区尤物| 欧美另类高清zo欧美| 国产精品高潮呻吟| 蜜桃精品视频在线观看| 在线观看日韩国产|