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

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

?? ctabfolder.java

?? 源碼為Eclipse開源開發平臺桌面開發工具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.custom;import org.eclipse.swt.*;import org.eclipse.swt.accessibility.*;import org.eclipse.swt.events.*;import org.eclipse.swt.graphics.*;import org.eclipse.swt.widgets.*;/** *  * Instances of this class implement the notebook user interface * metaphor.  It allows the user to select a notebook page from * set of pages. * <p> * The item children that may be added to instances of this class * must be of type <code>CTabItem</code>. * <code>Control</code> children are created and then set into a * tab item using <code>CTabItem#setControl</code>. * </p><p> * Note that although this class is a subclass of <code>Composite</code>, * it does not make sense to set a layout on it. * </p><p> * <dl> * <dt><b>Styles:</b></dt> * <dd>CLOSE, TOP, BOTTOM, FLAT, BORDER, SINGLE, MULTI</dd> * <dt><b>Events:</b></dt> * <dd>Selection</dd> * <dd>"CTabFolder2"</dd> * </dl> * <p> * Note: Only one of the styles TOP and BOTTOM  * may be specified. * </p><p> * IMPORTANT: This class is <em>not</em> intended to be subclassed. * </p> */ public class CTabFolder extends Composite {		/**	 * marginWidth specifies the number of pixels of horizontal margin	 * that will be placed along the left and right edges of the form.	 *	 * The default value is 0.	 */ 	public int marginWidth = 0;	/**	 * marginHeight specifies the number of pixels of vertical margin	 * that will be placed along the top and bottom edges of the form.	 *	 * The default value is 0.	 */ 	public int marginHeight = 0;	 	/**	 * A multiple of the tab height that specifies the minimum width to which a tab 	 * will be compressed before scrolling arrows are used to navigate the tabs.	 * 	 * NOTE This field is badly named and can not be fixed for backwards compatability.	 * It should not be capitalized.	 * 	 * @deprecated This field is no longer used.  See setMinimumCharacters(int)	 */	public int MIN_TAB_WIDTH = 4;		/**	 * Color of innermost line of drop shadow border.	 * 	 * NOTE This field is badly named and can not be fixed for backwards compatability.	 * It should be capitalized.	 * 	 * @deprecated drop shadow border is no longer drawn in 3.0	 */	public static RGB borderInsideRGB  = new RGB (132, 130, 132);	/**	 * Color of middle line of drop shadow border.	 * 	 * NOTE This field is badly named and can not be fixed for backwards compatability.	 * It should be capitalized.	 * 	 * @deprecated drop shadow border is no longer drawn in 3.0	 */	public static RGB borderMiddleRGB  = new RGB (143, 141, 138);	/**	 * Color of outermost line of drop shadow border.	 * 	 * NOTE This field is badly named and can not be fixed for backwards compatability.	 * It should be capitalized.	 * 	 * @deprecated drop shadow border is no longer drawn in 3.0	 */	public static RGB borderOutsideRGB = new RGB (171, 168, 165); 	/* sizing, positioning */	int xClient, yClient;	boolean onBottom = false;	boolean single = false;	boolean simple = true;	int fixedTabHeight = SWT.DEFAULT;	int tabHeight;	int minChars = 10;		/* item management */	CTabItem items[] = new CTabItem[0];	int selectedIndex = -1;	int firstIndex = -1; // index of the left most visible tab.	/* External Listener management */	CTabFolder2Listener[] folderListeners = new CTabFolder2Listener[0];	// support for deprecated listener mechanism	CTabFolderListener[] tabListeners = new CTabFolderListener[0]; 		/* Selected item appearance */	Image selectionBgImage;	Color[] selectionGradientColors;	int[] selectionGradientPercents;	boolean selectionGradientVertical;	Color selectionForeground;	Color selectionBackground;		/* Unselected item appearance */	Image bgImage;	Color[] gradientColors;	int[] gradientPercents;	boolean gradientVertical;	boolean showUnselectedImage = true;		static Color borderColor;		// close, min/max and chevron buttons	boolean showClose = false;	boolean showUnselectedClose = true;		Rectangle chevronRect = new Rectangle(0, 0, 0, 0);	int chevronImageState = NORMAL;	boolean showChevron = false;		boolean showMin = false;	Rectangle minRect = new Rectangle(0, 0, 0, 0);	boolean minimized = false;	int minImageState = NORMAL;		boolean showMax = false;	Rectangle maxRect = new Rectangle(0, 0, 0, 0);	boolean maximized = false;	int maxImageState = NORMAL;		Control topRight;	Rectangle topRightRect = new Rectangle(0, 0, 0, 0);	int topRightAlignment = SWT.RIGHT;		// borders and shapes	int borderLeft = 0;	int borderRight = 0;	int borderTop = 0;	int borderBottom = 0;		int highlight_margin = 0;	int highlight_header = 0;		int[] curve;	int curveWidth = 0;	int curveIndent = 0;		// when disposing CTabFolder, don't try to layout the items or 	// change the selection as each child is destroyed.	boolean inDispose = false;	// keep track of size changes in order to redraw only affected area	// on Resize	Point oldSize;	Font oldFont;		// tooltip	int [] toolTipEvents = new int[] {SWT.MouseExit, SWT.MouseHover, SWT.MouseMove, SWT.MouseDown, SWT.DragDetect};	Listener toolTipListener;	Shell toolTipShell;	Label toolTipLabel;	// insertion marker	int insertionIndex = -2; // Index of insert marker.  Marker always shown after index.	                         // -2 means no insert marker		// internal constants	static final int DEFAULT_WIDTH = 64;	static final int DEFAULT_HEIGHT = 64;	static final int BUTTON_SIZE = 16;	static final int[] TOP_LEFT_CORNER = new int[] {0,6, 1,5, 1,4, 4,1, 5,1, 6,0};	static final int[] TOP_RIGHT_CORNER = new int[] {-6,0, -5,1, -4,1, -1,4, -1,5, 0,6};	static final int[] BOTTOM_LEFT_CORNER = new int[] {0,-6, 1,-5, 1,-4, 4,-1, 5,-1, 6,0};	static final int[] BOTTOM_RIGHT_CORNER = new int[] {-6,0, -5,-1, -4,-1, -1,-4, -1,-5, 0,-6};	static final int[] SIMPLE_TOP_LEFT_CORNER = new int[] {0,2, 1,1, 2,0};	static final int[] SIMPLE_TOP_RIGHT_CORNER = new int[] {-2,0, -1,1, 0,2};	static final int[] SIMPLE_BOTTOM_LEFT_CORNER = new int[] {0,-2, 1,-1, 2,0};	static final int[] SIMPLE_BOTTOM_RIGHT_CORNER = new int[] {-2,0, -1,-1, 0,-2};	static final int SELECTION_FOREGROUND = SWT.COLOR_LIST_FOREGROUND;	static final int SELECTION_BACKGROUND = SWT.COLOR_LIST_BACKGROUND;	static final int BORDER1_COLOR = SWT.COLOR_WIDGET_NORMAL_SHADOW;	static final int FOREGROUND = SWT.COLOR_WIDGET_FOREGROUND;	static final int BACKGROUND = SWT.COLOR_WIDGET_BACKGROUND;	static final int BUTTON_BORDER = SWT.COLOR_WIDGET_DARK_SHADOW;	static final int BUTTON_FILL = SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW;		static final int NONE = 0;	static final int NORMAL = 1;	static final int HOT = 2;	static final int SELECTED = 3;	static final RGB CLOSE_FILL = new RGB(252, 160, 160);	/** * 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 widget which will be the parent of the new instance (cannot be null) * @param style the style of widget 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#TOP * @see SWT#BOTTOM * @see SWT#FLAT * @see SWT#BORDER * @see SWT#SINGLE * @see SWT#MULTI * @see #getStyle() */public CTabFolder(Composite parent, int style) {	super(parent, checkStyle (parent, style));	int style2 = super.getStyle();	oldFont = getFont();	onBottom = (style2 & SWT.BOTTOM) != 0;	showClose = (style2 & SWT.CLOSE) != 0;//	showMin = (style2 & SWT.MIN) != 0; - conflicts with SWT.TOP//	showMax = (style2 & SWT.MAX) != 0; - conflicts with SWT.BOTTOM	single = (style2 & SWT.SINGLE) != 0;	borderLeft = borderRight = (style & SWT.BORDER) != 0 ? 1 : 0;	borderTop = onBottom ? borderLeft : 0;	borderBottom = onBottom ? 0 : borderLeft;	highlight_header = (style & SWT.FLAT) != 0 ? 1 : 3;	highlight_margin = (style & SWT.FLAT) != 0 ? 0 : 2;	//set up default colors	Display display = getDisplay();	selectionForeground = display.getSystemColor(SELECTION_FOREGROUND);	selectionBackground = display.getSystemColor(SELECTION_BACKGROUND);	borderColor = display.getSystemColor(BORDER1_COLOR);		initAccessible();		// Add all listeners	Listener listener = new Listener() {		public void handleEvent(Event event) {			switch (event.type) {				case SWT.Dispose:          onDispose(); break;				case SWT.DragDetect:		onDragDetect(event); break;				case SWT.FocusIn:          onFocus(event);	break;				case SWT.FocusOut:         onFocus(event);	break;				case SWT.KeyDown:			onKeyDown(event); break;				case SWT.MouseDoubleClick: onMouseDoubleClick(event); break;				case SWT.MouseDown:        onMouse(event);	break;				case SWT.MouseExit:        onMouse(event);	break;				case SWT.MouseHover:       onMouseHover(event); break;				case SWT.MouseMove:        onMouse(event); break;				case SWT.MouseUp:          onMouse(event); break;				case SWT.Paint:            onPaint(event);	break;				case SWT.Resize:           onResize();	break;				case SWT.Traverse:         onTraverse(event); break;			}		}	};	int[] folderEvents = new int[]{		SWT.Dispose,		SWT.DragDetect,		SWT.FocusIn, 		SWT.FocusOut, 		SWT.KeyDown,		SWT.MouseDoubleClick, 		SWT.MouseDown,		SWT.MouseExit,		SWT.MouseHover, 		SWT.MouseMove,		SWT.MouseUp,		SWT.Paint,		SWT.Resize,  		SWT.Traverse,	};	for (int i = 0; i < folderEvents.length; i++) {		addListener(folderEvents[i], listener);	}		toolTipListener = new Listener() {		public void handleEvent(Event event) {			switch (event.type) {				case SWT.MouseHover:				case SWT.MouseMove:					if (updateToolTip(event.x, event.y)) break;					// FALL THROUGH				case SWT.MouseExit:				case SWT.MouseDown:					hideToolTip();					break;			}		}	};}static int checkStyle (Composite parent, int style) {	int mask = SWT.CLOSE | SWT.TOP | SWT.BOTTOM | SWT.FLAT | SWT.LEFT_TO_RIGHT | SWT.RIGHT_TO_LEFT | SWT.SINGLE | SWT.MULTI;	style = style & mask;	// TOP and BOTTOM are mutually exlusive.	// TOP is the default	if ((style & SWT.TOP) != 0) 		style = style & ~(SWT.TOP | SWT.BOTTOM) | SWT.TOP;	// SINGLE and MULTI are mutually exlusive.	// MULTI is the default	if ((style & SWT.MULTI) != 0) 		style = style & ~(SWT.SINGLE | SWT.MULTI) | SWT.MULTI;	// reduce the flash by not redrawing the entire area on a Resize event	style |= SWT.NO_REDRAW_RESIZE;	//TEMPORARY CODE	/*	 * The default background on carbon and some GTK themes is not a solid color 	 * but a texture.  To show the correct default background, we must allow	 * the operating system to draw it and therefore, we can not use the 	 * NO_BACKGROUND style.  The NO_BACKGROUND style is not required on platforms	 * that use double buffering which is true in both of these cases.	 */	String platform = SWT.getPlatform();	if ("carbon".equals(platform) || "gtk".equals(platform)) return style; //$NON-NLS-1$ //$NON-NLS-2$		//TEMPORARY CODE	/*	 * In Right To Left orientation on Windows, all GC calls that use a brush are drawing 	 * offset by one pixel.  This results in some parts of the CTabFolder not drawing correctly.	 * To alleviate some of the appearance problems, allow the OS to draw the background.	 * This does not draw correctly but the result is less obviously wrong.	 */	if ((style & SWT.RIGHT_TO_LEFT) != 0) return style;	if ((parent.getStyle() & SWT.MIRRORED) != 0 && (style & SWT.LEFT_TO_RIGHT) == 0) return style;		return style | SWT.NO_BACKGROUND;}static void fillRegion(GC gc, Region region) {	// NOTE: region passed in to this function will be modified	Region clipping = new Region();	gc.getClipping(clipping);	region.intersect(clipping);	gc.setClipping(region);	gc.fillRectangle(region.getBounds());	gc.setClipping(clipping);	clipping.dispose();}/** *  * Adds the listener to the collection of listeners who will * be notified when a tab item is closed, minimized, maximized, * restored, or to show the list of items that are not  * currently visible. * * @param listener the listener which should be notified * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the listener is null</li> * </ul> *  * @exception SWTError <ul> *    <li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li> *    <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li> * </ul> * * @see CTabFolder2Listener * @see #removeCTabFolder2Listener(CTabFolder2Listener) *  * @since 3.0 */public void addCTabFolder2Listener(CTabFolder2Listener listener) {	checkWidget();	if (listener == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);	// add to array	CTabFolder2Listener[] newListeners = new CTabFolder2Listener[folderListeners.length + 1];	System.arraycopy(folderListeners, 0, newListeners, 0, folderListeners.length);	folderListeners = newListeners;	folderListeners[folderListeners.length - 1] = listener;}/** * Adds the listener to the collection of listeners who will * be notified when a tab item is closed.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩二区三区四区| 国产精品嫩草影院av蜜臀| 日韩免费在线观看| 精品日韩欧美在线| 亚洲美女淫视频| 综合久久国产九一剧情麻豆| 一区视频在线播放| 91视频一区二区三区| 日本高清视频一区二区| 麻豆成人在线观看| 91超碰这里只有精品国产| 欧美丰满一区二区免费视频| 亚洲第一精品在线| 精品少妇一区二区| 香蕉影视欧美成人| 亚洲一区二区三区视频在线播放| 99re这里都是精品| 亚洲国产视频a| 免费观看成人鲁鲁鲁鲁鲁视频| 舔着乳尖日韩一区| 琪琪久久久久日韩精品| 国产精品综合在线视频| 日本精品视频一区二区三区| 在线观看欧美精品| 成人网男人的天堂| 亚洲精品在线网站| 欧美精品一区二区久久婷婷 | 欧美美女直播网站| 成人av在线资源网| 日韩欧美一区在线观看| 国产精品69久久久久水密桃| a美女胸又www黄视频久久| 中文字幕在线观看一区| 91麻豆精品91久久久久同性| 欧美v日韩v国产v| 中文字幕欧美日本乱码一线二线| 日韩欧美一区二区不卡| 欧美高清在线一区二区| 粗大黑人巨茎大战欧美成人| 精品国产百合女同互慰| 中文字幕一区二区三区精华液| 一区二区三区在线视频免费观看| 欧美激情一区二区三区蜜桃视频| 这里只有精品99re| 欧美国产日韩精品免费观看| 亚洲电影在线播放| 国产1区2区3区精品美女| 综合激情网...| 成人免费毛片片v| 久久久久久免费毛片精品| 中文一区二区在线观看| 日韩一级精品视频在线观看| 亚洲三级久久久| 91精品久久久久久久99蜜桃| 午夜国产精品影院在线观看| 91精品福利在线一区二区三区 | 成人美女在线视频| 久久久久久久久久久99999| 高清成人在线观看| 精品亚洲aⅴ乱码一区二区三区| 欧美一区二区三区在| 国产精品欧美一区喷水| 91麻豆精品国产| 精品噜噜噜噜久久久久久久久试看| 久草精品在线观看| 蜜桃av一区二区在线观看| 91在线视频免费91| 视频一区免费在线观看| 欧美年轻男男videosbes| 成人免费视频网站在线观看| 日韩精品资源二区在线| 欧美巨大另类极品videosbest| 中文字幕av一区 二区| 五月激情丁香一区二区三区| 欧美成人精品福利| 亚洲.国产.中文慕字在线| www.日韩精品| 欧美成人精精品一区二区频| 久久精品人人做| 国产精品午夜久久| 欧洲精品视频在线观看| 亚洲成人av福利| 国产真实乱偷精品视频免| 中文字幕色av一区二区三区| 欧美精品色综合| 91视频xxxx| 天堂av在线一区| 欧美成人精品1314www| 国产精品盗摄一区二区三区| 亚洲免费观看高清完整| 蜜臀av亚洲一区中文字幕| 日韩电影免费在线看| 波多野结衣欧美| 中文字幕制服丝袜一区二区三区| 国产精品久久午夜夜伦鲁鲁| 国产精品伦理一区二区| 99精品国产99久久久久久白柏 | 亚洲综合男人的天堂| 欧美午夜精品一区| 亚洲国产成人porn| 日韩欧美一区在线| 麻豆视频一区二区| 国产精品乱码一区二区三区软件| 国产精品久久久久一区| 色婷婷激情久久| 免费人成黄页网站在线一区二区| 91网页版在线| 男人的j进女人的j一区| 久久影视一区二区| 91久久国产综合久久| 久草中文综合在线| 欧美性色综合网| 亚洲色图另类专区| 成av人片一区二区| 天天色图综合网| 91国模大尺度私拍在线视频| 日韩制服丝袜av| 亚洲欧美在线视频观看| 精品国产三级a在线观看| 色哟哟国产精品免费观看| 国产91色综合久久免费分享| 欧洲一区在线观看| 国产一区二区三区美女| 亚洲色图一区二区三区| 日韩欧美专区在线| 成人免费毛片片v| 精品成人a区在线观看| 91美女在线观看| 在线一区二区三区做爰视频网站| 欧美一级国产精品| www.欧美色图| 国产人妖乱国产精品人妖| 精品国产一区二区精华| 久久国产精品无码网站| 欧美电影精品一区二区| 国产精品国产三级国产有无不卡 | 欧美四级电影网| 日本中文一区二区三区| 加勒比av一区二区| 麻豆91精品视频| 99久久综合国产精品| 久久久91精品国产一区二区三区| 国产麻豆精品在线| 一区二区三区波多野结衣在线观看| 日韩一区二区麻豆国产| 欧美日韩综合色| 久草热8精品视频在线观看| 欧美大尺度电影在线| 日韩欧美aaaaaa| 欧美激情一区二区三区全黄| av电影一区二区| av电影天堂一区二区在线观看| 欧美α欧美αv大片| 久久久久久黄色| 日韩午夜精品视频| 欧美xxxx老人做受| 日韩成人精品在线| 亚欧色一区w666天堂| 午夜不卡在线视频| 99riav久久精品riav| 欧美一卡二卡在线观看| 亚洲激情六月丁香| 日韩理论片一区二区| 精品国产乱码久久久久久图片 | 成av人片一区二区| av一区二区三区| 日韩女优制服丝袜电影| 天堂va蜜桃一区二区三区| 日韩三级在线免费观看| 国产一区二区福利| 欧日韩精品视频| 国产亚洲美州欧州综合国| 日韩欧美123| 亚洲福利视频一区二区| 国产清纯美女被跳蛋高潮一区二区久久w | 国产一区二区三区电影在线观看 | 欧美色欧美亚洲另类二区| 91精品国产一区二区三区蜜臀| 日本vs亚洲vs韩国一区三区二区 | 成人免费黄色大片| 色狠狠一区二区三区香蕉| 韩日欧美一区二区三区| 欧美一级夜夜爽| 亚洲精品写真福利| 2020国产精品自拍| 九九国产精品视频| 久久精品国产精品亚洲综合| kk眼镜猥琐国模调教系列一区二区 | 成人动漫在线一区| 久久久久久免费网| 91精品久久久久久久久99蜜臂| 国产精品美女久久久久久久久 | 在线免费观看日本一区| 一区二区在线观看视频| 精品国产一区二区精华| 91精品欧美综合在线观看最新 | 欧美一区二区三区系列电影| 欧美一区二区三区播放老司机| ...xxx性欧美| 久久精品视频一区二区三区|