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

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

?? tableitem.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */public Image getImage (int index) {	checkWidget();	if (index == 0) return super.getImage ();	if (images != null) {		if (0 <= index && index < images.length) return images [index];	}	return null;}/** * Returns a rectangle describing the size and location * relative to its parent of an image at a column in the * table. * * @param index the index that specifies the column * @return the receiver's bounding image rectangle * * @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 Rectangle getImageBounds (int index) {	checkWidget();	int itemIndex = parent.indexOf (this);	if (itemIndex == -1) return new Rectangle (0, 0, 0, 0);	int hwnd = parent.handle;		int hwndHeader =  OS.SendMessage (hwnd, OS.LVM_GETHEADER, 0, 0);	int count = OS.SendMessage (hwndHeader, OS.HDM_GETITEMCOUNT, 0, 0);	if (!(0 <= index && index < count)) return new Rectangle (0, 0, 0, 0);	int gridWidth = parent.getLinesVisible () ? parent.getGridLineWidth () : 0;		/*	* Feature in Windows.  Calling LVM_GETSUBITEMRECT with LVIR_ICON and	* zero for the column number gives the bounds of the icon (despite the	* fact that this behaivor is only documented for values greater than	* one).	*/	RECT rect = new RECT ();	rect.top = index;	rect.left = OS.LVIR_ICON;	OS.SendMessage (hwnd, OS. LVM_GETSUBITEMRECT, itemIndex, rect);	if (index == 0) {		rect.left -= gridWidth;	}	int width = Math.max (0, rect.right - rect.left - gridWidth);	int height = Math.max (0, rect.bottom - rect.top - gridWidth);		/*	* Feature in Windows.  LVM_GETSUBITEMRECT returns a small width	* value even when the subitem does not contain an image.  The	* fix is to detect this case and set the width to zero.	*/	if (index != 0) {		LVITEM lvItem = new LVITEM ();		lvItem.mask = OS.LVIF_IMAGE;		lvItem.iItem = itemIndex;		lvItem.iSubItem = index;		OS.SendMessage (hwnd, OS.LVM_GETITEM, 0, lvItem);		if (lvItem.iImage < 0) width = 0;	}	/*	* Bug in Windows.  In version 5.80 of COMCTL32.DLL, the top	* of the rectangle returned by LVM_GETSUBITEMRECT is off by	* the grid width when the grid is visible.  The fix is to	* move the top of the rectangle up by the grid width.	*/	if ((OS.COMCTL32_MAJOR << 16 | OS.COMCTL32_MINOR) >= (5 << 16 | 80)) {		rect.top -= gridWidth;	}	return new Rectangle (rect.left + gridWidth, rect.top + gridWidth, width, height);}/** * Gets the image indent. * * @return the indent * * @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 getImageIndent () {	checkWidget();	return imageIndent;}/** * Returns the receiver's parent, which must be a <code>Table</code>. * * @return the receiver's parent * * @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 Table getParent () {	checkWidget();	return parent;}/** * Returns the text stored at the given column index in the receiver, * or empty string if the text has not been set. * * @param index the column index * @return the text stored at the given column index in 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> * @exception SWTError <ul> *    <li>ERROR_CANNOT_GET_TEXT - if the column at index does not exist</li> * </ul> */public String getText (int index) {	checkWidget();	if (index == 0) return super.getText ();	if (strings != null) {		if (0 <= index && index < strings.length) {			String string = strings [index];			return string != null ? string : "";		}	}	return "";}void redraw (int column, boolean drawText, boolean drawImage) {	if ((parent.style & SWT.VIRTUAL) != 0) cached = true;	if (parent.ignoreRedraw || parent.drawCount != 0) return;	int hwnd = parent.handle;	if (OS.IsWindowVisible (hwnd)) {		RECT rect = new RECT ();		int index = parent.indexOf (this);		if (column == -1) {			OS.SendMessage (hwnd, OS.LVM_REDRAWITEMS, index, index);		} else {			if (drawText) rect.left |= OS.LVIR_LABEL;			if (drawImage) rect.left |= OS.LVIR_ICON;			if (column == 0) {				if (OS.SendMessage (hwnd, OS.LVM_GETITEMRECT, index, rect) != 0) {						OS.InvalidateRect (hwnd, rect, true);				}			} else {				rect.top = column;				if (OS.SendMessage (hwnd, OS. LVM_GETSUBITEMRECT, index, rect) != 0) {					if (drawText && !drawImage && images != null) {						RECT iconRect = new RECT ();						iconRect.left = OS.LVIR_ICON;						iconRect.top = column;						if (OS.SendMessage (hwnd, OS. LVM_GETSUBITEMRECT, index, iconRect) != 0) {							/*							* Feature in Windows.  LVM_GETSUBITEMRECT returns a small width							* value even when the subitem does not contain an image.  The							* fix is to detect this case and avoid subtracting the image							* from the damage rectangle. 							*/							boolean fixWidth = true;							if (column != 0) {								LVITEM lvItem = new LVITEM ();								lvItem.mask = OS.LVIF_IMAGE;								lvItem.iItem = index;								lvItem.iSubItem = column;								OS.SendMessage (hwnd, OS.LVM_GETITEM, 0, lvItem);								if (lvItem.iImage < 0) fixWidth = false;							}							if (fixWidth) rect.left = iconRect.right;							}					}					OS.InvalidateRect (hwnd, rect, true);				}			}		}	}}void releaseChild () {	super.releaseChild ();	parent.destroyItem (this);}void releaseWidget () {	super.releaseWidget ();	parent = null;	strings = null;	images = null;	cellBackground = cellForeground = cellFont = null;}/** * Sets the receiver's background color to the color specified * by the argument, or to the default system color for the item * if the argument is null. * * @param color the new color (or null) * * @exception IllegalArgumentException <ul> *    <li>ERROR_INVALID_ARGUMENT - if the argument 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> *  * @since 2.0 *  */public void setBackground (Color color) {	checkWidget ();	if (color != null && color.isDisposed ()) {		SWT.error (SWT.ERROR_INVALID_ARGUMENT);	}	int pixel = -1;	if (color != null) {		parent.customDraw = true;		pixel = color.handle;	}	if (background == pixel) return;	background = pixel;	redraw (-1, true, true);}/** * Sets the background color at the given column index in the receiver  * to the color specified by the argument, or to the default system color for the item * if the argument is null. * * @param index the column index * @param color the new color (or null) * * @exception IllegalArgumentException <ul> *    <li>ERROR_INVALID_ARGUMENT - if the argument 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> *  * @since 3.0 *  */public void setBackground (int index, Color color) {	checkWidget ();	if (color != null && color.isDisposed ()) {		SWT.error (SWT.ERROR_INVALID_ARGUMENT);	}	int count = Math.max (1, parent.getColumnCount ());	if (0 > index || index > count - 1) return;	int pixel = -1;	if (color != null) {		parent.customDraw = true;		pixel = color.handle;	}	if (cellBackground == null) {		cellBackground = new int [count];		for (int i = 0; i < count; i++) {			cellBackground [i] = -1;		}	}	if (cellBackground [index] == pixel) return;	cellBackground [index] = pixel;	redraw (index, true, true);}/** * Sets the checked state of the checkbox for this item.  This state change  * only applies if the Table was created with the SWT.CHECK style. * * @param checked the new checked state of the checkbox * * @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 setChecked (boolean checked) {	checkWidget();	if ((parent.style & SWT.CHECK) == 0) return;	if (this.checked == checked) return;	setChecked (checked, false);}void setChecked (boolean checked, boolean notify) {	this.checked = checked;	if (notify) {		Event event = new Event();		event.item = this;		event.detail = SWT.CHECK;		parent.postEvent (SWT.Selection, event);	}	redraw (-1, true, true);}/** * Sets the font that the receiver will use to paint textual information * for this item to the font specified by the argument, or to the default font * for that kind of control if the argument is null. * * @param font the new font (or null) * * @exception IllegalArgumentException <ul> *    <li>ERROR_INVALID_ARGUMENT - if the argument 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> *  * @since 3.0 */public void setFont (Font font){	checkWidget ();	if (font != null && font.isDisposed ()) {		SWT.error (SWT.ERROR_INVALID_ARGUMENT);	}	int hFont = -1;	if (font != null) {		parent.customDraw = true;		hFont = font.handle;	}	if (this.font == hFont) return;	this.font = hFont;	/*	* Bug in Windows.  Despite the fact that every item in the	* table always has LPSTR_TEXTCALLBACK, Windows caches the	* bounds for the selected items.  This means that 	* when you change the string to be something else, Windows	* correctly asks you for the new string but when the item	* is selected, the selection draws using the bounds of the	* previous item.  The fix is to reset LPSTR_TEXTCALLBACK	* even though it has not changed, causing Windows to flush	* cached bounds.	*/	if ((parent.style & SWT.VIRTUAL) == 0 && cached) {		int itemIndex = parent.indexOf (this);		if (itemIndex != -1) {			int hwnd = parent.handle;			LVITEM lvItem = new LVITEM ();			lvItem.mask = OS.LVIF_TEXT;			lvItem.iItem = itemIndex;			lvItem.pszText = OS.LPSTR_TEXTCALLBACK;			OS.SendMessage (hwnd, OS.LVM_SETITEM, 0, lvItem);			cached = false;		}	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一区二区精品在线观看| 99久久er热在这里只有精品66| 国产色产综合色产在线视频| 欧美久久一二三四区| 91精品91久久久中77777| 成人午夜电影网站| 国产成人在线视频免费播放| 国产综合成人久久大片91| 蜜桃av一区二区在线观看| 蜜桃av一区二区| 蜜臀久久99精品久久久画质超高清| 日韩av在线免费观看不卡| 日韩高清一级片| 精品一区二区三区不卡| 久久超碰97人人做人人爱| 国产在线麻豆精品观看| 国产传媒欧美日韩成人| www..com久久爱| 91精品办公室少妇高潮对白| 欧美亚洲一区二区三区四区| 欧美电影在哪看比较好| 欧美成人一区二区三区| 国产日韩成人精品| 亚洲欧洲综合另类| 亚洲成人av一区二区三区| 首页综合国产亚洲丝袜| 国产一区高清在线| av成人免费在线观看| 欧美日韩成人综合| 久久色中文字幕| 亚洲精品欧美激情| 日本成人超碰在线观看| 国产久卡久卡久卡久卡视频精品| 懂色av一区二区在线播放| 91黄视频在线| 日韩精品在线看片z| 国产精品免费aⅴ片在线观看| 亚洲欧美日韩国产综合在线 | 日韩电影网1区2区| 裸体健美xxxx欧美裸体表演| 成人18视频日本| 在线不卡a资源高清| 成人欧美一区二区三区1314| 午夜电影一区二区| 懂色一区二区三区免费观看| 欧美二区乱c少妇| 亚洲欧美国产毛片在线| 久久9热精品视频| 91成人免费在线视频| 91精品国产乱| 亚洲精品少妇30p| 国产精品白丝jk黑袜喷水| 在线观看不卡视频| 国产精品美日韩| 国产中文字幕精品| 91精品欧美一区二区三区综合在| 亚洲视频一二三区| 麻豆传媒一区二区三区| 欧美调教femdomvk| 国产精品久久看| 亚洲一区二区高清| 99精品久久99久久久久| 久久久99免费| 男女激情视频一区| 91精品国产91久久久久久一区二区| 中文字幕日韩精品一区| 成人一区二区三区视频在线观看| 欧美变态tickling挠脚心| 亚洲一区二区三区免费视频| av在线不卡免费看| 亚洲国产成人一区二区三区| 麻豆成人久久精品二区三区红 | 国产精品12区| 精品久久五月天| 青青草原综合久久大伊人精品| 欧美性色黄大片| 亚洲在线中文字幕| 91丨porny丨国产| 国产精品伦理一区二区| 国产成人在线影院| 国产精品美女久久久久高潮| 国产乱码精品一区二区三区av| 日韩免费看的电影| 裸体歌舞表演一区二区| 精品国产一区久久| 国产精品一区在线观看乱码 | 久久精品视频在线免费观看| 精品制服美女丁香| 久久人人爽人人爽| 国产成人在线视频网址| 国产精品毛片a∨一区二区三区| 粉嫩嫩av羞羞动漫久久久| 久久精品一级爱片| 国产91精品一区二区| 国产精品久久久久影院色老大 | 一区二区三区资源| 欧美精品在线视频| 激情成人综合网| 中文字幕乱码一区二区免费| 91丝袜高跟美女视频| 一区二区三区在线免费观看| 欧美三级乱人伦电影| 久草在线在线精品观看| 国产欧美一区二区三区在线看蜜臀| 成人伦理片在线| 亚洲一卡二卡三卡四卡无卡久久 | 26uuu亚洲| 岛国精品在线观看| 亚洲综合网站在线观看| 91精品国产综合久久久蜜臀粉嫩| 国产真实乱对白精彩久久| 综合中文字幕亚洲| 欧美精品日韩综合在线| 国产福利精品导航| 亚欧色一区w666天堂| 久久久噜噜噜久久中文字幕色伊伊| 成人免费看黄yyy456| 三级在线观看一区二区| 国产日韩欧美麻豆| 这里只有精品99re| 成人av网站免费观看| 日韩成人dvd| √…a在线天堂一区| 欧美电影精品一区二区| 色丁香久综合在线久综合在线观看| 蜜桃视频在线观看一区| 一区二区三区中文字幕| 久久精品免视看| 制服视频三区第一页精品| av电影天堂一区二区在线| 久久99久久99小草精品免视看| 亚洲人成网站影音先锋播放| 久久久久亚洲蜜桃| 日韩免费观看高清完整版| 91福利国产成人精品照片| 丁香另类激情小说| 麻豆freexxxx性91精品| 首页国产欧美久久| 亚洲成人激情av| 综合在线观看色| 国产精品三级视频| 久久午夜国产精品| 亚洲精品在线免费播放| 91精品国产综合久久精品性色| 91免费国产在线| 成人国产在线观看| 国产 日韩 欧美大片| 国产在线播放一区二区三区| 麻豆久久久久久久| 免费高清不卡av| 美脚の诱脚舐め脚责91 | 国产女人18毛片水真多成人如厕 | 国产一区二区不卡老阿姨| 久久99久久99| 久久av资源网| 国产一区美女在线| 国产福利精品一区二区| 国产精品白丝av| 成人一级片在线观看| 成人动漫精品一区二区| 成人av电影免费在线播放| 国产精品伊人色| 大白屁股一区二区视频| 成人av电影在线网| 91豆麻精品91久久久久久| 欧美视频完全免费看| 911精品产国品一二三产区| 7777女厕盗摄久久久| 欧美一卡二卡在线| 久久综合九色综合97婷婷| 国产色综合一区| 国产精品色哟哟| 一区二区三区四区av| 午夜欧美大尺度福利影院在线看| 视频一区中文字幕| 久久超级碰视频| 成人精品视频一区二区三区| 色综合天天做天天爱| 精品视频免费在线| 精品国产乱码久久久久久蜜臀 | www.成人网.com| 在线看日韩精品电影| 欧美日韩高清一区| 久久久久久99久久久精品网站| 国产精品国产精品国产专区不片| 一区二区三区蜜桃网| 日韩激情一区二区| 成人黄页在线观看| 日韩天堂在线观看| 精品国产乱码久久久久久1区2区| 亚洲国产精品av| 琪琪一区二区三区| www.在线成人| 日韩午夜三级在线| 怡红院av一区二区三区| 秋霞av亚洲一区二区三| 99精品1区2区| 久久精品一区八戒影视| 性感美女极品91精品| 成人动漫av在线|