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

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

?? combo.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
 * Cuts the selected text. * <p> * The current selection is first copied to the * clipboard and then deleted from the widget. * </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> *  * @since 2.1 */public void cut () {	checkWidget ();	OS.SendMessage (handle, OS.WM_CUT, 0, 0);}int defaultBackground () {	return OS.GetSysColor (OS.COLOR_WINDOW);}void deregister () {	super.deregister ();	int hwndText = OS.GetDlgItem (handle, CBID_EDIT);	if (hwndText != 0) display.removeControl (hwndText);	int hwndList = OS.GetDlgItem (handle, CBID_LIST);	if (hwndList != 0) display.removeControl (hwndList);}/** * Deselects the item at the given zero-relative index in the receiver's  * list.  If the item at the index was already deselected, it remains * deselected. Indices that are out of range are ignored. * * @param index the index of the item to deselect * * @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 deselect (int index) {	checkWidget ();	int selection = OS.SendMessage (handle, OS.CB_GETCURSEL, 0, 0);	if (index != selection) return;	OS.SendMessage (handle, OS.CB_SETCURSEL, -1, 0);	sendEvent (SWT.Modify);	// widget could be disposed at this point}/** * Deselects all selected items in the receiver's list. * <p> * Note: To clear the selection in the receiver's text field, * use <code>clearSelection()</code>. * </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> * * @see #clearSelection */public void deselectAll () {	checkWidget ();	OS.SendMessage (handle, OS.CB_SETCURSEL, -1, 0);	sendEvent (SWT.Modify);	// widget could be disposed at this point}/** * Returns the item at the given, zero-relative index in the * receiver's list. Throws an exception if the index is out * of range. * * @param index the index of the item to return * @return the item at the given index * * @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_CANNOT_GET_ITEM - if the operation fails because of an operating system failure</li> * </ul> */public String getItem (int index) {	checkWidget ();	int length = OS.SendMessage (handle, OS.CB_GETLBTEXTLEN, index, 0);	if (length != OS.CB_ERR) {		TCHAR buffer = new TCHAR (getCodePage (), length + 1);		int result = OS.SendMessage (handle, OS.CB_GETLBTEXT, index, buffer);		if (result != OS.CB_ERR) return buffer.toString (0, length);	}	int count = OS.SendMessage (handle, OS.CB_GETCOUNT, 0, 0);	if (0 <= index && index < count) error (SWT.ERROR_CANNOT_GET_ITEM);	error (SWT.ERROR_INVALID_RANGE);	return null;}/** * Returns the number of items contained in the receiver's list. * * @return the number of items * * @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_CANNOT_GET_COUNT - if the operation fails because of an operating system failure</li> * </ul> */public int getItemCount () {	checkWidget ();	int count = OS.SendMessage (handle, OS.CB_GETCOUNT, 0, 0);	if (count == OS.CB_ERR) error (SWT.ERROR_CANNOT_GET_COUNT);	return count;}/** * Returns the height of the area which would be used to * display <em>one</em> of the items in the receiver's list. * * @return the height of one item * * @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_CANNOT_GET_ITEM_HEIGHT - if the operation fails because of an operating system failure</li> * </ul> */public int getItemHeight () {	checkWidget ();	int result = OS.SendMessage (handle, OS.CB_GETITEMHEIGHT, 0, 0);	if (result == OS.CB_ERR) error (SWT.ERROR_CANNOT_GET_ITEM_HEIGHT);	return result;}/** * Returns an array of <code>String</code>s which are the items * in the receiver's list.  * <p> * Note: This is not the actual structure used by the receiver * to maintain its list of items, so modifying the array will * not affect the receiver.  * </p> * * @return the items in the receiver's list * * @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_CANNOT_GET_ITEM - if the operation fails because of an operating system failure</li> * </ul> */public String [] getItems () {	checkWidget ();	int count = getItemCount ();	String [] result = new String [count];	for (int i=0; i<count; i++) result [i] = getItem (i);	return result;}String getNameText () {	return getText ();}/** * Returns the orientation of the receiver. * * @return the 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 int getOrientation () {	checkWidget();	return style & (SWT.LEFT_TO_RIGHT | SWT.RIGHT_TO_LEFT);}/** * Returns a <code>Point</code> whose x coordinate is the start * of the selection in the receiver's text field, and whose y * coordinate is the end of the selection. The returned values * are zero-relative. An "empty" selection as indicated by * the the x and y coordinates having the same value. * * @return a point representing the selection start and end * * @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 Point getSelection () {	checkWidget ();	if ((style & SWT.DROP_DOWN) != 0 && (style & SWT.READ_ONLY) != 0) {		return new Point (0, OS.GetWindowTextLength (handle));	}	int [] start = new int [1], end = new int [1];	OS.SendMessage (handle, OS.CB_GETEDITSEL, start, end);	return new Point (start [0], end [0]);}/** * Returns the zero-relative index of the item which is currently * selected in the receiver's list, or -1 if no item is selected. * * @return the index of the selected item * * @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 getSelectionIndex () {	checkWidget ();	if (noSelection) return -1;	return OS.SendMessage (handle, OS.CB_GETCURSEL, 0, 0);}/** * Returns a string containing a copy of the contents of the * receiver's text field. * * @return the receiver's text * * @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 String getText () {	checkWidget ();	int length = OS.GetWindowTextLength (handle);	if (length == 0) return "";	TCHAR buffer = new TCHAR (getCodePage (), length + 1);	OS.GetWindowText (handle, buffer, length + 1);	return buffer.toString (0, length);}/** * Returns the height of the receivers's text field. * * @return the text height * * @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_CANNOT_GET_ITEM_HEIGHT - if the operation fails because of an operating system failure</li> * </ul> */public int getTextHeight () {	checkWidget ();	int result = OS.SendMessage (handle, OS.CB_GETITEMHEIGHT, -1, 0);	if (result == OS.CB_ERR) error (SWT.ERROR_CANNOT_GET_ITEM_HEIGHT);	return result + 6;}/** * Returns the maximum number of characters that the receiver's * text field is capable of holding. If this has not been changed * by <code>setTextLimit()</code>, it will be the constant * <code>Combo.LIMIT</code>. *  * @return the text limit *  * @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 getTextLimit () {	checkWidget ();	int hwndText = OS.GetDlgItem (handle, CBID_EDIT);	if (hwndText == 0) return LIMIT;	return OS.SendMessage (hwndText, OS.EM_GETLIMITTEXT, 0, 0);}/** * Gets the number of items that are visible in the drop * down portion of the receiver's list. * * @return the number of items that are visible * * @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 3.0 */public int getVisibleItemCount () {	checkWidget ();	return visibleCount;}boolean hasFocus () {	int hwndFocus = OS.GetFocus ();	if (hwndFocus == handle) return true;	if (hwndFocus == 0) return false;	int hwndText = OS.GetDlgItem (handle, CBID_EDIT);	if (hwndFocus == hwndText) return true;	int hwndList = OS.GetDlgItem (handle, CBID_LIST);	if (hwndFocus == hwndList) return true;	return false;}/** * 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 string 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 (String string) {	return indexOf (string, 0);}/** * Searches the receiver's list starting at the given,  * zero-relative index until an item is found that is equal * to the argument, and returns the index of that item. If * no item is found or the starting index is out of range, * returns -1. * * @param string the search item * @param start the zero-relative index at which to begin the search * @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 (String string, int start) {	checkWidget ();	if (string == null) error (SWT.ERROR_NULL_ARGUMENT);		/*	* Bug in Windows.  For some reason, CB_FINDSTRINGEXACT	* will not find empty strings even though it is legal	* to insert an empty string into a combo.  The fix is	* to search the combo, an item at a time.	*/	if (string.length () == 0) {		int count = getItemCount ();		for (int i=start; i<count; i++) {			if (string.equals (getItem (i))) return i;		}		return -1;	}	/* Use CB_FINDSTRINGEXACT to search for the item */		int count = OS.SendMessage (handle, OS.CB_GETCOUNT, 0, 0);	if (!(0 <= start && start < count)) return -1;	int index = start - 1, last = 0;	TCHAR buffer = new TCHAR (getCodePage (), string, true);	do {		index = OS.SendMessage (handle, OS.CB_FINDSTRINGEXACT, last = index, buffer);		if (index == OS.CB_ERR || index <= last) return -1;	} while (!string.equals (getItem (index)));	return index;}/** * Pastes text from clipboard. * <p> * The selected text is deleted from the widget * and new text inserted from the clipboard. * </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> *  * @since 2.1 */public void paste () {	checkWidget ();	OS.SendMessage (handle, OS.WM_PASTE, 0, 0);}void register () {	super.register ();	int hwndText = OS.GetDlgItem (handle, CBID_EDIT);	if (hwndText != 0) display.addControl (hwndText, this);	int hwndList = OS.GetDlgItem (handle, CBID_LIST);	if (hwndList != 0) display.addControl (hwndList, this);}/** * Removes the item from the receiver's list at the given * zero-relative index. *

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区三区思思人| 亚洲激情中文1区| 1024成人网| 黑人精品欧美一区二区蜜桃 | 国产精品久久精品日日| 亚洲不卡av一区二区三区| 成人性色生活片免费看爆迷你毛片| 在线观看91视频| 国产精品久久久久久一区二区三区| 日本成人在线不卡视频| 色婷婷综合五月| 国产精品久99| 丁香六月久久综合狠狠色| 欧美一区二区播放| 亚洲午夜三级在线| 在线亚洲一区观看| 最新不卡av在线| 成人黄色av网站在线| 久久精品在这里| 国产麻豆一精品一av一免费| 日韩欧美国产精品| 日本中文在线一区| 7777精品伊人久久久大香线蕉经典版下载 | 欧美亚洲禁片免费| 国产精品美女久久久久久久| 国产一区二区精品久久| 日韩免费一区二区三区在线播放| 亚洲成人一区在线| 欧美亚洲综合在线| 亚洲18色成人| 欧美精品一卡两卡| 视频一区二区三区中文字幕| 欧美日本韩国一区| 亚洲成人免费在线| 日韩一区二区在线观看| 日韩成人免费在线| 日韩精品影音先锋| 国产成人在线视频免费播放| 国产日韩精品久久久| 成人午夜看片网址| 中文字幕一区二区三区不卡| 91在线观看成人| 亚洲一级二级三级在线免费观看| 欧美主播一区二区三区美女| 日韩黄色免费电影| 久久一日本道色综合| 成人国产精品免费| 亚洲va欧美va人人爽| 欧美一级视频精品观看| 国产美女精品在线| 亚洲蜜桃精久久久久久久| 欧美三级视频在线观看| 免费精品视频最新在线| 精品av综合导航| 99视频一区二区| 香蕉久久夜色精品国产使用方法 | 中文字幕中文字幕一区二区| 色婷婷亚洲一区二区三区| 亚洲bt欧美bt精品| 久久精品人人做人人综合| 99久久精品免费观看| 亚洲午夜精品在线| 久久色中文字幕| 色综合久久久久网| 美女免费视频一区| 亚洲女同ⅹxx女同tv| 69堂精品视频| 不卡的电影网站| 日本欧美一区二区三区乱码 | 波波电影院一区二区三区| 亚洲亚洲人成综合网络| 久久众筹精品私拍模特| 欧美视频一区二区三区在线观看| 久久国内精品视频| 亚洲综合图片区| 久久久精品tv| 欧美一级专区免费大片| 99久久免费视频.com| 美美哒免费高清在线观看视频一区二区| 久久久久久久久免费| 欧美日韩mp4| 91亚洲精华国产精华精华液| 精品一区二区久久| 亚洲国产精品久久久男人的天堂| 26uuu亚洲综合色| 欧美久久久久中文字幕| 99久久免费精品| 国产精品一品二品| 国产东北露脸精品视频| 亚洲一区中文日韩| 亚洲国产成人一区二区三区| 日韩三级在线免费观看| 在线亚洲+欧美+日本专区| 国产99精品在线观看| 看片的网站亚洲| 天天综合色天天综合色h| 亚洲欧洲综合另类| 国产精品免费免费| 国产欧美综合在线观看第十页| 欧美一级黄色录像| 欧美日韩mp4| 欧美日韩精品一区二区在线播放| 成a人片亚洲日本久久| 国产宾馆实践打屁股91| 国精产品一区一区三区mba视频| 肉色丝袜一区二区| 亚洲国产日韩a在线播放| 一区二区三区免费在线观看| 1024国产精品| 亚洲精品高清视频在线观看| 天堂va蜜桃一区二区三区漫画版| 中文字幕在线免费不卡| 欧美国产成人精品| 中文字幕在线一区二区三区| 国产精品麻豆一区二区| 亚洲欧美在线观看| 一区二区三区影院| 亚洲精品老司机| 亚洲图片欧美色图| 天天综合天天做天天综合| 天堂一区二区在线| 成人免费视频播放| 日本韩国精品一区二区在线观看| 99re热这里只有精品视频| 91一区二区三区在线播放| 在线日韩国产精品| 欧美日韩不卡一区二区| 日韩欧美的一区二区| 久久精品在线免费观看| 亚洲欧洲av在线| 亚洲午夜激情网页| 麻豆精品一区二区综合av| 国产乱子轮精品视频| 成人av网站在线观看| 在线观看成人免费视频| 欧美高清激情brazzers| 精品国产乱码久久久久久久久| 久久久久久久网| 亚洲精品国产一区二区三区四区在线| 亚洲一区二区精品久久av| 麻豆免费看一区二区三区| 国产98色在线|日韩| 色婷婷综合久久久久中文一区二区 | 国产精品亚洲成人| 91麻豆高清视频| 日韩一区二区三区四区五区六区| 久久免费电影网| 亚洲精品免费播放| 美女视频黄 久久| 97精品国产露脸对白| 欧美一区二区三区免费在线看| 久久久精品一品道一区| 亚洲自拍与偷拍| 国产福利一区在线| 精品污污网站免费看| 国产午夜亚洲精品不卡| 亚洲.国产.中文慕字在线| 国产美女精品一区二区三区| av一区二区三区在线| 日韩一区二区三区观看| 亚洲你懂的在线视频| 久久精品噜噜噜成人av农村| 91小视频免费观看| 久久久噜噜噜久久中文字幕色伊伊| 亚洲自拍另类综合| 成人晚上爱看视频| 2021中文字幕一区亚洲| 亚洲专区一二三| 欧美老肥妇做.爰bbww视频| 国产欧美一区二区精品忘忧草| 亚洲国产精品影院| 99国产精品国产精品毛片| 精品剧情v国产在线观看在线| 亚洲欧洲综合另类在线| 成人性生交大合| 精品国产伦理网| 免费成人在线视频观看| 欧美日韩综合色| 亚洲欧美电影一区二区| 东方aⅴ免费观看久久av| 欧美va亚洲va在线观看蝴蝶网| 一二三区精品视频| 一本一道波多野结衣一区二区| 欧美高清一级片在线观看| 激情综合色丁香一区二区| 欧美一区二区三区四区视频| 亚洲成在线观看| 欧美无乱码久久久免费午夜一区 | 久久久三级国产网站| 日韩精品国产精品| 9191成人精品久久| 婷婷国产在线综合| 欧美午夜不卡在线观看免费| 一区二区三区欧美视频| 一本大道久久a久久精品综合| 国产精品久久久久久亚洲伦 | 亚洲天堂免费看| 97久久精品人人澡人人爽| 中文字幕中文字幕中文字幕亚洲无线| 成人午夜私人影院|