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

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

?? table.java

?? 源碼為Eclipse開源開發(fā)平臺桌面開發(fā)工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
/******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html *  * Contributors: *     IBM Corporation - initial API and implementation *******************************************************************************/package org.eclipse.swt.widgets; import org.eclipse.swt.internal.win32.*;import org.eclipse.swt.*;import org.eclipse.swt.graphics.*;import org.eclipse.swt.events.*;/**  * Instances of this class implement a selectable user interface * object that displays a list of images and strings and issue * notificiation when selected. * <p> * The item children that may be added to instances of this class * must be of type <code>TableItem</code>. * </p><p> * Note that although this class is a subclass of <code>Composite</code>, * it does not make sense to add <code>Control</code> children to it, * or set a layout on it. * </p><p> * <dl> * <dt><b>Styles:</b></dt> * <dd>SINGLE, MULTI, CHECK, FULL_SELECTION, HIDE_SELECTION, VIRTUAL</dd> * <dt><b>Events:</b></dt> * <dd>Selection, DefaultSelection</dd> * </dl> * <p> * Note: Only one of the styles SINGLE, and MULTI may be specified. * </p><p> * IMPORTANT: This class is <em>not</em> intended to be subclassed. * </p> */public class Table extends Composite {	TableItem [] items;	TableColumn [] columns;	ImageList imageList;	int lastIndexOf, lastWidth;	boolean fixScrollWidth;	boolean ignoreSelect, dragStarted, ignoreRedraw, mouseDown, customDraw, ignoreShrink;	static final int TableProc;	static final TCHAR TableClass = new TCHAR (0, OS.WC_LISTVIEW, true);	static {		WNDCLASS lpWndClass = new WNDCLASS ();		OS.GetClassInfo (0, TableClass, lpWndClass);		TableProc = lpWndClass.lpfnWndProc;	}/** * Constructs a new instance of this class given its parent * and a style value describing its behavior and appearance. * <p> * The style value is either one of the style constants defined in * class <code>SWT</code> which is applicable to instances of this * class, or must be built by <em>bitwise OR</em>'ing together  * (that is, using the <code>int</code> "|" operator) two or more * of those <code>SWT</code> style constants. The class description * lists the style constants that are applicable to the class. * Style bits are also inherited from superclasses. * </p> * * @param parent a composite control which will be the parent of the new instance (cannot be null) * @param style the style of control to construct * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the parent is null</li> * </ul> * @exception SWTException <ul> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li> *    <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li> * </ul> * * @see SWT#SINGLE * @see SWT#MULTI * @see SWT#CHECK * @see SWT#FULL_SELECTION * @see SWT#HIDE_SELECTION * @see Widget#checkSubclass * @see Widget#getStyle */public Table (Composite parent, int style) {	super (parent, checkStyle (style));}TableItem _getItem (int index) {	if (items [index] != null) return items [index];	return items [index] = new TableItem (this, SWT.NONE, -1, false);}/** * Adds the listener to the collection of listeners who will * be notified when the receiver's selection changes, by sending * it one of the messages defined in the <code>SelectionListener</code> * interface. * <p> * When <code>widgetSelected</code> is called, the item field of the event object is valid. * If the reciever has <code>SWT.CHECK</code> style set and the check selection changes, * the event object detail field contains the value <code>SWT.CHECK</code>. * <code>widgetDefaultSelected</code> is typically called when an item is double-clicked. * The item field of the event object is valid for default selection, but the detail field is not used. * </p> * * @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 #removeSelectionListener * @see SelectionEvent */public void addSelectionListener (SelectionListener listener) {	checkWidget ();	if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);	TypedListener typedListener = new TypedListener (listener);	addListener (SWT.Selection,typedListener);	addListener (SWT.DefaultSelection,typedListener);}int callWindowProc (int msg, int wParam, int lParam) {	if (handle == 0) return 0;	return OS.CallWindowProc (TableProc, handle, msg, wParam, lParam);}static int checkStyle (int style) {	/*	* Feature in Windows.  It is not possible to create	* a table that does not have scroll bars.  Therefore,	* no matter what style bits are specified, set the	* H_SCROLL and V_SCROLL bits so that the SWT style	* will match the widget that Windows creates.	*/	style |= SWT.H_SCROLL | SWT.V_SCROLL;	return checkBits (style, SWT.SINGLE, SWT.MULTI, 0, 0, 0, 0);}protected void checkSubclass () {	if (!isValidSubclass ()) error (SWT.ERROR_INVALID_SUBCLASS);}/** * Clears the item at the given zero-relative index in the receiver. * The text, icon and other attribues of the item are set to the default * value.  If the table was created with the SWT.VIRTUAL style, these * attributes are requested again as needed. * * @param index the index of the item to clear * * @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> *  * @see SWT#VIRTUAL * @see SWT#SetData *  * @since 3.0 */public void clear (int index) {	checkWidget ();	int count = OS.SendMessage (handle, OS.LVM_GETITEMCOUNT, 0, 0);	if (!(0 <= index && index < count)) error (SWT.ERROR_INVALID_RANGE);	TableItem item = items [index];	if (item != null) {		item.clear ();		/*		* 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 ((style & SWT.VIRTUAL) == 0 && item.cached) {			LVITEM lvItem = new LVITEM ();			lvItem.mask = OS.LVIF_TEXT | OS.LVIF_INDENT;			lvItem.pszText = OS.LPSTR_TEXTCALLBACK;			lvItem.iItem = index;			OS.SendMessage (handle, OS.LVM_SETITEM, 0, lvItem);			item.cached = false;		}		if (!ignoreRedraw && drawCount == 0 && OS.IsWindowVisible (handle)) {			OS.SendMessage (handle, OS.LVM_REDRAWITEMS, index, index);		}		setScrollWidth (item, false);	}}/** * Removes the items from the receiver which are between the given * zero-relative start and end indices (inclusive).  The text, icon * and other attribues of the items are set to their default values. * If the table was created with the SWT.VIRTUAL style, these attributes * are requested again as needed. * * @param start the start index of the item to clear * @param end the end index of the item to clear * * @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> *  * @see SWT#VIRTUAL * @see SWT.SetData *  * @since 3.0 */public void clear (int start, int end) {	checkWidget ();	if (start > end) return;	int count = OS.SendMessage (handle, OS.LVM_GETITEMCOUNT, 0, 0);	if (!(0 <= start && start <= end && end < count)) {		error (SWT.ERROR_INVALID_RANGE);	}	if (start == 0 && end == count - 1) {		clearAll ();	} else {		LVITEM lvItem = null;		boolean cleared = false;		for (int i=start; i<=end; i++) {			TableItem item = items [i];			if (item != null) {				cleared = true;				item.clear ();				/*				* 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 ((style & SWT.VIRTUAL) == 0 && item.cached) {					if (lvItem == null) {						lvItem = new LVITEM ();						lvItem.mask = OS.LVIF_TEXT | OS.LVIF_INDENT;						lvItem.pszText = OS.LPSTR_TEXTCALLBACK;					}					lvItem.iItem = i;					OS.SendMessage (handle, OS.LVM_SETITEM, 0, lvItem);					item.cached = false;				}			}		}		if (cleared) {			if (!ignoreRedraw && drawCount == 0 && OS.IsWindowVisible (handle)) {				OS.SendMessage (handle, OS.LVM_REDRAWITEMS, start, end);			}			TableItem item = start == end ? items [start] : null; 			setScrollWidth (item, false);		}	}}/** * Clears the items at the given zero-relative indices in the receiver. * The text, icon and other attribues of the items are set to their default * values.  If the table was created with the SWT.VIRTUAL style, these * attributes are requested again as needed. * * @param indices the array of indices of the items * * @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> *    <li>ERROR_NULL_ARGUMENT - if the indices array 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 SWT#VIRTUAL * @see SWT.SetData *  * @since 3.0 */public void clear (int [] indices) {	checkWidget ();	if (indices == null) error (SWT.ERROR_NULL_ARGUMENT);	if (indices.length == 0) return;	int count = OS.SendMessage (handle, OS.LVM_GETITEMCOUNT, 0, 0);	for (int i=0; i<indices.length; i++) {		if (!(0 <= indices [i] && indices [i] < count)) {			error (SWT.ERROR_INVALID_RANGE);		}	}	LVITEM lvItem = null;	boolean cleared = false;	for (int i=0; i<indices.length; i++) {		int index = indices [i];		TableItem item = items [index];		if (item != null) {			cleared = true;			item.clear ();			/*			* 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 ((style & SWT.VIRTUAL) == 0 && item.cached) {				if (lvItem == null) {					lvItem = new LVITEM ();					lvItem.mask = OS.LVIF_TEXT | OS.LVIF_INDENT;					lvItem.pszText = OS.LPSTR_TEXTCALLBACK;				}				lvItem.iItem = i;				OS.SendMessage (handle, OS.LVM_SETITEM, 0, lvItem);				item.cached = false;			}			if (!ignoreRedraw && drawCount == 0 && OS.IsWindowVisible (handle)) {				OS.SendMessage (handle, OS.LVM_REDRAWITEMS, index, index);			}		}	}	if (cleared) setScrollWidth (null, false);}/** * Clears all the items in the receiver. The text, icon and other * attribues of the items are set to their default values. If the * table was created with the SWT.VIRTUAL style, these attributes * are requested again as needed. * * @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 SWT#VIRTUAL * @see SWT.SetData *  * @since 3.0 */public void clearAll () {	checkWidget ();	int count = OS.SendMessage (handle, OS.LVM_GETITEMCOUNT, 0, 0);	LVITEM lvItem = null;	boolean cleared = false;	for (int i=0; i<count; i++) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一卡二卡三卡| 欧美精品视频www在线观看| 日韩成人dvd| 五月激情丁香一区二区三区| 一区二区三区在线免费观看| 成人欧美一区二区三区白人| 中文字幕在线不卡一区二区三区| 久久这里只有精品6| 国产拍揄自揄精品视频麻豆| 国产女人水真多18毛片18精品视频| 久久天堂av综合合色蜜桃网| 国产日韩精品久久久| 国产精品久久久久久久久免费樱桃 | 日韩高清电影一区| 午夜不卡av在线| 久久www免费人成看片高清| 久久精品噜噜噜成人av农村| 国产九色精品成人porny| 成人一级片网址| 欧美自拍偷拍一区| 欧美一区二区三区小说| 日韩精品一区二区三区老鸭窝 | 成人一级视频在线观看| 91免费观看在线| 欧美一区二区在线不卡| 久久婷婷色综合| 亚洲同性gay激情无套| 亚洲高清久久久| 国产盗摄女厕一区二区三区| 91亚洲精品久久久蜜桃| 日韩免费在线观看| 国产精品久久久久久亚洲伦 | 免费看日韩精品| 国产成人亚洲综合a∨猫咪| 色噜噜狠狠成人中文综合| 欧美猛男gaygay网站| 久久久久久久久久久电影| 一区二区在线观看不卡| 激情六月婷婷久久| 91久久国产综合久久| 久久婷婷久久一区二区三区| 一区二区日韩av| 国产福利91精品一区二区三区| 色偷偷久久人人79超碰人人澡| 精品裸体舞一区二区三区| 亚洲精品第一国产综合野| 国产一区二区精品久久99| 在线亚洲精品福利网址导航| 欧美精品一区男女天堂| 亚洲韩国一区二区三区| 福利电影一区二区| 日韩美女在线视频| 亚洲一区二区三区在线播放| 国产精品自在欧美一区| 666欧美在线视频| 亚洲欧美一区二区三区久本道91| 毛片av一区二区| 欧美日本一区二区三区四区| 中文字幕一区免费在线观看| 国产精品综合av一区二区国产馆| 91麻豆精品国产91久久久使用方法| 中文字幕一区三区| 国产iv一区二区三区| 精品国产乱码久久| 日韩国产欧美在线观看| 欧美日韩一区视频| 亚洲午夜精品17c| 欧美最猛性xxxxx直播| 亚洲蜜桃精久久久久久久| av中文一区二区三区| 国产亚洲女人久久久久毛片| 国产在线一区观看| 精品国产人成亚洲区| 美腿丝袜亚洲三区| 日韩三级在线免费观看| 麻豆一区二区在线| 99久久er热在这里只有精品66| 国产精品免费免费| 91美女片黄在线观看91美女| 国产精品成人一区二区艾草| 不卡av免费在线观看| 一色屋精品亚洲香蕉网站| 成人久久视频在线观看| 自拍偷拍欧美激情| 在线视频欧美精品| 天堂成人免费av电影一区| 日韩三级在线观看| 国产原创一区二区三区| 欧美激情综合网| 91麻豆精品秘密| 亚洲国产aⅴ天堂久久| 91精品国产综合久久香蕉麻豆| 日本成人在线看| 久久久久久一级片| 99精品欧美一区二区三区小说 | 国产午夜精品久久| av在线一区二区三区| 亚洲国产一区二区三区青草影视| 欧美日韩高清在线播放| 精品在线播放午夜| 国产精品大尺度| 欧美美女一区二区三区| 狠狠色丁香婷婷综合久久片| 国产精品激情偷乱一区二区∴| 色网站国产精品| 美国一区二区三区在线播放| 欧美国产激情一区二区三区蜜月 | 日韩欧美电影一区| 成人激情校园春色| 五月婷婷色综合| 国产亚洲精品bt天堂精选| 91国偷自产一区二区三区观看| 石原莉奈在线亚洲二区| 中文字幕欧美三区| 在线综合视频播放| 成人午夜私人影院| 蜜桃视频免费观看一区| 综合激情成人伊人| 欧美成人性福生活免费看| 色美美综合视频| 国产精品亚洲成人| 日韩高清在线观看| 亚洲三级电影网站| 欧美激情综合在线| 日韩亚洲欧美成人一区| 在线欧美一区二区| 成人免费观看视频| 久久国产夜色精品鲁鲁99| 亚洲午夜精品在线| 亚洲摸摸操操av| 国产精品女同互慰在线看| 日韩欧美一区二区在线视频| 一本到高清视频免费精品| 国产一区啦啦啦在线观看| 午夜视频一区在线观看| 亚洲欧美另类小说| 国产蜜臀97一区二区三区| 精品国产91洋老外米糕| 欧美日韩国产天堂| 在线精品视频一区二区| 成人久久久精品乱码一区二区三区| 久久国产剧场电影| 亚洲成a人片综合在线| 亚洲午夜av在线| 亚洲综合男人的天堂| 亚洲色图欧洲色图| ●精品国产综合乱码久久久久| 久久精品人人做人人爽人人| 久久亚洲综合色| 精品国产免费人成在线观看| 欧美一区二区三区白人 | 婷婷夜色潮精品综合在线| 亚洲午夜免费福利视频| 亚洲国产成人tv| 亚洲国产一区二区在线播放| 亚洲福利国产精品| 无吗不卡中文字幕| 美女免费视频一区二区| 激情五月播播久久久精品| 国产真实乱偷精品视频免| 国产一区在线看| 成人黄页在线观看| 色婷婷av一区二区三区大白胸| 91小视频免费观看| 欧美日韩国产另类一区| 91精品国产欧美日韩| 日韩区在线观看| 国产欧美日韩一区二区三区在线观看| 国产日韩视频一区二区三区| 中文字幕第一区| 亚洲精品高清在线| 日韩av电影一区| 国产精品中文字幕日韩精品| 国v精品久久久网| 日本精品免费观看高清观看| 欧美精品久久天天躁| 久久久久免费观看| 亚洲色图视频网站| 日本午夜精品一区二区三区电影| 男女男精品网站| 国产成人午夜电影网| 91在线视频播放地址| 91精品久久久久久久91蜜桃| 久久亚洲精精品中文字幕早川悠里| 欧美国产精品v| 肉丝袜脚交视频一区二区| 国产成人av影院| 欧洲一区二区三区免费视频| 精品久久一区二区三区| 国产精品久久久久影院色老大| 亚洲一区二区三区四区不卡| 国模大尺度一区二区三区| 91免费观看在线| 久久精品视频一区| 亚洲va韩国va欧美va| 成人黄色a**站在线观看| 91 com成人网| 亚洲欧洲综合另类在线| 国产一区二区剧情av在线| 在线成人免费视频|