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

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

?? combo.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
 * @param index the index for the item * * @exception IllegalArgumentException <ul> *    <li>ERROR_INVALID_RANGE - if the index is not between 0 and the number of elements in the list minus 1 (inclusive)</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> * @exception SWTError <ul> *    <li>ERROR_ITEM_NOT_REMOVED - if the operation fails because of an operating system failure</li> * </ul> */public void remove (int index) {	checkWidget ();	int length = OS.GetWindowTextLength (handle);	int code = OS.SendMessage (handle, OS.CB_DELETESTRING, index, 0);	if (code == OS.CB_ERR) {		int count = OS.SendMessage (handle, OS.CB_GETCOUNT, 0, 0);		if (0 <= index && index < count) error (SWT.ERROR_ITEM_NOT_REMOVED);		error (SWT.ERROR_INVALID_RANGE);	}	if (length != OS.GetWindowTextLength (handle)) {		/*		* It is possible (but unlikely), that application		* code could have disposed the widget in the modify		* event.  If this happens, just return.		*/		sendEvent (SWT.Modify);		if (isDisposed ()) return;	}	/*	* Bug in Windows.  When the combo box is read only	* with exactly one item that is currently selected	* and that item is removed, the combo box does not	* redraw to clear the text area.  The fix is to	* force a redraw.	*/	if ((style & SWT.READ_ONLY) != 0) {				int count = OS.SendMessage (handle, OS.CB_GETCOUNT, 0, 0);		if (count == 0) OS.InvalidateRect (handle, null, false);	}}/** * Removes the items from the receiver's list which are * between the given zero-relative start and end  * indices (inclusive). * * @param start the start of the range * @param end the end of the range * * @exception IllegalArgumentException <ul> *    <li>ERROR_INVALID_RANGE - if either the start or end are not between 0 and the number of elements in the list minus 1 (inclusive)</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> * @exception SWTError <ul> *    <li>ERROR_ITEM_NOT_REMOVED - if the operation fails because of an operating system failure</li> * </ul> */public void remove (int start, int end) {	checkWidget ();	if (start > end) return;	int count = OS.SendMessage (handle, OS.CB_GETCOUNT, 0, 0);	if (!(0 <= start && start <= end && end < count)) {		error (SWT.ERROR_INVALID_RANGE);	}	int length = OS.GetWindowTextLength (handle);	for (int i=start; i<=end; i++) {		int result = OS.SendMessage (handle, OS.CB_DELETESTRING, start, 0);		if (result == OS.CB_ERR) error (SWT.ERROR_ITEM_NOT_REMOVED);	}	if (length != OS.GetWindowTextLength (handle)) {		/*		* It is possible (but unlikely), that application		* code could have disposed the widget in the modify		* event.  If this happens, just return.		*/		sendEvent (SWT.Modify);		if (isDisposed ()) return;	}	/*	* Bug in Windows.  When the combo box is read only	* with exactly one item that is currently selected	* and that item is removed, the combo box does not	* redraw to clear the text area.  The fix is to	* force a redraw.	*/	if ((style & SWT.READ_ONLY) != 0) {				count = OS.SendMessage (handle, OS.CB_GETCOUNT, 0, 0);		if (count == 0) OS.InvalidateRect (handle, null, false);	}}/** * Searches the receiver's list starting at the first item * until an item is found that is equal to the argument,  * and removes that item from the list. * * @param string the item to remove * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the string is null</li> *    <li>ERROR_INVALID_ARGUMENT - if the string is not found in the list</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> * @exception SWTError <ul> *    <li>ERROR_ITEM_NOT_REMOVED - if the operation fails because of an operating system failure</li> * </ul> */public void remove (String string) {	int index = indexOf (string, 0);	if (index == -1) error (SWT.ERROR_INVALID_ARGUMENT);	remove (index);}/** * Removes all of the items from the receiver's list. * <p> * @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 removeAll () {	checkWidget ();	OS.SendMessage (handle, OS.CB_RESETCONTENT, 0, 0);	sendEvent (SWT.Modify);	// widget could be disposed at this point}/** * Removes the listener from the collection of listeners who will * be notified when the receiver's text is modified. * * @param listener the listener which should no longer 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 ModifyListener * @see #addModifyListener */public void removeModifyListener (ModifyListener listener) {	checkWidget ();	if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);	if (eventTable == null) return;	eventTable.unhook (SWT.Modify, listener);	}/** * Removes the listener from the collection of listeners who will * be notified when the receiver's selection changes. * * @param listener the listener which should no longer 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 SelectionListener * @see #addSelectionListener */public void removeSelectionListener (SelectionListener listener) {	checkWidget ();	if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);	if (eventTable == null) return;	eventTable.unhook (SWT.Selection, listener);	eventTable.unhook (SWT.DefaultSelection,listener);	}/** * Selects the item at the given zero-relative index in the receiver's  * list.  If the item at the index was already selected, it remains * selected. Indices that are out of range are ignored. * * @param index the index of the item to select * * @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 select (int index) {	checkWidget ();	int count = OS.SendMessage (handle, OS.CB_GETCOUNT, 0, 0);	if (0 <= index && index < count) {		int selection = OS.SendMessage (handle, OS.CB_GETCURSEL, 0, 0);		int code = OS.SendMessage (handle, OS.CB_SETCURSEL, index, 0);		if (code != OS.CB_ERR && code != selection) {			sendEvent (SWT.Modify);			// widget could be disposed at this point		}	}}void setBackgroundPixel (int pixel) {	if (background == pixel) return;	super.setBackgroundPixel (pixel);	int hwndText = OS.GetDlgItem (handle, CBID_EDIT);	if (hwndText != 0) OS.InvalidateRect (hwndText, null, true);	int hwndList = OS.GetDlgItem (handle, CBID_LIST);	if (hwndList != 0) OS.InvalidateRect (hwndList, null, true);}void setBounds (int x, int y, int width, int height, int flags) {	/*	* Feature in Windows.  If the combo box has the CBS_DROPDOWN	* or CBS_DROPDOWNLIST style, Windows uses the height that the	* programmer sets in SetWindowPos () to control height of the	* drop down list.  When the width is non-zero, Windows remembers	* this value and sets the height to be the height of the text	* field part of the combo box.  If the width is zero, Windows	* allows the height to have any value.  Therefore, when the	* programmer sets and then queries the height, the values can	* be different depending on the width.  The problem occurs when	* the programmer uses computeSize () to determine the preferred	* height (always the height of the text field) and then uses	* this value to set the height of the combo box.  The result	* is a combo box with a zero size drop down list.  The fix, is	* to always set the height to show a fixed number of combo box	* items and ignore the height value that the programmer supplies.	*/	if ((style & SWT.DROP_DOWN) != 0) {		int textHeight = OS.SendMessage (handle, OS.CB_GETITEMHEIGHT, -1, 0);		int itemHeight = OS.SendMessage (handle, OS.CB_GETITEMHEIGHT, 0, 0);		height = textHeight + 6 + (itemHeight * visibleCount) + 2;		/*		* Feature in Windows.  When a drop down combo box is resized,		* the combo box resizes the height of the text field and uses		* the height provided in SetWindowPos () to determine the height		* of the drop down list.  For some reason, the combo box redraws		* the whole area, not just the text field.  The fix is to set the		* SWP_NOSIZE bits when the height of text field and the drop down		* list is the same as the requested height.		* 		* NOTE:  Setting the width of a combo box to zero does not update		* the width of the drop down control rect.  If the width of the		* combo box is zero, then do not set SWP_NOSIZE.		*/		RECT rect = new RECT ();		OS.GetWindowRect (handle, rect);		if (rect.right - rect.left != 0) {			if (OS.SendMessage (handle, OS.CB_GETDROPPEDCONTROLRECT, 0, rect) != 0) {				int oldWidth = rect.right - rect.left, oldHeight = rect.bottom - rect.top;				if (oldWidth == width && oldHeight == height) flags |= OS.SWP_NOSIZE;			}		}		SetWindowPos (handle, 0, x, y, width, height, flags);		return;	}	/*	* Bug in Windows.  If the combo box has the CBS_SIMPLE style,	* the list portion of the combo box is not redrawn when the	* combo box is resized.  The fix is to force a redraw when	* the size has changed.	*/	if (parent.lpwp != null || (flags & OS.SWP_NOSIZE) != 0 || !OS.IsWindowVisible (handle)) {		super.setBounds (x, y, width, height, flags);		return;	}	RECT rect = new RECT ();	OS.GetWindowRect (handle, rect);	super.setBounds (x, y, width, height, flags);	int oldWidth = rect.right - rect.left, oldHeight = rect.bottom - rect.top;	if (oldWidth != width || oldHeight != height) {		if (OS.IsWinCE) {				int hwndText = OS.GetDlgItem (handle, CBID_EDIT);			if (hwndText != 0) OS.InvalidateRect (hwndText, null, true);			int hwndList = OS.GetDlgItem (handle, CBID_LIST);			if (hwndList != 0) OS.InvalidateRect (hwndList, null, true);		} else {			int uFlags = OS.RDW_ERASE | OS.RDW_INVALIDATE | OS.RDW_ALLCHILDREN;			OS.RedrawWindow (handle, null, 0, uFlags);		}	}}void setForegroundPixel (int pixel) {	if (foreground == pixel) return;	super.setForegroundPixel (pixel);	int hwndText = OS.GetDlgItem (handle, CBID_EDIT);	if (hwndText != 0) OS.InvalidateRect (hwndText, null, true);	int hwndList = OS.GetDlgItem (handle, CBID_LIST);	if (hwndList != 0) OS.InvalidateRect (hwndList, null, true);}/** * Sets the text of the item in the receiver's list at the given * zero-relative index to the string argument. This is equivalent * to <code>remove</code>'ing the old item at the index, and then * <code>add</code>'ing the new item at that index. * * @param index the index for the item * @param string the new text for the item * * @exception IllegalArgumentException <ul> *    <li>ERROR_INVALID_RANGE - if the index is not between 0 and the number of elements in the list minus 1 (inclusive)</li> *    <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> * @exception SWTError <ul> *    <li>ERROR_ITEM_NOT_REMOVED - if the remove operation fails because of an operating system failure</li> *    <li>ERROR_ITEM_NOT_ADDED - if the add operation fails because of an operating system failure</li> * </ul> */public void setItem (int index, String string) {	checkWidget ();	if (string == null) error (SWT.ERROR_NULL_ARGUMENT);	remove (index);	/*	* It is possible (but unlikely), that application	* code could have disposed the widget in the modify	* event that might be sent when the index is removed.	* If this happens, just exit.	*/	if (isDisposed ()) return;	add (string, index);}/** * Sets the receiver's list to be the given array of items. * * @param items the array of items * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the items array 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> * @exception SWTError <ul> *    <li>ERROR_ITEM_NOT_ADDED - if the operation fails because of an operating system failure</li> * </ul> */public void setItems (String [] items) {	checkWidget ();	if (items == null) error (SWT.ERROR_NULL_ARGUMENT);	OS.SendMessage (handle, OS.CB_RESETCONTENT, 0, 0);	int codePage = getCodePage ();	for (int i=0; i<items.length; i++) {		String string = items [i];		TCHAR buffer = new TCHAR (codePage, string, true);		int code = OS.SendMessage (handle, OS.CB_ADDSTRING, 0, buffer);		if (code == OS.CB_ERR) error (SWT.ERROR_ITEM_NOT_ADDED);		if (code == OS.CB_ERRSPACE) error (SWT.ERROR_ITEM_NOT_ADDED);	}	// widget could be disposed at this point	sendEvent (SWT.Modify);}/** * Sets the orientation of the receiver, which must be one * of the constants <code>SWT.LEFT_TO_RIGHT</code> or <code>SWT.RIGHT_TO_LEFT</code>. * <p> * * @param orientation new orientation style *  * @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.2 */public void setOrientation (int orientation) {	checkWidget();	if (OS.IsWinCE) return;	if ((OS.WIN32_MAJOR << 16 | OS.WIN32_MINOR) < (4 << 16 | 10)) return;	int flags = SWT.RIGHT_TO_LEFT | SWT.LEFT_TO_RIGHT;	if ((orientation & flags) == 0 || (orientation & flags) == flags) return;	style &= ~flags;	style |= orientation & flags;	int bits  = OS.GetWindowLong (handle, OS.GWL_EXSTYLE);	if ((style & SWT.RIGHT_TO_LEFT) != 0) {		style |= SWT.MIRRORED;		bits |= OS.WS_EX_LAYOUTRTL;	} else {		style &= ~SWT.MIRRORED;		bits &= ~OS.WS_EX_LAYOUTRTL;	}	OS.SetWindowLong (handle, OS.GWL_EXSTYLE, bits);	int hwndText = 0, hwndList = 0;	COMBOBOXINFO pcbi = new COMBOBOXINFO ();	pcbi.cbSize = COMBOBOXINFO.sizeof;	if (OS.GetComboBoxInfo (handle, pcbi)) {		hwndText = pcbi.hwndItem;		hwndList = pcbi.hwndList;	}	if (hwndText != 0) {		int bits0 = OS.GetWindowLong (hwndText, OS.GWL_EXSTYLE);		int bits1 = OS.GetWindowLong (hwndText, OS.GWL_STYLE);		if ((style & SWT.RIGHT_TO_LEFT) != 0) {			bits0 |= OS.WS_EX_RIGHT | OS.WS_EX_RTLREADING;			bits1 |= OS.ES_RIGHT;		} else {			bits0 &= ~(OS.WS_EX_RIGHT | OS.WS_EX_RTLREADING);			bits1 &= ~OS.ES_RIGHT;		}		OS.SetWindowLong (hwndText, OS.GWL_EXSTYLE, bits0);		OS.SetWindowLong (hwndText, OS.GWL_STYLE, bits1);				/*		* Bug in Windows.  For some reason, the single line text field		* portion of the combo box does not redraw to reflect the new

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩电影在线| 日韩激情中文字幕| 亚洲1区2区3区4区| 成人激情午夜影院| 日韩一区二区三区视频| 国产精品成人一区二区三区夜夜夜 | 国产高清精品在线| 欧美日韩性生活| 亚洲人成在线播放网站岛国| 蜜桃av噜噜一区二区三区小说| 色综合久久综合中文综合网| 久久久久久免费毛片精品| 亚洲成人免费视频| 在线精品视频一区二区三四| 亚洲欧洲在线观看av| 国产一区在线观看麻豆| 欧美一级黄色大片| 日本成人在线网站| 欧美日韩视频在线一区二区| 亚洲精品菠萝久久久久久久| 成人免费看黄yyy456| 精品国产成人在线影院| 久久精品国产精品青草| 日韩写真欧美这视频| 欧美aaa在线| 欧美成人一区二区三区在线观看| 亚洲mv在线观看| 欧美三级电影一区| 亚洲午夜精品网| 欧美久久免费观看| 首页国产欧美久久| 欧美一级理论片| 蜜臀av在线播放一区二区三区| 日韩一区二区视频在线观看| 日韩成人伦理电影在线观看| 欧美一级欧美三级| 精品一二三四区| 久久久精品国产免费观看同学| 国产在线精品一区二区| 国产欧美一区二区精品婷婷| 成人在线综合网站| 亚洲色欲色欲www| 91久久线看在观草草青青| 亚洲精品精品亚洲| 欧美日韩三级一区二区| 日韩精品91亚洲二区在线观看| 91精品国产欧美一区二区成人| 日本va欧美va瓶| 精品国产污网站| 91在线观看免费视频| 综合婷婷亚洲小说| 欧美伊人久久久久久久久影院 | 亚洲色图欧洲色图婷婷| 91久久精品一区二区二区| 午夜一区二区三区在线观看| 日韩欧美亚洲国产另类| 国产一二三精品| 中文字幕一区二区不卡| 欧美性生活一区| 国产综合色视频| 一区二区三区视频在线观看| 538在线一区二区精品国产| 国产一区二区三区日韩| 亚洲男人天堂av网| 日韩精品中午字幕| 91麻豆免费看| 韩国欧美国产一区| 亚洲精品免费在线观看| 亚洲精品一线二线三线| 91视频www| 精品在线亚洲视频| 亚洲免费伊人电影| 精品sm在线观看| 91成人免费网站| 国产激情视频一区二区三区欧美| 亚洲第一成年网| 国产女同互慰高潮91漫画| 欧美午夜精品久久久久久超碰| 国产精品中文欧美| 石原莉奈一区二区三区在线观看| 国产农村妇女精品| 日韩三级在线观看| 在线观看亚洲a| 成人一级片网址| 久久精品国产精品亚洲红杏 | 麻豆成人免费电影| 亚洲精品一卡二卡| 亚洲国产成人自拍| 精品卡一卡二卡三卡四在线| 欧洲一区二区三区在线| 丁香婷婷综合激情五月色| 欧美aⅴ一区二区三区视频| 亚洲另类春色校园小说| 国产精品久久毛片av大全日韩| 欧美va在线播放| 欧美日韩国产高清一区二区三区 | 亚洲电影一区二区三区| 亚洲欧美中日韩| 国产精品午夜在线观看| 欧美精品一区二区三区蜜桃| 制服丝袜av成人在线看| 在线播放日韩导航| 91成人国产精品| 在线一区二区三区四区五区| 99视频有精品| 色综合天天在线| bt欧美亚洲午夜电影天堂| 国产.欧美.日韩| 丁香婷婷综合激情五月色| 国产福利91精品一区二区三区| 国产一区二区电影| 国产在线视频一区二区三区| 六月婷婷色综合| 激情综合色播五月| 久久精品久久99精品久久| 麻豆精品在线观看| 久久不见久久见免费视频1| 蜜桃精品视频在线| 免费看欧美女人艹b| 美女诱惑一区二区| 国产综合久久久久久久久久久久| 激情六月婷婷久久| 国产精品正在播放| 99视频精品免费视频| 一本色道久久综合精品竹菊| 欧美午夜免费电影| 91精品国产91综合久久蜜臀| 欧美一级搡bbbb搡bbbb| 亚洲精品一区二区三区福利| 久久久精品国产免大香伊| 中文字幕中文乱码欧美一区二区| 自拍偷拍欧美精品| 一区二区三区四区蜜桃| 免费观看在线色综合| 国产精品一区2区| 色噜噜狠狠色综合中国| 欧美人与z0zoxxxx视频| 久久亚洲免费视频| 亚洲人精品一区| 蜜臀av一级做a爰片久久| 国产成人综合自拍| 91国产视频在线观看| 91精品欧美综合在线观看最新| 久久这里只有精品6| 亚洲精品你懂的| 久久国产剧场电影| 99re这里只有精品视频首页| 欧美理论电影在线| 久久久精品tv| 婷婷成人综合网| 成人三级在线视频| 欧洲精品一区二区| 日韩精品专区在线影院重磅| 亚洲人xxxx| 国内欧美视频一区二区| 欧美在线视频日韩| 国产视频视频一区| 污片在线观看一区二区 | 国产高清不卡一区| 欧美视频一区二区三区在线观看| 久久综合av免费| 亚洲福利视频一区| 波波电影院一区二区三区| 51午夜精品国产| 亚洲精品中文字幕在线观看| 国产精品一二一区| 日韩一区二区三区视频在线| 亚洲欧美乱综合| 国产福利一区二区| 日韩欧美成人午夜| 亚洲高清一区二区三区| 99久久亚洲一区二区三区青草| 日韩三级视频在线观看| 亚洲综合激情另类小说区| 懂色av一区二区夜夜嗨| 亚洲精品一区在线观看| 日韩成人伦理电影在线观看| 欧美综合一区二区| 亚洲三级电影网站| 成人午夜又粗又硬又大| 亚洲精品在线观看网站| 日本va欧美va欧美va精品| 欧美性猛片xxxx免费看久爱| 综合分类小说区另类春色亚洲小说欧美| 国内精品久久久久影院色 | 最好看的中文字幕久久| 国产成人自拍在线| 久久青草国产手机看片福利盒子 | 日韩精品国产精品| 欧美日韩一区精品| 亚洲一二三四在线| 一本到高清视频免费精品| 国产精品传媒入口麻豆| 波多野结衣的一区二区三区| 国产精品视频免费看| 成人免费视频一区二区| 中文无字幕一区二区三区| 国产盗摄一区二区| 国产拍欧美日韩视频二区| 国产91精品露脸国语对白|