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

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

?? tableitem.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/******************************************************************************* * 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.*;/** * Instances of this class represent a selectable user interface object * that represents an item in a table. * <dl> * <dt><b>Styles:</b></dt> * <dd>(none)</dd> * <dt><b>Events:</b></dt> * <dd>(none)</dd> * </dl> * <p> * IMPORTANT: This class is <em>not</em> intended to be subclassed. * </p> */public class TableItem extends Item {	Table parent;	String [] strings;	Image [] images;	boolean checked, grayed, cached;	int background = -1, foreground = -1, font = -1, imageIndent;	int [] cellBackground, cellForeground, cellFont;/** * Constructs a new instance of this class given its parent * (which must be a <code>Table</code>) and a style value * describing its behavior and appearance. The item is added * to the end of the items maintained by its parent. * <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 * @see Widget#checkSubclass * @see Widget#getStyle */public TableItem (Table parent, int style) {	this (parent, style, checkNull (parent).getItemCount (), true);}/** * Constructs a new instance of this class given its parent * (which must be a <code>Table</code>), a style value * describing its behavior and appearance, and the index * at which to place it in the items maintained by its parent. * <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 * @param index the index to store the receiver in its parent * * @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 * @see Widget#checkSubclass * @see Widget#getStyle */public TableItem (Table parent, int style, int index) {	this (parent, style, index, true);}TableItem (Table parent, int style, int index, boolean create) {	super (parent, style);	this.parent = parent;	if (create) parent.createItem (this, index);}static Table checkNull (Table control) {	if (control == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);	return control;}protected void checkSubclass () {	if (!isValidSubclass ()) error (SWT.ERROR_INVALID_SUBCLASS);}void clear () {	text = "";	image = null;	strings = null;	images = null;	imageIndent = 0;	checked = grayed = false;	background = foreground = font = -1;	cellBackground = cellForeground = cellFont = null;	if ((parent.style & SWT.VIRTUAL) != 0) cached = false;}/** * Returns the receiver's background color. * * @return the background color * * @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 Color getBackground () {	checkWidget ();	int pixel = (background == -1) ? parent.getBackgroundPixel() : background;	return Color.win32_new (display, pixel);}/** * Returns the background color at the given column index in the receiver. * * @param index the column index * @return the background color * * @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 Color getBackground (int index) {	checkWidget ();	int count = Math.max (1, parent.getColumnCount ());	if (0 > index || index > count - 1) return getBackground ();	int pixel = cellBackground != null ? cellBackground [index] : -1;	return pixel == -1 ? getBackground () : Color.win32_new (display, pixel);}/** * Returns a rectangle describing the receiver's size and location * relative to its parent at a column in the table. * * @param index the index that specifies the column * @return the receiver's bounding column 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 getBounds (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_LABEL and	* zero for the column number gives the bounds of the first item without	* including the bounds of the icon.  This behavior is undocumented.	* When called with values greater than zero, the icon bounds are	* included and this behavior is documented.	*/	RECT rect = new RECT ();	rect.top = index;	rect.left = OS.LVIR_LABEL;	OS.SendMessage (hwnd, OS. LVM_GETSUBITEMRECT, itemIndex, rect);	if (index == 0) {		RECT iconRect = new RECT ();		iconRect.left = OS.LVIR_ICON;		OS.SendMessage (hwnd, OS.LVM_GETSUBITEMRECT, itemIndex, iconRect);			rect.left = iconRect.left - gridWidth;	}	int width = Math.max (0, rect.right - rect.left - gridWidth);	int height = Math.max (0, rect.bottom - rect.top - gridWidth);	/*	* 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);}/** * Returns <code>true</code> if the receiver is checked, * and false otherwise.  When the parent does not have * the <code>CHECK</code> style, return false. * * @return the 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 boolean getChecked () {	checkWidget();	if ((parent.style & SWT.CHECK) == 0) return false;	return checked;}/** * Returns the font that the receiver will use to paint textual information for this item. * * @return the receiver's font * * @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 Font getFont () {	checkWidget ();	return font == -1 ? parent.getFont () : Font.win32_new (display, font);}/** * Returns the font that the receiver will use to paint textual information * for the specified cell in this item. * * @param index the column index * @return the receiver's font * * @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 Font getFont (int index) {	checkWidget ();	int count = Math.max (1, parent.getColumnCount ());	if (0 > index || index > count -1) return getFont ();	int hFont = (cellFont != null) ? cellFont [index] : font;	return hFont == -1 ? getFont () : Font.win32_new (display, hFont);}/** * Returns the foreground color that the receiver will use to draw. * * @return the receiver's foreground color * * @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 Color getForeground () {	checkWidget ();	int pixel = (foreground == -1) ? parent.getForegroundPixel () : foreground;	return Color.win32_new (display, pixel);}/** *  * Returns the foreground color at the given column index in the receiver. * * @param index the column index * @return the foreground color * * @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 Color getForeground (int index) {	checkWidget ();	int count = Math.max (1, parent.getColumnCount ());	if (0 > index || index > count -1) return getForeground ();	int pixel = cellForeground != null ? cellForeground [index] : -1;	return pixel == -1 ? getForeground () : Color.win32_new (display, pixel);}/** * Returns <code>true</code> if the receiver is grayed, * and false otherwise. When the parent does not have * the <code>CHECK</code> style, return false. * * @return the grayed 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 boolean getGrayed () {	checkWidget();	if ((parent.style & SWT.CHECK) == 0) return false;	return grayed;}/** * Returns the image stored at the given column index in the receiver, * or null if the image has not been set or if the column does not exist. * * @param index the column index * @return the image stored at the given column index in the receiver * * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲激情男女视频| 视频一区在线播放| 欧美一级在线视频| 成人一级视频在线观看| 亚洲大片一区二区三区| 久久久久9999亚洲精品| 精品污污网站免费看| 国产成人一级电影| 日韩激情中文字幕| 亚洲精品乱码久久久久久日本蜜臀| 69av一区二区三区| 色婷婷综合五月| 国产精品123| 青青草国产精品97视觉盛宴| 国产精品人成在线观看免费| 欧美一级电影网站| 欧美日韩在线一区二区| 99久久伊人网影院| 国产精品一二三四五| 日韩成人精品在线| 亚洲动漫第一页| 综合在线观看色| 欧美激情中文字幕一区二区| 日韩小视频在线观看专区| 日本韩国欧美一区二区三区| 成人小视频在线观看| 国模少妇一区二区三区| 久久99蜜桃精品| 日韩中文字幕麻豆| 五月综合激情日本mⅴ| 一区二区三区免费在线观看| 亚洲欧美综合色| 国产精品视频麻豆| 亚洲国产精品ⅴa在线观看| 精品国产免费人成电影在线观看四季| 欧美放荡的少妇| 欧美日韩一本到| 在线一区二区三区做爰视频网站| aaa欧美色吧激情视频| 成人一区二区在线观看| 国产成人啪免费观看软件| 国产一本一道久久香蕉| 韩国女主播一区| 韩国av一区二区三区四区| 久久er精品视频| 国产精品综合久久| 国产成人精品午夜视频免费 | 国产精品18久久久久久久久| 开心九九激情九九欧美日韩精美视频电影 | 国产福利视频一区二区三区| 国产在线精品免费| 国产**成人网毛片九色| 成人免费黄色大片| 成人av在线播放网址| 99久久综合狠狠综合久久| 色综合久久综合| 欧美色综合久久| 欧美精品三级日韩久久| 精品国产污污免费网站入口 | 国产精品毛片无遮挡高清| 国产精品素人一区二区| 亚洲男人的天堂在线观看| 亚洲一区二区成人在线观看| 亚洲国产日日夜夜| 美女在线视频一区| 国产精品一二三四五| 99久久综合精品| 精品视频一区三区九区| 91精品国产色综合久久ai换脸 | 久久人人爽爽爽人久久久| 中文字幕欧美国产| 亚洲乱码国产乱码精品精的特点| 亚洲黄色片在线观看| 日韩av电影免费观看高清完整版| 国产一区在线观看视频| 99精品视频一区| 欧美久久免费观看| 精品国产三级a在线观看| 中文字幕+乱码+中文字幕一区| 中文字幕中文在线不卡住| 亚洲国产精品综合小说图片区| 久久狠狠亚洲综合| 波多野结衣中文字幕一区二区三区| 在线观看日产精品| 日韩精品中文字幕在线不卡尤物 | 91麻豆精品国产无毒不卡在线观看| 日韩精品一区在线观看| 中文字幕一区二区三| 石原莉奈一区二区三区在线观看| 国产乱人伦偷精品视频免下载 | hitomi一区二区三区精品| 欧美日韩国产影片| 国产日产欧产精品推荐色| 亚洲精品成人在线| 国产伦精品一区二区三区免费| 97se亚洲国产综合自在线| 在线综合视频播放| 国产精品蜜臀av| 蜜桃av噜噜一区| 色综合久久九月婷婷色综合| 精品捆绑美女sm三区| 亚洲综合小说图片| 不卡的av中国片| 精品日韩99亚洲| 偷窥少妇高潮呻吟av久久免费| 成人国产亚洲欧美成人综合网| 欧美一级一区二区| 一区二区三区日韩欧美精品| 国产一区二区三区黄视频 | 成人av网站在线| 欧美xxxxx牲另类人与| 亚洲自拍偷拍九九九| 成人av在线影院| 久久久噜噜噜久久中文字幕色伊伊 | 成人精品国产免费网站| 日韩一级在线观看| 亚洲成人7777| 色哟哟在线观看一区二区三区| 久久久久久日产精品| 免费在线看成人av| 欧美午夜免费电影| 亚洲男同1069视频| av激情成人网| 一区在线播放视频| 成人妖精视频yjsp地址| 精品久久久久久久久久久久久久久 | 91成人免费电影| |精品福利一区二区三区| 国产·精品毛片| 国产欧美日韩亚州综合| 国产精品自拍三区| 久久久久久免费| 国产精品综合久久| 国产日本欧美一区二区| 国产高清不卡一区| 久久免费精品国产久精品久久久久| 六月丁香婷婷久久| 精品欧美一区二区三区精品久久| 天天影视色香欲综合网老头| 一区二区三区欧美日| 91在线视频官网| 综合欧美一区二区三区| 色一情一乱一乱一91av| 中文字幕的久久| 91在线视频免费91| 亚洲一区二区免费视频| 欧美日韩精品一区视频| 午夜精品福利一区二区蜜股av | 亚洲丝袜另类动漫二区| 亚洲欧美综合在线精品| 亚洲成人激情社区| 久久99久久久欧美国产| 色综合天天综合狠狠| 色琪琪一区二区三区亚洲区| 欧美日本视频在线| 欧美国产欧美亚州国产日韩mv天天看完整 | 国产午夜精品理论片a级大结局| 国产精品国产自产拍高清av王其| 亚洲一区二区三区四区五区中文| 人禽交欧美网站| av在线不卡免费看| 日韩一区二区不卡| 亚洲美女一区二区三区| 精品在线观看视频| 色综合天天综合在线视频| 欧美一级爆毛片| 一区二区三区四区五区视频在线观看| 日韩高清不卡一区二区| 99r精品视频| 精品美女在线播放| 午夜成人免费电影| 99v久久综合狠狠综合久久| 久久亚洲二区三区| 亚洲国产日产av| 成年人国产精品| 精品少妇一区二区三区在线播放| 亚洲乱码中文字幕| 国产精品乡下勾搭老头1| 欧美日本一区二区三区四区 | 在线视频你懂得一区二区三区| 精品国产免费视频| 天堂影院一区二区| 欧洲一区二区三区在线| 国产肉丝袜一区二区| 蜜臀国产一区二区三区在线播放| 91麻豆精品视频| 中文字幕中文乱码欧美一区二区 | 日韩精品一区二区三区四区视频| 亚洲自拍另类综合| 91黄色免费观看| 国产精品久久久久影视| 国产一区二区伦理| 日韩一区和二区| 蜜臀av性久久久久av蜜臀妖精| 欧美午夜影院一区| 亚洲国产中文字幕| 欧美日本精品一区二区三区| 亚洲午夜久久久久久久久电影院| 成人av电影观看| 中文字幕日韩一区二区|