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

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

?? tabletreeitem.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/******************************************************************************* * 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.custom;import org.eclipse.swt.*;import org.eclipse.swt.graphics.*;import org.eclipse.swt.widgets.*;/** * A TableTreeItem is a selectable user interface object * that represents an item in a heirarchy of items in a * TableTree. */public class TableTreeItem extends Item {	TableItem tableItem;	TableTree parent;	TableTreeItem parentItem;	TableTreeItem [] items = TableTree.EMPTY_ITEMS;	String[] texts = TableTree.EMPTY_TEXTS;	Image[] images = TableTree.EMPTY_IMAGES;	Color background;	Color foreground;	Font font;	boolean expanded;	boolean checked;	boolean grayed;/** * Constructs a new instance of this class given its parent * (which must be a <code>TableTree</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> * </ul> * * @see SWT * @see Widget#getStyle() */public TableTreeItem(TableTree parent, int style) {	this (parent, style, parent.getItemCount());}/** * Constructs a new instance of this class given its parent * (which must be a <code>TableTree</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> * </ul> * * @see SWT * @see Widget#getStyle() */public TableTreeItem(TableTree parent, int style, int index) {	this (parent, null, style, index);}/** * Constructs a new instance of this class given its parent * (which must be a <code>TableTreeItem</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> * </ul> * * @see SWT * @see Widget#getStyle() */public TableTreeItem(TableTreeItem parent, int style) {	this (parent, style, parent.getItemCount());}/** * Constructs a new instance of this class given its parent * (which must be a <code>TableTreeItem</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> * </ul> * * @see SWT * @see Widget#getStyle() */public TableTreeItem(TableTreeItem parent, int style, int index) {	this (parent.getParent(), parent, style, index);}TableTreeItem(TableTree parent, TableTreeItem parentItem, int style, int index) {	super(parent, style);	this.parent = parent;	this.parentItem = parentItem;	if (parentItem == null) {				/* Root items are visible immediately */		int tableIndex = parent.addItem(this, index);		tableItem = new TableItem(parent.getTable(), style, tableIndex);		tableItem.setData(TableTree.ITEMID, this);		addCheck();		/*		* Feature in the Table.  The table uses the first image that		* is inserted into the table to size the table rows.  If the		* user is allowed to insert the first image, this will cause		* the +/- images to be scaled.  The fix is to insert a dummy		* image to force the size.		*/		if (parent.sizeImage == null) {			int itemHeight = parent.getItemHeight();			parent.sizeImage = new Image(null, itemHeight, itemHeight);			GC gc = new GC (parent.sizeImage);			gc.setBackground(parent.getBackground());			gc.fillRectangle(0, 0, itemHeight, itemHeight);			gc.dispose();			tableItem.setImage(0, parent.sizeImage);		}	} else {		parentItem.addItem(this, index);	}}void addCheck() {	Table table = parent.getTable();	if ((table.getStyle() & SWT.CHECK) == 0) return;	tableItem.setChecked(checked);	tableItem.setGrayed(grayed);}void addItem(TableTreeItem item, int index) {	if (item == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);	if (index < 0 || index > items.length) SWT.error(SWT.ERROR_INVALID_ARGUMENT);			/* Now that item has a sub-node it must indicate that it can be expanded */	if (items.length == 0 && index == 0) {		if (tableItem != null) {			Image image = expanded ? parent.getMinusImage() : parent.getPlusImage();			tableItem.setImage(0, image);		}	}		/* Put the item in the items list */	TableTreeItem[] newItems = new TableTreeItem[items.length + 1];	System.arraycopy(items, 0, newItems, 0, index);	newItems[index] = item;	System.arraycopy(items, index, newItems, index + 1, items.length - index);	items = newItems;	if (expanded) item.setVisible(true);}/** * 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 ();	return (background == null) ? parent.getBackground() : background;}/** * Returns a rectangle describing the receiver's size and location * relative to its parent. * * @return the receiver's bounding 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();	if (tableItem != null) {		return tableItem.getBounds(index);	} else {		return new Rectangle(0, 0, 0, 0);	}}/** * Returns <code>true</code> if the receiver is checked, * and false otherwise.  When the parent does not have * the <code>CHECK 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 (tableItem == null) return checked;	return tableItem.getChecked();}/** * 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> *  * @since 2.1 */public boolean getGrayed () {	checkWidget();	if (tableItem == null) return grayed;	return tableItem.getGrayed();}/** * Returns <code>true</code> if the receiver is expanded, * and false otherwise. * <p> * * @return the expanded state */public boolean getExpanded () {	//checkWidget();	return expanded;}/** * 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 == null) ? parent.getFont() : font;}/** * 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 ();	return (foreground == null) ? parent.getForeground() : foreground;}/** * Gets the first image. * <p> * The image in column 0 is reserved for the [+] and [-] * images of the tree, therefore getImage(0) will return null. * * @return the image at index 0 *  * @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 Image getImage () {	checkWidget();	return getImage(0);}/** * Gets the image at the specified index. * <p> * Indexing is zero based. The image can be null. * The image in column 0 is reserved for the [+] and [-] * images of the tree, therefore getImage(0) will return null. * Return null if the index is out of range. * * @param index the index of the image * @return the image at the specified index or null */public Image getImage (int index) {	//checkWidget();	if (0 < index && index < images.length) return images[index];	return null;}int getIndent() {	if (parentItem == null) return 0;	return parentItem.getIndent() + 1;}/** * Returns the number of items contained in the receiver * that are direct item children of the receiver. * * @return the number of items */public int getItemCount () {	//checkWidget();	return items.length;}/** * Returns an array of <code>TableTreeItem</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 */public TableTreeItem[] getItems () {	//checkWidget();	TableTreeItem[] newItems = new TableTreeItem[items.length];	System.arraycopy(items, 0, newItems, 0, items.length);	return newItems;}TableTreeItem getItem(TableItem tableItem) {	if (tableItem == null) return null;	if (this.tableItem == tableItem) return this;	for (int i = 0; i < items.length; i++) {		TableTreeItem item =  items[i].getItem(tableItem);	    	if (item != null) return item;	}	return null;}/** * Returns the receiver's parent, which must be a <code>TableTree</code>.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99精品视频在线观看免费| 国产精品无码永久免费888| 亚洲国产精品久久久久秋霞影院 | 欧美男人的天堂一二区| 国产精品美女久久久久久久久 | 日本麻豆一区二区三区视频| 日韩一二三区视频| 成人国产在线观看| 日本欧美一区二区在线观看| 久久久影院官网| 91亚洲精品一区二区乱码| 亚洲va韩国va欧美va| 久久综合色鬼综合色| 欧洲精品中文字幕| 久久精品国产77777蜜臀| 婷婷中文字幕综合| 日韩一区二区在线观看视频 | 91丨九色porny丨蝌蚪| 亚洲18色成人| 久久久精品黄色| 欧美日韩免费不卡视频一区二区三区| 国产综合成人久久大片91| 一区二区三区在线免费| 久久一区二区视频| 欧美年轻男男videosbes| 99这里只有精品| 美女性感视频久久| 亚洲综合自拍偷拍| 免费观看成人av| 日韩欧美一区二区不卡| 国产电影一区在线| 亚洲高清中文字幕| 亚洲欧美综合另类在线卡通| 精品国产麻豆免费人成网站| 成人18视频日本| 美女视频免费一区| 一区二区三区四区激情| 欧美一级一级性生活免费录像| 九九九久久久精品| 一区二区三区在线看| 中文字幕一区在线| 精品sm在线观看| 日韩欧美在线影院| 亚洲午夜精品久久久久久久久| 亚洲国产毛片aaaaa无费看| 欧美精品一区二区三区蜜桃 | 国产成人精品网址| 伊人婷婷欧美激情| 3d动漫精品啪啪一区二区竹菊| 色久优优欧美色久优优| 99久久伊人网影院| 成人app网站| caoporen国产精品视频| 日本午夜精品一区二区三区电影| 亚洲综合区在线| 综合色天天鬼久久鬼色| 久久众筹精品私拍模特| 欧美精品在线观看播放| 色一情一乱一乱一91av| 色系网站成人免费| 99vv1com这只有精品| 欧美在线观看一二区| 欧美日韩mp4| 日韩一区二区三区三四区视频在线观看 | 亚洲国产成人av| 一区二区三区欧美日| 亚洲成人动漫精品| 亚洲动漫第一页| 久久国产尿小便嘘嘘尿| 精品一区二区三区在线观看| 美女在线视频一区| 国产福利91精品一区二区三区| 国产高清久久久| 国产精品66部| 日本亚洲最大的色成网站www| 久久精品国产成人一区二区三区 | 欧美视频自拍偷拍| 麻豆91小视频| 免费观看91视频大全| 亚洲一二三四在线| 午夜久久久久久电影| 美日韩一区二区三区| 成人欧美一区二区三区小说| 日韩欧美专区在线| 色婷婷av一区| 91麻豆精品91久久久久同性| 欧美日韩极品在线观看一区| 欧美一二三四在线| 国产偷国产偷精品高清尤物| 亚洲欧美一区二区不卡| 蜜臀精品一区二区三区在线观看 | 亚洲日本青草视频在线怡红院| 亚洲精品日日夜夜| 亚洲国产美国国产综合一区二区| 精品亚洲国内自在自线福利| 国内精品国产成人国产三级粉色| 韩国成人精品a∨在线观看| 国产精品一二三| 久久国产生活片100| 国产精品灌醉下药二区| 欧美日韩国产综合草草| 91影视在线播放| 中文字幕巨乱亚洲| 在线一区二区三区四区五区| 欧美一级国产精品| 欧美精品自拍偷拍动漫精品| 国产欧美日韩卡一| 91亚洲国产成人精品一区二三| 91老司机福利 在线| 欧美成人性福生活免费看| 国产午夜亚洲精品不卡| 一区二区三区在线免费观看| 蜜桃视频一区二区三区在线观看 | 成人av电影在线| 精品日韩欧美在线| 日韩一区日韩二区| 免费在线观看一区| 精品视频一区三区九区| 中文字幕亚洲区| 成a人片国产精品| 欧美精品一区二区三区高清aⅴ| 亚洲一区二区在线观看视频| 色综合久久久久久久久久久| 亚洲视频在线一区| 99久久99久久久精品齐齐| 国产精品全国免费观看高清 | 国产麻豆精品在线观看| 色欧美日韩亚洲| 亚洲精品国产第一综合99久久| 91麻豆国产精品久久| 亚洲女人的天堂| 色老汉av一区二区三区| 亚洲精品久久嫩草网站秘色| 白白色亚洲国产精品| 国产精品高潮呻吟| 国产美女精品一区二区三区| 国产日韩欧美在线一区| 日韩毛片精品高清免费| 国产在线一区二区综合免费视频| 成人综合在线网站| 91精品国产一区二区人妖| 亚洲制服欧美中文字幕中文字幕| 91色porny蝌蚪| 日本一区二区免费在线观看视频 | 激情综合五月天| 精品女同一区二区| 国产精品一区二区91| 欧美不卡一二三| 成人中文字幕在线| 一区二区三区**美女毛片| 欧美人成免费网站| 亚洲aⅴ怡春院| 精品久久人人做人人爱| 成人午夜在线播放| 国产精品国产自产拍在线| 色婷婷激情久久| 韩国一区二区视频| 亚洲国产成人在线| 欧美日韩国产影片| 国产精品一区二区视频| 亚洲色图视频网| 欧美另类一区二区三区| 国产麻豆日韩欧美久久| 国产精品久久久久一区| 欧美肥胖老妇做爰| 国产一区三区三区| ●精品国产综合乱码久久久久| 一本一本大道香蕉久在线精品| 日韩精品电影在线| 自拍偷拍亚洲激情| 欧美www视频| 在线观看成人免费视频| 国产久卡久卡久卡久卡视频精品| 国产精品色噜噜| 欧美午夜一区二区| 成人免费不卡视频| 蜜臀av一区二区在线观看| 亚洲欧美激情小说另类| 久久在线观看免费| 91视频免费看| 国产在线精品一区二区| 国产精品女人毛片| 日韩欧美综合一区| 欧美妇女性影城| 99久久99久久免费精品蜜臀| 国产精品中文字幕欧美| 日韩电影在线一区二区三区| 亚洲精品视频在线观看网站| 精品国产一区二区亚洲人成毛片| 一本一道久久a久久精品综合蜜臀| 国产成人在线影院| 麻豆国产精品视频| 天天av天天翘天天综合网| 欧美国产成人在线| 国产日韩精品久久久| 精品国产三级电影在线观看| 91精品在线免费观看| 欧美日韩第一区日日骚| 欧美中文字幕一区| 色婷婷激情久久|