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

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

?? tabitem.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
字號:
/******************************************************************************* * 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 * corresponding to a tab for a page in a tab folder. * <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 TabItem extends Item {	TabFolder parent;	Control control;	String toolTipText;/** * Constructs a new instance of this class given its parent * (which must be a <code>TabFolder</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 TabItem (TabFolder parent, int style) {	super (parent, style);	this.parent = parent;	parent.createItem (this, parent.getItemCount ());}/** * Constructs a new instance of this class given its parent * (which must be a <code>TabFolder</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> *    <li>ERROR_INVALID_RANGE - if the index is either negative or greater than the parent's current tab count</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 TabItem (TabFolder parent, int style, int index) {	super (parent, style);	this.parent = parent;	parent.createItem (this, index);}protected void checkSubclass () {	if (!isValidSubclass ()) error (SWT.ERROR_INVALID_SUBCLASS);}/** * Returns the control that is used to fill the client area of * the tab folder when the user selects the tab item.  If no * control has been set, return <code>null</code>. * <p> * @return the control * * @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 Control getControl () {	checkWidget();	return control;}/** * Returns the receiver's parent, which must be a <code>TabFolder</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 TabFolder getParent () {	checkWidget();	return parent;}/** * Returns the receiver's tool tip text, or null if it has * not been set. * * @return the receiver's tool tip text * * @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 String getToolTipText () {	checkWidget();	return toolTipText;}void releaseChild () {	super.releaseChild ();	int index = parent.indexOf (this);	if (index == parent.getSelectionIndex ()) {		if (control != null) control.setVisible (false);	}	parent.destroyItem (this);}void releaseWidget () {	super.releaseWidget ();	control = null;	parent = null;}/** * Sets the control that is used to fill the client area of * the tab folder when the user selects the tab item. * <p> * @param control the new control (or null) * * @exception IllegalArgumentException <ul> *    <li>ERROR_INVALID_ARGUMENT - if the control has been disposed</li>  *    <li>ERROR_INVALID_PARENT - if the control is not in the same widget tree</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> */public void setControl (Control control) {	checkWidget();	if (control != null) {		if (control.isDisposed()) error (SWT.ERROR_INVALID_ARGUMENT);		if (control.parent != parent) error (SWT.ERROR_INVALID_PARENT);	}	if (this.control != null && this.control.isDisposed ()) {		this.control = null;	}	Control oldControl = this.control, newControl = control;	this.control = control;	int index = parent.indexOf (this);	if (index != parent.getSelectionIndex ()) {		if (newControl != null) newControl.setVisible (false);		return;	}	if (newControl != null) {		newControl.setBounds (parent.getClientArea ());		newControl.setVisible (true);	}	if (oldControl != null) oldControl.setVisible (false);}public void setImage (Image image) {	checkWidget();	int index = parent.indexOf (this);	if (index == -1) return;	super.setImage (image);	/*	* Bug in Windows.  In version 6.00 of COMCTL32.DLL, tab	* items with an image and a label that includes '&' cause	* the tab to draw incorrectly (even when doubled '&&').	* The image  overlaps the label.  The fix is to remove	* all '&' characters from the string. 	*/	if (OS.COMCTL32_MAJOR >= 6) {		if (text.indexOf ('&') != -1) setText (text);	}	int hwnd = parent.handle;	TCITEM tcItem = new TCITEM ();	tcItem.mask = OS.TCIF_IMAGE;	tcItem.iImage = parent.imageIndex (image);	OS.SendMessage (hwnd, OS.TCM_SETITEM, index, tcItem);}/** * Sets the receiver's text.  The string may include * the mnemonic character. * </p> * <p> * Mnemonics are indicated by an '&amp' that causes the next * character to be the mnemonic.  When the user presses a * key sequence that matches the mnemonic, a selection * event occurs. On most platforms, the mnemonic appears * underlined but may be emphasised in a platform specific * manner.  The mnemonic indicator character '&amp' can be * escaped by doubling it in the string, causing a single *'&amp' to be displayed. * </p> *  * @param string the new text * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the text 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> *  */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.  In version 6.00 of COMCTL32.DLL, tab	* items with an image and a label that includes '&' cause	* the tab to draw incorrectly (even when doubled '&&').	* The image  overlaps the label.  The fix is to remove	* all '&' characters from the string. 	*/	if (OS.COMCTL32_MAJOR >= 6 && image != null) {		if (text.indexOf ('&') != -1) {			int length = string.length ();			char[] text = new char [length];			string.getChars ( 0, length, text, 0);			int i = 0, j = 0;			for (i=0; i<length; i++) {				if (text[i] != '&') text [j++] = text [i];			}			if (j < i) string = new String (text, 0, j);		}	}	int hwnd = parent.handle;	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); 	TCITEM tcItem = new TCITEM ();	tcItem.mask = OS.TCIF_TEXT;	tcItem.pszText = pszText;	OS.SendMessage (hwnd, OS.TCM_SETITEM, index, tcItem);	OS.HeapFree (hHeap, 0, pszText);}/** * Sets the receiver's tool tip text to the argument, which * may be null indicating that no tool tip text should be shown. * * @param string the new tool tip text (or null) * * @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 setToolTipText (String string) {	checkWidget();	toolTipText = string;}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久一区二区三区捆绑**| 欧美一二三四在线| 国内偷窥港台综合视频在线播放| 亚洲色图在线播放| 国产拍欧美日韩视频二区| 精品美女一区二区三区| 欧美成人乱码一区二区三区| 精品国产一区二区三区av性色 | 视频在线在亚洲| 一区二区三区资源| 亚洲综合免费观看高清完整版在线| 亚洲女人的天堂| 亚洲午夜久久久久久久久久久| 一区二区三区日韩精品视频| 亚洲一区精品在线| 日韩精品午夜视频| 九色|91porny| av电影在线观看完整版一区二区| 99re66热这里只有精品3直播 | 麻豆91在线播放免费| 裸体一区二区三区| 国产精品18久久久久久久久久久久 | 日本不卡的三区四区五区| 午夜精品久久久久久久99樱桃| 久久se精品一区精品二区| 国产成人免费视频一区| 99久久婷婷国产| 欧美日韩在线播放一区| 日韩欧美在线网站| 中文字幕免费一区| 午夜视频在线观看一区| 国产精品18久久久久久久网站| 91美女片黄在线观看91美女| 51久久夜色精品国产麻豆| 国产丝袜欧美中文另类| 亚洲国产精品久久人人爱| 老司机一区二区| 一本色道亚洲精品aⅴ| 日韩视频免费观看高清完整版 | 制服丝袜亚洲播放| 久久久不卡网国产精品二区 | 久久先锋影音av| 亚洲精品国产高清久久伦理二区| 日韩av中文字幕一区二区 | 欧日韩精品视频| 久久精品视频网| 全国精品久久少妇| 99久久亚洲一区二区三区青草| 日韩精品一区二区三区老鸭窝| 一区二区三区蜜桃| 成人综合婷婷国产精品久久免费| 欧美日韩国产成人在线免费| 亚洲欧洲国产日韩| 精品一区中文字幕| 在线播放中文一区| 一区二区在线观看免费视频播放| 国产毛片精品国产一区二区三区| 欧美日韩一区二区三区免费看| 日本一区二区三区在线观看| 精品午夜一区二区三区在线观看| 欧美午夜免费电影| 国产精品视频在线看| 蜜桃视频在线观看一区| 欧美人狂配大交3d怪物一区| 一区二区三区日本| 91一区一区三区| 国产精品久久99| 处破女av一区二区| 国产女主播在线一区二区| 国产中文一区二区三区| 日韩一二三四区| 日韩高清不卡在线| 欧美日本一区二区三区| 日日摸夜夜添夜夜添精品视频| 在线视频中文字幕一区二区| 夜色激情一区二区| 色88888久久久久久影院按摩| 国产精品毛片久久久久久 | 亚洲免费观看视频| 97精品电影院| 一区二区三区高清| 色综合久久88色综合天天6| 亚洲欧美另类小说视频| 欧美性一二三区| 日日嗨av一区二区三区四区| 日韩一级黄色大片| 六月婷婷色综合| 久久精品日韩一区二区三区| 国产v日产∨综合v精品视频| 国产精品美女久久久久av爽李琼| 91麻豆国产精品久久| 亚洲图片欧美色图| 欧美肥大bbwbbw高潮| 久久99久国产精品黄毛片色诱| 国产亚洲欧美日韩日本| 成人h动漫精品| 亚洲国产美女搞黄色| 日韩视频在线永久播放| 国产99一区视频免费| 亚洲免费毛片网站| 欧美一级理论片| 成人精品电影在线观看| 亚洲电影在线播放| 精品国产一区二区亚洲人成毛片| 成人一区在线观看| 一区二区三区在线免费播放| 日韩欧美激情一区| 国产成a人无v码亚洲福利| 亚洲综合精品久久| 久久色.com| 欧美性受极品xxxx喷水| 国产一区二三区| 一区二区三区欧美日| 精品国产91久久久久久久妲己| 91啪在线观看| 国内精品免费在线观看| 亚洲第一福利视频在线| 精品sm在线观看| 欧美性生活一区| 国产91丝袜在线播放| 亚洲18女电影在线观看| 国产精品视频在线看| 欧美一区二区三区日韩视频| 99久久精品国产网站| 另类小说图片综合网| 亚洲小说春色综合另类电影| 日本一区二区高清| 日韩一区二区在线看| 91九色最新地址| 成人av网址在线| 国产又粗又猛又爽又黄91精品| 亚洲第一av色| 亚洲综合男人的天堂| 亚洲欧美在线aaa| 国产性天天综合网| 欧美本精品男人aⅴ天堂| 91 com成人网| 欧美视频在线一区二区三区 | 91精品中文字幕一区二区三区| 91免费版在线看| 国产成人精品免费网站| 捆绑调教一区二区三区| 午夜精品久久久| 亚洲精品国产一区二区精华液| 欧美高清在线精品一区| 久久精品欧美一区二区三区不卡 | 国产精品传媒在线| 久久久久久久久一| 91.com视频| 欧美精品一卡二卡| 欧美另类高清zo欧美| 911精品产国品一二三产区| 91福利精品视频| 在线观看网站黄不卡| 在线免费不卡电影| 欧美在线看片a免费观看| 欧美性生活久久| 欧美日韩国产bt| 久久日韩精品一区二区五区| 日韩精品中文字幕一区二区三区 | 亚洲精品伦理在线| 最新国产精品久久精品| 亚洲色图制服诱惑| 亚洲日本欧美天堂| 亚洲精品免费一二三区| 一区二区三区欧美久久| 日韩精品五月天| 久久99精品一区二区三区| 国内精品久久久久影院一蜜桃| 国产精品自拍网站| 成人精品高清在线| 色哟哟欧美精品| 777午夜精品视频在线播放| 日韩美女主播在线视频一区二区三区 | 日韩精品一区二区三区三区免费 | 亚洲美女屁股眼交3| 亚洲一区免费在线观看| 麻豆传媒一区二区三区| 丰满白嫩尤物一区二区| 97精品电影院| 欧美成人精品3d动漫h| 国产精品人人做人人爽人人添| 一区二区三区 在线观看视频| 丝袜美腿亚洲一区| 国产乱码一区二区三区| 欧美在线高清视频| 亚洲精品一区二区三区福利 | 日韩一区二区中文字幕| 国产免费成人在线视频| 亚洲一二三四久久| 国产综合久久久久影院| 色综合久久久网| 久久一区二区三区国产精品| 一区二区三区中文字幕精品精品| 精品无人码麻豆乱码1区2区 | 国产一区二区三区四区在线观看| 97精品久久久午夜一区二区三区 | 欧美成人精品福利| 亚洲欧美精品午睡沙发| 国产一区在线视频|