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

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

?? list.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
		setScrollWidth (newWidth, false);	}	if (topCount > 0) {		topIndex -= topCount;		OS.SendMessage (handle, OS.LB_SETTOPINDEX, topIndex, 0);	}	if (i < newIndices.length) error (SWT.ERROR_ITEM_NOT_REMOVED);}/** * Removes the item from the receiver at the given * zero-relative index. * * @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 ();	TCHAR buffer = null;	if ((style & SWT.H_SCROLL) != 0) {		int length = OS.SendMessage (handle, OS.LB_GETTEXTLEN, index, 0);		if (length == OS.LB_ERR) error (SWT.ERROR_ITEM_NOT_REMOVED);		buffer = new TCHAR (getCodePage (), length + 1);		int result = OS.SendMessage (handle, OS.LB_GETTEXT, index, buffer);		if (result == OS.LB_ERR) error (SWT.ERROR_ITEM_NOT_REMOVED);	}	int topIndex = OS.SendMessage (handle, OS.LB_GETTOPINDEX, 0, 0);	int result = OS.SendMessage (handle, OS.LB_DELETESTRING, index, 0);	if (result == OS.LB_ERR) {		int count = OS.SendMessage (handle, OS.LB_GETCOUNT, 0, 0);		if (0 <= index && index < count) error (SWT.ERROR_ITEM_NOT_REMOVED);		error (SWT.ERROR_INVALID_RANGE);	}	if ((style & SWT.H_SCROLL) != 0) setScrollWidth (buffer, false);	if (index < topIndex) {		OS.SendMessage (handle, OS.LB_SETTOPINDEX, topIndex - 1, 0);	}}/** * Removes the items from the receiver 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.LB_GETCOUNT, 0, 0);	if (!(0 <= start && start <= end && end < count)) {		error (SWT.ERROR_INVALID_RANGE);	}	if (start == 0 && end == count - 1) {		removeAll ();		return;	} 	int topIndex = OS.SendMessage (handle, OS.LB_GETTOPINDEX, 0, 0);	RECT rect = null;	int hDC = 0, oldFont = 0, newFont = 0, newWidth = 0;	if ((style & SWT.H_SCROLL) != 0) {		rect = new RECT ();		hDC = OS.GetDC (handle);		newFont = OS.SendMessage (handle, OS.WM_GETFONT, 0, 0);		if (newFont != 0) oldFont = OS.SelectObject (hDC, newFont);	}	int cp = getCodePage ();	int index = start;	int flags = OS.DT_CALCRECT | OS.DT_SINGLELINE | OS.DT_NOPREFIX;	while (index <= end) {		TCHAR buffer = null;		if ((style & SWT.H_SCROLL) != 0) {			int length = OS.SendMessage (handle, OS.LB_GETTEXTLEN, start, 0);			if (length == OS.LB_ERR) break;			buffer = new TCHAR (cp, length + 1);			int result = OS.SendMessage (handle, OS.LB_GETTEXT, start, buffer);			if (result == OS.LB_ERR) break;		}		int result = OS.SendMessage (handle, OS.LB_DELETESTRING, start, 0);		if (result == OS.LB_ERR) break;		if ((style & SWT.H_SCROLL) != 0) {			OS.DrawText (hDC, buffer, -1, rect, flags);			newWidth = Math.max (newWidth, rect.right - rect.left);		}		index++;	}	if ((style & SWT.H_SCROLL) != 0) {		if (newFont != 0) OS.SelectObject (hDC, oldFont);		OS.ReleaseDC (handle, hDC);		setScrollWidth (newWidth, false);	}	if (end < topIndex) {		topIndex -= end - start + 1;		OS.SendMessage (handle, OS.LB_SETTOPINDEX, topIndex, 0);	}	if (index <= end) error (SWT.ERROR_ITEM_NOT_REMOVED);}/** * 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) {	checkWidget ();	int index = indexOf (string, 0);	if (index == -1) error (SWT.ERROR_INVALID_ARGUMENT);	remove (index);}/** * Removes all of the items from the receiver. * <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.LB_RESETCONTENT, 0, 0);	if ((style & SWT.H_SCROLL) != 0) {		OS.SendMessage (handle, OS.LB_SETHORIZONTALEXTENT, 0, 0);	}}/** * 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 items at the given zero-relative indices in the receiver. * The current selection is not cleared before the new items are selected. * <p> * If the item at a given index is not selected, it is selected. * If the item at a given index was already selected, it remains selected. * Indices that are out of range and duplicate indices are ignored. * If the receiver is single-select and multiple indices are specified, * then all indices are ignored. * * @param indices the array of indices for the items to select * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the array of indices 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 List#setSelection(int[]) */public void select (int [] indices) {	checkWidget ();	if (indices == null) error (SWT.ERROR_NULL_ARGUMENT);	int length = indices.length;	if (length == 0 || ((style & SWT.SINGLE) != 0 && length > 1)) return;	select (indices, false);}void select (int [] indices, boolean scroll) {	int i = 0;	while (i < indices.length) {		int index = indices [i];		if (index != -1) {			select (index, false);		}		i++;	}	if (scroll) showSelection ();}/** * 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 ();	select (index, false);}void select (int index, boolean scroll) {	if (index < 0) return;	int count = OS.SendMessage (handle, OS.LB_GETCOUNT, 0, 0);	if (index >= count) return;	if (scroll) {		if ((style & SWT.SINGLE) != 0) {			OS.SendMessage (handle, OS.LB_SETCURSEL, index, 0);		} else {			OS.SendMessage (handle, OS.LB_SETSEL, 1, index);			}				return;	}	int topIndex = OS.SendMessage (handle, OS.LB_GETTOPINDEX, 0, 0);	RECT itemRect = new RECT (), selectedRect = null;	OS.SendMessage (handle, OS.LB_GETITEMRECT, index, itemRect);	boolean redraw = drawCount == 0 && OS.IsWindowVisible (handle);	if (redraw) {		OS.UpdateWindow (handle);		OS.SendMessage (handle, OS.WM_SETREDRAW, 0, 0);	}	int focusIndex = -1;	if ((style & SWT.SINGLE) != 0) {		int oldIndex = OS.SendMessage (handle, OS.LB_GETCURSEL, 0, 0);		if (oldIndex != -1) {			selectedRect = new RECT ();			OS.SendMessage (handle, OS.LB_GETITEMRECT, oldIndex, selectedRect);		}		OS.SendMessage (handle, OS.LB_SETCURSEL, index, 0);	} else {		focusIndex = OS.SendMessage (handle, OS.LB_GETCARETINDEX, 0, 0);		OS.SendMessage (handle, OS.LB_SETSEL, 1, index);	}	if ((style & SWT.MULTI) != 0) {		if (focusIndex != -1) {			OS.SendMessage (handle, OS.LB_SETCARETINDEX, focusIndex, 0);		}	}	OS.SendMessage (handle, OS.LB_SETTOPINDEX, topIndex, 0);	if (redraw) {		OS.SendMessage (handle, OS.WM_SETREDRAW, 1, 0);		OS.ValidateRect (handle, null);		OS.InvalidateRect (handle, itemRect, true);		if (selectedRect != null) {			OS.InvalidateRect (handle, selectedRect, true);		}	}}/** * Selects the items in the range specified by the given zero-relative * indices in the receiver. The range of indices is inclusive. * The current selection is not cleared before the new items are selected. * <p> * If an item in the given range is not selected, it is selected. * If an item in the given range was already selected, it remains selected. * Indices that are out of range are ignored and no items will be selected * if start is greater than end. * If the receiver is single-select and there is more than one item in the * given range, then all indices are ignored. * * @param start the start of the range * @param end the end of the range * * @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 List#setSelection(int,int) */public void select (int start, int end) {	checkWidget ();	if (end < 0 || start > end || ((style & SWT.SINGLE) != 0 && start != end)) return;	int count = OS.SendMessage (handle, OS.LB_GETCOUNT, 0, 0);	if (count == 0 || start >= count) return;	start = Math.max (0, start);	end = Math.min (end, count - 1);	if ((style & SWT.SINGLE) != 0) {		select (start, false);	} else {		select (start, end, false);	}}void select (int start, int end, boolean scroll) {	/*	* Note that when start = end, LB_SELITEMRANGEEX	* deselects the item.	*/	if (start == end) {		select (start, scroll);		return;	}	OS.SendMessage (handle, OS.LB_SELITEMRANGEEX, start, end);	if (scroll) showSelection ();}	/** * Selects all of the items in the receiver. * <p> * If the receiver is single-select, do nothing. * * @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 selectAll () {	checkWidget ();	if ((style & SWT.SINGLE) != 0) return;	OS.SendMessage (handle, OS.LB_SETSEL, 1, -1);}void setBounds (int x, int y, int width, int height, int flags) {	/*	* Bug in Windows.  If the receiver is scrolled horizontally	* and is resized, the list does not redraw properly.  The fix	* is to redraw the control when resizing is not deferred and	* the new size is different from the previous size.	*/	if (parent.lpwp != null || (flags & OS.SWP_NOSIZE) != 0) {			super.setBounds (x, y, width, height, flags);		return;	}	RECT rect = new RECT ();	OS.GetWindowRect (handle, rect);	int oldWidth = rect.right - rect.left;	int oldHeight = rect.bottom - rect.top;	super.setBounds (x, y, width, height, flags);	if (oldWidth == width && oldHeight == height) return;	SCROLLINFO info = new SCROLLINFO ();	info.cbSize = SCROLLINFO.sizeof;	info.fMask = OS.SIF_POS;	if (!OS.GetScrollInfo (handle, OS.SB_HORZ, info)) return;	if (info.nPos != 0) OS.InvalidateRect (handle, null, true);}void setFocusIndex (int index) {//	checkWidget ();		int count = OS.SendMessage (handle, OS.LB_GETCOUNT, 0, 0);	if (!(0 <= index && index < count)) return;	OS.SendMessage (handle, OS.LB_SETCARETINDEX, index, 0);}public void setFont (Font font) {	checkWidget ();	super.setFont (font);	if ((style & SWT.H_SCROLL) != 0) setScrollWidth ();}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久国产生活片100| 国产丝袜美腿一区二区三区| 国产精品动漫网站| 91社区在线播放| 天堂午夜影视日韩欧美一区二区| 欧美成人乱码一区二区三区| av电影在线观看完整版一区二区 | 香蕉加勒比综合久久| 欧美疯狂做受xxxx富婆| 国产一区 二区| 亚洲大片在线观看| 石原莉奈在线亚洲三区| 亚洲成人av中文| 美女脱光内衣内裤视频久久网站| 一区在线中文字幕| 2017欧美狠狠色| 7777精品伊人久久久大香线蕉最新版| 成人av综合在线| 久久er99热精品一区二区| 精品无人区卡一卡二卡三乱码免费卡 | 色婷婷精品久久二区二区蜜臀av| 免费日本视频一区| 亚洲自拍欧美精品| 中文字幕在线观看一区| 亚洲乱码国产乱码精品精的特点| 久久免费偷拍视频| 日韩欧美国产不卡| 欧美美女bb生活片| 欧美大片在线观看一区二区| 久久久国产精品午夜一区ai换脸| 亚洲欧洲国产日韩| 日本中文字幕一区二区有限公司| 亚洲午夜三级在线| 亚洲另类春色校园小说| 日韩电影网1区2区| 国产999精品久久| 国产成人无遮挡在线视频| 青青草视频一区| 成人av在线播放网址| 欧美制服丝袜第一页| 日本韩国欧美三级| 欧美日韩一级片网站| 欧美日韩亚洲国产综合| www精品美女久久久tv| 伊人性伊人情综合网| 国产综合色在线| 国产成人av电影在线| 欧美日韩精品系列| 在线播放视频一区| 亚洲视频香蕉人妖| 午夜精品一区二区三区电影天堂 | 日韩无一区二区| 日韩女优av电影在线观看| 欧美国产欧美综合| 亚洲视频你懂的| 国产九九视频一区二区三区| 成人黄色国产精品网站大全在线免费观看 | 亚洲一区二区三区爽爽爽爽爽| 国产综合久久久久影院| 7777精品久久久大香线蕉| 国产精品二区一区二区aⅴ污介绍| 极品少妇xxxx精品少妇偷拍| 欧美日韩三级在线| 一区二区在线观看免费视频播放| 99国内精品久久| 欧美三级资源在线| 亚洲人成在线播放网站岛国| 亚洲电影你懂得| 一本色道久久综合狠狠躁的推荐| 中文av一区特黄| 日韩毛片在线免费观看| 丁香激情综合五月| 欧美系列日韩一区| 精品国产免费久久| 亚洲欧美日韩综合aⅴ视频| 成人美女视频在线观看| 欧美高清在线一区二区| 成人性视频免费网站| 欧美国产激情二区三区| 成人激情视频网站| 亚洲欧美另类小说视频| 91在线小视频| 亚洲一区二区三区四区五区中文 | 欧美色窝79yyyycom| 一区二区三区在线免费播放| 国产一区二区电影| 久久久精品中文字幕麻豆发布| 国产在线一区观看| 国产欧美一区二区精品性色超碰 | 欧美xxx久久| 国产一区在线看| 国产精品久久久久aaaa| 94-欧美-setu| 图片区小说区区亚洲影院| 日韩一区二区免费电影| 国产a视频精品免费观看| 国产精品国产三级国产aⅴ原创 | 综合在线观看色| 欧美亚洲综合色| 蜜桃免费网站一区二区三区| 久久久亚洲高清| 色网站国产精品| 美女高潮久久久| 国产精品私房写真福利视频| 欧美系列亚洲系列| 国产综合色产在线精品| 一区二区三区日韩在线观看| 欧美一级在线免费| 日韩黄色免费电影| 久久视频一区二区| 色又黄又爽网站www久久| 老司机午夜精品99久久| 欧美—级在线免费片| 欧美日韩一级黄| 国产91精品免费| 丝瓜av网站精品一区二区| 久久久精品免费免费| 欧美日韩日日摸| 成人一区二区三区视频在线观看| 亚洲成a人在线观看| 国产精品天美传媒| 日韩三级高清在线| 色婷婷精品久久二区二区蜜臀av | 国产精品久久看| 欧美videofree性高清杂交| 一本一道久久a久久精品综合蜜臀| 蜜桃av一区二区三区| 亚洲人成小说网站色在线| 日韩欧美一级片| 欧美日韩视频一区二区| 99久久99久久免费精品蜜臀| 久草中文综合在线| 午夜私人影院久久久久| 国产精品久久久久久久午夜片| 欧美精品一区二区三区蜜臀 | 欧美成人vps| 欧美日韩aaaaa| 91官网在线观看| 成人av集中营| 国产成+人+日韩+欧美+亚洲| 蜜臀av一区二区| 蜜乳av一区二区| 日韩高清在线电影| 婷婷一区二区三区| 亚洲一区在线看| 亚洲一区二区欧美| 亚洲国产精品尤物yw在线观看| 亚洲免费av在线| 亚洲综合一二区| 亚洲福利电影网| 亚洲国产精品精华液网站| 亚洲一区在线免费观看| 亚洲成在线观看| 五月婷婷综合激情| 日韩中文欧美在线| 日本va欧美va精品| 久久机这里只有精品| 国产一区二区精品久久91| 精品一区中文字幕| 狠狠狠色丁香婷婷综合激情| 极品少妇xxxx精品少妇| 国产老妇另类xxxxx| 国产成人精品综合在线观看 | 午夜av区久久| 美女网站色91| 国产河南妇女毛片精品久久久| 成人免费视频视频| 欧洲另类一二三四区| 欧美日韩一区二区三区四区 | 亚洲成人黄色小说| 亚洲va在线va天堂| 久久精品国产77777蜜臀| 久久综合综合久久综合| 国产精品亚洲一区二区三区妖精| 国产成人在线色| 在线日韩国产精品| 这里只有精品视频在线观看| 精品久久久久一区二区国产| 国产色产综合产在线视频| 中文字幕一区二区日韩精品绯色| 亚洲一二三四久久| 美脚の诱脚舐め脚责91| 成人黄动漫网站免费app| 欧美三级三级三级爽爽爽| 欧美一区二区三区白人| 欧美国产精品一区二区三区| 亚洲一区二区欧美日韩| 国内成+人亚洲+欧美+综合在线| 成人a区在线观看| 制服.丝袜.亚洲.中文.综合| 中文字幕av一区二区三区| 亚洲成人黄色小说| 丁香婷婷综合色啪| 欧美精品欧美精品系列| 国产精品二区一区二区aⅴ污介绍| 午夜精品一区在线观看| 9l国产精品久久久久麻豆| 欧美乱熟臀69xxxxxx| 国产精品每日更新在线播放网址| 婷婷久久综合九色国产成人|