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

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

?? tablecolumn.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
	checkWidget ();	int index = parent.indexOf (this);	if (index == -1) return 0;	int hwnd = parent.handle;	return OS.SendMessage (hwnd, OS.LVM_GETCOLUMNWIDTH, index, 0);}/** * Causes the receiver to be resized to its preferred size. * For a composite, this involves computing the preferred size * from its layout, if there is one. * * @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 pack () {	checkWidget ();	int index = parent.indexOf (this);	if (index == -1) return;	int hwnd = parent.handle;	TCHAR buffer = new TCHAR (parent.getCodePage (), text, true);	int headerWidth = OS.SendMessage (hwnd, OS.LVM_GETSTRINGWIDTH, 0, buffer) + 10;	if (image != null) {		int margin = 0;		if ((OS.COMCTL32_MAJOR << 16 | OS.COMCTL32_MINOR) >= (5 << 16 | 80)) {			int hwndHeader = OS.SendMessage (hwnd, OS.LVM_GETHEADER, 0, 0);			margin = OS.SendMessage (hwndHeader, OS.HDM_GETBITMAPMARGIN, 0, 0);		} else {			margin = OS.GetSystemMetrics (OS.SM_CXEDGE) * 3;		}		Rectangle rect = image.getBounds ();		headerWidth += rect.width + margin * 2;	}	if ((parent.style & SWT.VIRTUAL) != 0) {		if (image == null) {			OS.SendMessage (hwnd, OS.LVM_SETCOLUMNWIDTH, index, OS.LVSCW_AUTOSIZE_USEHEADER);		} else {			OS.SendMessage (hwnd, OS.LVM_SETCOLUMNWIDTH, index, headerWidth);		}			} else {		OS.SendMessage (hwnd, OS.LVM_SETCOLUMNWIDTH, index, OS.LVSCW_AUTOSIZE);		int columnWidth = OS.SendMessage (hwnd, OS.LVM_GETCOLUMNWIDTH, index, 0);		/*		* Bug in Windows.  When LVM_SETCOLUMNWIDTH is used with LVSCW_AUTOSIZE		* where each item has I_IMAGECALLBACK but there are no images in the		* table, the size computed by LVM_SETCOLUMNWIDTH is to small for the		* first column, causing long items to be clipped with '...'.  The fix		* is to increase the value by a small amount. 		*/		if (index == 0 && parent.imageList == null) columnWidth += 2;		if (headerWidth > columnWidth) {			if (image == null) {				OS.SendMessage (hwnd, OS.LVM_SETCOLUMNWIDTH, index, OS.LVSCW_AUTOSIZE_USEHEADER);			} else {				OS.SendMessage (hwnd, OS.LVM_SETCOLUMNWIDTH, index, headerWidth);			}		} else {			if (index == 0) {				OS.SendMessage (hwnd, OS.LVM_SETCOLUMNWIDTH, index, columnWidth);			}		}	}}void releaseChild () {	super.releaseChild ();	parent.destroyItem (this);}void releaseWidget () {	super.releaseWidget ();	parent = null;}/** * Removes the listener from the collection of listeners who will * be notified when the control is moved or resized. * * @param listener the listener which should 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 ControlListener * @see #addControlListener */public void removeControlListener (ControlListener listener) {	checkWidget ();	if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);	if (eventTable == null) return;	eventTable.unhook (SWT.Move, listener);	eventTable.unhook (SWT.Resize, listener);}/** * Removes the listener from the collection of listeners who will * be notified when the control is selected. * * @param listener the listener which should 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);	}/** * Controls how text and images will be displayed in the receiver. * The argument should be one of <code>LEFT</code>, <code>RIGHT</code> * or <code>CENTER</code>. * * @param alignment the new alignment  * * @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 setAlignment (int alignment) {	checkWidget ();	if ((alignment & (SWT.LEFT | SWT.RIGHT | SWT.CENTER)) == 0) return;	int index = parent.indexOf (this);	if (index == -1 || index == 0) return;	style &= ~(SWT.LEFT | SWT.RIGHT | SWT.CENTER);	style |= alignment & (SWT.LEFT | SWT.RIGHT | SWT.CENTER);	int hwnd = parent.handle;	LVCOLUMN lvColumn = new LVCOLUMN ();	lvColumn.mask = OS.LVCF_FMT | OS.LVCF_IMAGE;	OS.SendMessage (hwnd, OS.LVM_GETCOLUMN, index, lvColumn);	lvColumn.fmt &= ~OS.LVCFMT_JUSTIFYMASK;	int fmt = 0;	if ((style & SWT.LEFT) == SWT.LEFT) fmt = OS.LVCFMT_LEFT;	if ((style & SWT.CENTER) == SWT.CENTER) fmt = OS.LVCFMT_CENTER;	if ((style & SWT.RIGHT) == SWT.RIGHT) fmt = OS.LVCFMT_RIGHT;	lvColumn.fmt |= fmt;	OS.SendMessage (hwnd, OS.LVM_SETCOLUMN, index, lvColumn);}public void setImage (Image image) {	checkWidget();	if (image != null && image.isDisposed ()) {		error (SWT.ERROR_INVALID_ARGUMENT);	}	int index = parent.indexOf (this);	if (index == -1) return;	super.setImage (image);	int hwnd = parent.handle;	LVCOLUMN lvColumn = new LVCOLUMN ();	lvColumn.mask = OS.LVCF_FMT | OS.LVCF_IMAGE;	OS.SendMessage (hwnd, OS.LVM_GETCOLUMN, index, lvColumn);	if (image != null) {		lvColumn.fmt |= OS.LVCFMT_IMAGE;		lvColumn.iImage = parent.imageIndex (image);	} else {		lvColumn.fmt &= ~OS.LVCFMT_IMAGE;	}	OS.SendMessage (hwnd, OS.LVM_SETCOLUMN, index, lvColumn);}/** * Sets the resizable attribute.  A column that is * not resizable cannot be dragged by the user but * may be resized by the programmer. * * @param resizable the resize attribute * * @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 setResizable (boolean resizable) {	checkWidget ();	this.resizable = resizable;}public void setText (String string) {	checkWidget ();	if (string == null) error (SWT.ERROR_NULL_ARGUMENT);	int index = parent.indexOf (this);	if (index == -1) return;	super.setText (string);	/*	* Bug in Windows.  For some reason, when the title	* of a column is changed after the column has been	* created, the alignment must also be reset or the	* text does not draw.  The fix is to query and then	* set the alignment.	*/	int hwnd = parent.handle;	LVCOLUMN lvColumn = new LVCOLUMN ();	lvColumn.mask = OS.LVCF_FMT;	OS.SendMessage (hwnd, OS.LVM_GETCOLUMN, index, lvColumn);	/* Set the column title */	int hHeap = OS.GetProcessHeap ();	TCHAR buffer = new TCHAR (parent.getCodePage (), string, true);	int byteCount = buffer.length () * TCHAR.sizeof;	int pszText = OS.HeapAlloc (hHeap, OS.HEAP_ZERO_MEMORY, byteCount);	OS.MoveMemory (pszText, buffer, byteCount);	lvColumn.mask |= OS.LVCF_TEXT;	lvColumn.pszText = pszText;	int result = OS.SendMessage (hwnd, OS.LVM_SETCOLUMN, index, lvColumn);	if (pszText != 0) OS.HeapFree (hHeap, 0, pszText);	if (result == 0) error (SWT.ERROR_CANNOT_SET_TEXT);}/** * Sets the width of the receiver. * * @param width the new width * * @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 setWidth (int width) {	checkWidget ();	int index = parent.indexOf (this);	if (index == -1) return;	int hwnd = parent.handle;	OS.SendMessage (hwnd, OS.LVM_SETCOLUMNWIDTH, index, width);}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91丨九色丨蝌蚪富婆spa| 精品国产99国产精品| 777午夜精品视频在线播放| 亚洲精品一区二区三区福利| 自拍偷拍亚洲综合| 国产一区二区在线视频| 欧美日韩国产成人在线免费| 中文字幕在线播放不卡一区| 狠狠狠色丁香婷婷综合久久五月| 91亚洲精品乱码久久久久久蜜桃| 日韩欧美三级在线| 午夜精品福利久久久| 91在线视频观看| 国产免费成人在线视频| 激情都市一区二区| 欧美第一区第二区| 免播放器亚洲一区| 欧美视频一区二区三区在线观看| 亚洲欧美自拍偷拍| 丁香啪啪综合成人亚洲小说| www精品美女久久久tv| 蜜乳av一区二区三区| 欧美美女一区二区| 无码av免费一区二区三区试看| 99久久99久久综合| 日韩一区在线免费观看| 成人一区二区三区| 综合久久给合久久狠狠狠97色| 成人毛片在线观看| 国产精品欧美久久久久一区二区| 国产sm精品调教视频网站| 26uuu精品一区二区| 国产在线精品免费av| 2021国产精品久久精品| 国产不卡视频在线播放| 久久精品亚洲精品国产欧美 | av亚洲精华国产精华精华| 国产丝袜美腿一区二区三区| 国产美女精品在线| 中文乱码免费一区二区| 99国产精品久久久久久久久久久| 国产精品灌醉下药二区| 色综合久久久久久久| 亚洲激情在线播放| 91精品国产91综合久久蜜臀| 青娱乐精品在线视频| 欧美sm极限捆绑bd| 国产a区久久久| 亚洲美腿欧美偷拍| 51午夜精品国产| 激情五月婷婷综合| 中文字幕av一区二区三区免费看| 99久久综合狠狠综合久久| 洋洋av久久久久久久一区| 欧美美女黄视频| 国产九色sp调教91| 亚洲激情在线激情| 欧美一级欧美三级| 成人午夜在线视频| 亚洲成人av一区二区三区| 日韩欧美国产系列| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 日韩va亚洲va欧美va久久| 久久综合久久综合九色| 91麻豆swag| 另类小说一区二区三区| 日韩美女啊v在线免费观看| 91精品综合久久久久久| 国v精品久久久网| 亚洲v日本v欧美v久久精品| 国产日本欧洲亚洲| 在线影视一区二区三区| 国产中文字幕一区| 亚洲一区二区av电影| 国产亚洲精品精华液| 欧美亚洲高清一区| 成人精品免费看| 热久久一区二区| 一区二区三区在线免费| 久久网站热最新地址| 91 com成人网| 91香蕉视频污| 国产传媒久久文化传媒| 日韩成人免费在线| 一级日本不卡的影视| 国产午夜一区二区三区| 欧美精品第一页| 一本色道亚洲精品aⅴ| 国产伦精一区二区三区| 日韩av电影免费观看高清完整版 | 人人狠狠综合久久亚洲| 亚洲精品美国一| 国产亚洲1区2区3区| 日韩三级.com| 欧美日韩电影在线播放| 一本久道久久综合中文字幕| 国产成a人亚洲精| 国产一区二区在线视频| 久久精工是国产品牌吗| 天天做天天摸天天爽国产一区| 国产精品电影一区二区三区| 国产三级欧美三级日产三级99| 555夜色666亚洲国产免| 欧美午夜电影在线播放| 日本精品一区二区三区高清| 成人avav影音| 成人福利视频网站| 成人三级在线视频| 国产不卡视频一区二区三区| 国精品**一区二区三区在线蜜桃| 久久av资源网| 毛片一区二区三区| 韩国一区二区三区| 国内精品国产成人国产三级粉色| 麻豆精品一区二区三区| 麻豆国产精品官网| 蜜臀精品一区二区三区在线观看| 日本欧美一区二区三区乱码| 日韩在线播放一区二区| 天堂一区二区在线| 丝袜美腿亚洲综合| 日本女人一区二区三区| 免费观看日韩av| 国产乱码一区二区三区| 国产一区999| 成人av先锋影音| 日本精品一区二区三区高清 | 欧美国产日韩精品免费观看| 国产视频一区二区三区在线观看| 中文字幕欧美区| 亚洲欧美日韩在线| 亚洲成人av一区| 黑人巨大精品欧美黑白配亚洲| 国产 日韩 欧美大片| 91视频国产观看| 欧美猛男gaygay网站| 日韩视频免费观看高清完整版 | 日韩三级视频在线看| 精品国产乱码久久久久久免费| 国产婷婷一区二区| 亚洲一区二区三区国产| 六月丁香综合在线视频| 成人h动漫精品一区二| 欧美影院一区二区三区| 欧美r级在线观看| 自拍偷拍亚洲欧美日韩| 人人精品人人爱| 成人动漫中文字幕| 7777精品伊人久久久大香线蕉 | 亚洲免费伊人电影| 日韩av中文字幕一区二区| 国产黑丝在线一区二区三区| 欧美综合欧美视频| 精品国产免费一区二区三区香蕉 | 欧美在线不卡一区| 欧美xxxx在线观看| 亚洲精品国产一区二区精华液 | 欧美精品一区二区三区四区| 亚洲人成伊人成综合网小说| 蜜桃视频在线观看一区二区| 99精品偷自拍| 精品盗摄一区二区三区| 亚洲黄色在线视频| 成人影视亚洲图片在线| 制服.丝袜.亚洲.中文.综合| 中文字幕日本不卡| 极品销魂美女一区二区三区| 在线国产电影不卡| 中文一区二区在线观看| 青青草国产精品亚洲专区无| 94-欧美-setu| 久久人人超碰精品| 日韩精品一级中文字幕精品视频免费观看 | 99久久婷婷国产综合精品电影 | 国产午夜精品一区二区三区视频| 亚洲影视在线观看| 成人国产免费视频| 亚洲精品一区二区三区在线观看 | 亚洲国产精品影院| 成人黄色软件下载| 日韩一卡二卡三卡| 日韩国产一区二| 欧美日韩中字一区| 亚洲欧美日韩中文播放| 成人动漫一区二区在线| 国产午夜一区二区三区| 久久99国产精品久久99| 日韩一区二区三区视频在线观看| 亚洲一区电影777| 在线精品国精品国产尤物884a| 亚洲色图第一区| 9l国产精品久久久久麻豆| 国产精品免费久久久久| 国产成人自拍网| 国产日韩欧美不卡| 国产精品888| 国产精品免费人成网站| 成人免费av网站| 国产精品久久777777| 99国产精品国产精品久久|