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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? treeitem.java

?? 源碼為Eclipse開源開發(fā)平臺(tái)桌面開發(fā)工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 2 頁
字號(hào):
 * </ul> */public boolean getGrayed () {	checkWidget ();	if ((parent.style & SWT.CHECK) == 0) return false;	int hwnd = parent.handle;	TVITEM tvItem = new TVITEM ();	tvItem.mask = OS.TVIF_HANDLE | OS.TVIF_STATE;	tvItem.stateMask = OS.TVIS_STATEIMAGEMASK;	tvItem.hItem = handle;	int result = OS.SendMessage (hwnd, OS.TVM_GETITEM, 0, tvItem);	return (result != 0) && ((tvItem.state >> 12) > 2);}/** * Returns the number of items contained in the receiver * that are direct item children of the receiver. * * @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> */public int getItemCount () {	checkWidget ();	int hwnd = parent.handle;	int hItem = OS.SendMessage (hwnd, OS.TVM_GETNEXTITEM, OS.TVGN_CHILD, handle);	if (hItem == 0) return 0;	return parent.getItemCount (hItem);}/** * Returns an array of <code>TreeItem</code>s which are the * direct item children of the receiver. * <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 receiver's 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> */public TreeItem [] getItems () {	checkWidget ();	int hwnd = parent.handle;	int hItem = OS.SendMessage (hwnd, OS.TVM_GETNEXTITEM, OS.TVGN_CHILD, handle);	if (hItem == 0) return new TreeItem [0];	return parent.getItems (hItem);}/** * Returns the receiver's parent, which must be a <code>Tree</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 Tree getParent () {	checkWidget ();	return parent;}/** * Returns the receiver's parent item, which must be a * <code>TreeItem</code> or null when the receiver is a * root. * * @return the receiver's parent 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 TreeItem getParentItem () {	checkWidget ();	int hwnd = parent.handle;	TVITEM tvItem = new TVITEM ();	tvItem.mask = OS.TVIF_HANDLE | OS.TVIF_PARAM;	tvItem.hItem = OS.SendMessage (hwnd, OS.TVM_GETNEXTITEM, OS.TVGN_PARENT, handle);	if (tvItem.hItem == 0) return null;	OS.SendMessage (hwnd, OS.TVM_GETITEM, 0, tvItem);	return parent.items [tvItem.lParam];}void redraw () {	if (parent.drawCount > 0) return;	int hwnd = parent.handle;	if (!OS.IsWindowVisible (hwnd)) return;	RECT rect = new RECT ();	rect.left = handle;	if (OS.SendMessage (hwnd, OS.TVM_GETITEMRECT, 1, rect) != 0) {		OS.InvalidateRect (hwnd, rect, true);	}}void releaseChild () {	super.releaseChild ();	parent.destroyItem (this);}void releaseHandle () {	super.releaseHandle ();	handle = 0;}void releaseWidget () {	super.releaseWidget ();	parent = 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 ();}/** * Sets the checked state of the receiver. * <p> * * @param checked the new checked 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 setChecked (boolean checked) {	checkWidget ();	if ((parent.style & SWT.CHECK) == 0) return;	int hwnd = parent.handle;	TVITEM tvItem = new TVITEM ();	tvItem.mask = OS.TVIF_HANDLE | OS.TVIF_STATE;	tvItem.stateMask = OS.TVIS_STATEIMAGEMASK;	tvItem.hItem = handle;	OS.SendMessage (hwnd, OS.TVM_GETITEM, 0, tvItem);	int state = tvItem.state >> 12;	if (checked) {		if ((state & 0x1) != 0) state++;	} else {		if ((state & 0x1) == 0) --state;	}	tvItem.state = state << 12;	OS.SendMessage (hwnd, OS.TVM_SETITEM, 0, tvItem);}/** * Sets the expanded state of the receiver. * <p> * * @param expanded the new expanded 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 setExpanded (boolean expanded) {	checkWidget ();	/*	* Feature in Windows.  When the user collapses the root	* of a subtree that has the focus item, Windows moves	* the selection to the root of the subtree and issues	* a TVN_SELCHANGED to inform the programmer that the	* seletion has changed.  When the programmer collapses	* the same subtree using TVM_EXPAND, Windows does not	* send the selection changed notification.  This is not	* strictly wrong but is inconsistent.  The fix is to notice	* that the selection has changed and issue the event.	*/	int hwnd = parent.handle;	int hOldItem = OS.SendMessage (hwnd, OS.TVM_GETNEXTITEM, OS.TVGN_CARET, 0);	parent.ignoreExpand = true;	OS.SendMessage (hwnd, OS.TVM_EXPAND, expanded ? OS.TVE_EXPAND : OS.TVE_COLLAPSE, handle);	parent.ignoreExpand = false;	int hNewItem = OS.SendMessage (hwnd, OS.TVM_GETNEXTITEM, OS.TVGN_CARET, 0);	if (hNewItem != hOldItem) {		Event event = new Event ();		if (hNewItem != 0) {			TVITEM tvItem = new TVITEM ();			tvItem.mask = OS.TVIF_HANDLE | OS.TVIF_PARAM;			tvItem.hItem = hNewItem;			if (OS.SendMessage (hwnd, OS.TVM_GETITEM, 0, tvItem) != 0) {				event.item = parent.items [tvItem.lParam];				}			parent.hAnchor = hNewItem;		}		parent.sendEvent (SWT.Selection, event);	}}/** * 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.  When the font is changed for an item,	* the bounds for the item are not updated, causing the text	* to be clipped.  The fix is to reset the text, causing	* Windows to compute the new bounds using the new font.	*/	_setText (text);	redraw ();}/** * Sets the receiver's foreground 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) * * @since 2.0 *  * @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 setForeground (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 (foreground == pixel) return;	foreground = pixel;	redraw ();}/** * Sets the grayed state of the receiver. * <p> * * @param grayed the new grayed 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 setGrayed (boolean grayed) {	checkWidget ();	if ((parent.style & SWT.CHECK) == 0) return;	int hwnd = parent.handle;	TVITEM tvItem = new TVITEM ();	tvItem.mask = OS.TVIF_HANDLE | OS.TVIF_STATE;	tvItem.stateMask = OS.TVIS_STATEIMAGEMASK;	tvItem.hItem = handle;	OS.SendMessage (hwnd, OS.TVM_GETITEM, 0, tvItem);	int state = tvItem.state >> 12;	if (grayed) {		if (state <= 2) state +=2;	} else {		if (state > 2) state -=2;	}	tvItem.state = state << 12;	OS.SendMessage (hwnd, OS.TVM_SETITEM, 0, tvItem);}public void setImage (Image image) {	checkWidget ();	/*	* Feature in Windows.  When TVM_SETITEM is used to set	* an image for an item, the item redraws.  This happens	* because there is no easy way to know when a program	* has drawn on an image that is already in the control.	* However, an image that is an icon cannot be modified.	* The fix is to check for the same image when the image	* is an icon.	*/	if (image != null && image.type == SWT.ICON) {		if (image.equals (this.image)) return;	}	super.setImage (image);	int hwnd = parent.handle;	TVITEM tvItem = new TVITEM ();	tvItem.mask = OS.TVIF_HANDLE | OS.TVIF_IMAGE | OS.TVIF_SELECTEDIMAGE;	tvItem.iImage = parent.imageIndex (image);	tvItem.iSelectedImage = tvItem.iImage;	tvItem.hItem = handle;	OS.SendMessage (hwnd, OS.TVM_SETITEM, 0, tvItem);}public void setText (String string) {	checkWidget ();	if (string == null) error (SWT.ERROR_NULL_ARGUMENT);	/*	* Feature in Windows.  When TVM_SETITEM is used to set	* a string for an item that is equal to the string that	* is already there, the item redraws.  The fix is to	* check for this case and do nothing.	*/	if (string.equals (text)) return;	super.setText (string);	_setText (string);}}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久久精品免费观看国产蜜| 在线观看亚洲精品视频| 久久精品国产第一区二区三区| 亚洲精品中文在线影院| 亚洲女子a中天字幕| 中文字幕在线一区免费| 亚洲欧美怡红院| 国产精品第一页第二页第三页| 国产精品美女久久久久久久网站| 久久精品夜色噜噜亚洲a∨| 久久精品亚洲一区二区三区浴池| 国产女同性恋一区二区| 中文字幕精品—区二区四季| 亚洲欧美在线视频| 一区二区成人在线| 亚洲高清三级视频| 日韩精品乱码av一区二区| 美女诱惑一区二区| 精品在线观看视频| 成人免费视频网站在线观看| 成人av动漫网站| 日本高清无吗v一区| 精品视频在线免费| 日韩免费高清视频| 中文字幕精品三区| 亚洲国产视频直播| 免费观看久久久4p| 成人自拍视频在线| 欧洲一区二区av| 91 com成人网| 久久久精品免费免费| 国产精品大尺度| 午夜一区二区三区视频| 久久精品国产在热久久| 成人免费看视频| 91国产精品成人| 日韩欧美在线不卡| 国产精品毛片高清在线完整版| 亚洲资源在线观看| 麻豆成人免费电影| youjizz久久| 欧美精品电影在线播放| 久久久久久久久久久久电影| 中文字幕中文字幕在线一区| 婷婷综合另类小说色区| 国产精品18久久久久久久网站| 91原创在线视频| 欧美一区在线视频| 国产精品久久三| 日韩极品在线观看| 成人aa视频在线观看| 欧美日本在线一区| 国产精品久久久久久久久果冻传媒| 亚洲一区二区欧美激情| 国产精品99久久久久久宅男| 色狠狠桃花综合| 久久一二三国产| 亚洲国产日韩精品| 福利一区在线观看| 91精品欧美久久久久久动漫| 成人欧美一区二区三区白人| 青青青伊人色综合久久| 91蝌蚪porny| 亚洲精品在线观看网站| 一区二区三区欧美亚洲| 国产精品白丝jk黑袜喷水| 欧美日韩大陆一区二区| 国产精品嫩草99a| 久久国产精品色| 欧美性一二三区| 国产精品久久久久久久久果冻传媒 | 国产成人免费视频网站| 欧美日韩高清一区二区不卡| 国产精品家庭影院| 韩国精品主播一区二区在线观看| 欧美三级乱人伦电影| 国产精品久久久久久久岛一牛影视| 免费精品视频在线| 91精品国产综合久久久久久久| 亚洲欧美日韩国产一区二区三区 | 成人精品免费视频| 欧美成人精品3d动漫h| 亚洲成人激情社区| 91亚洲国产成人精品一区二三| 26uuu亚洲| 日本aⅴ精品一区二区三区| 91福利社在线观看| 亚洲欧美日韩精品久久久久| 成人蜜臀av电影| 国产视频一区二区在线| 精品亚洲国内自在自线福利| 欧美精品v日韩精品v韩国精品v| 亚洲精品日韩综合观看成人91| 丰满亚洲少妇av| 国产午夜三级一区二区三| 久久国产精品99精品国产 | 久久久久久综合| 国产在线精品一区二区不卡了| 日韩三级高清在线| 日本va欧美va精品发布| 欧美一区二区网站| 麻豆精品一区二区综合av| 欧美群妇大交群的观看方式| 午夜私人影院久久久久| 欧美电影影音先锋| 秋霞成人午夜伦在线观看| 日韩欧美中文字幕精品| 久久av老司机精品网站导航| 欧美电视剧在线观看完整版| 蜜桃传媒麻豆第一区在线观看| 欧美一区午夜视频在线观看| 美女一区二区久久| 欧美成人vps| 国产精品影视在线观看| 日本一区二区三区国色天香| 国产成人福利片| 国产精品日韩成人| 91蜜桃在线观看| 亚洲国产毛片aaaaa无费看 | 日韩一级黄色大片| 激情六月婷婷久久| 337p日本欧洲亚洲大胆精品| 国产成人精品aa毛片| 亚洲欧洲三级电影| 欧美中文字幕一区| 天堂av在线一区| 欧美电影免费观看完整版| 国产福利91精品| 中文字幕日韩一区| 欧洲国内综合视频| 五月综合激情网| 精品国产一二三区| 福利视频网站一区二区三区| 一区二区三区小说| 91精品国产乱| 国产91精品一区二区麻豆网站| 中文字幕字幕中文在线中不卡视频| 色av一区二区| 欧美a级理论片| 中文字幕不卡三区| 欧美亚日韩国产aⅴ精品中极品| 美女视频黄a大片欧美| 欧美国产一区二区| 欧美视频一区二区三区在线观看| 日本美女一区二区| 国产精品国产三级国产普通话99| 欧美日韩美少妇| 国产在线视频不卡二| 亚洲乱码国产乱码精品精的特点| 91麻豆精品国产91久久久更新时间| 精品一区二区三区日韩| 日韩码欧中文字| 日韩欧美的一区二区| av成人免费在线| 久久精品免费看| 尤物视频一区二区| 欧美精品一区二| 欧美日韩一卡二卡三卡| 国产成人精品免费一区二区| 天堂在线亚洲视频| 国产精品久久久久久久久免费桃花| 欧美精品777| 91日韩一区二区三区| 韩日av一区二区| 亚洲午夜免费视频| 中文字幕国产精品一区二区| 欧美日韩激情一区二区三区| 成人精品视频一区二区三区尤物| 五月天视频一区| 中文字幕一区二区三区不卡 | 亚洲第一成年网| 国产精品久久久久久亚洲毛片 | 色美美综合视频| 国产精品自拍三区| 视频一区免费在线观看| 亚洲婷婷国产精品电影人久久| 精品女同一区二区| 欧美日韩一区二区三区在线看| 成人午夜视频在线| 国产综合色产在线精品| 亚洲午夜在线视频| 亚洲视频中文字幕| 国产精品色一区二区三区| 欧美r级在线观看| 欧美顶级少妇做爰| 欧美在线播放高清精品| av在线这里只有精品| 国产一区二区0| 婷婷六月综合网| 亚洲一级二级在线| 亚洲男同1069视频| 国产精品乱人伦中文| 亚洲精品一区二区三区福利| 在线成人高清不卡| 欧美日韩一区二区三区四区| 色88888久久久久久影院野外| 成人app在线| 成人黄色一级视频| 黄色日韩网站视频| 久久99在线观看|