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

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

?? label.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.widgets;import org.eclipse.swt.internal.win32.*;import org.eclipse.swt.*;import org.eclipse.swt.graphics.*;/** * Instances of this class represent a non-selectable * user interface object that displays a string or image. * When SEPARATOR is specified, displays a single * vertical or horizontal line. * <dl> * <dt><b>Styles:</b></dt> * <dd>SEPARATOR, HORIZONTAL, VERTICAL</dd> * <dd>SHADOW_IN, SHADOW_OUT, SHADOW_NONE</dd> * <dd>CENTER, LEFT, RIGHT, WRAP</dd> * <dt><b>Events:</b></dt> * <dd>(none)</dd> * </dl> * <p> * Note: Only one of SHADOW_IN, SHADOW_OUT and SHADOW_NONE may be specified. * SHADOW_NONE is a HINT. Only one of HORIZONTAL and VERTICAL may be specified. * Only one of CENTER, LEFT and RIGHT may be specified. * </p><p> * IMPORTANT: This class is intended to be subclassed <em>only</em> * within the SWT implementation. * </p> */public class Label extends Control {	String text = "";	Image image;	int font;	static final int LabelProc;	static final TCHAR LabelClass = new TCHAR (0, "STATIC", true);	static {		WNDCLASS lpWndClass = new WNDCLASS ();		OS.GetClassInfo (0, LabelClass, lpWndClass);		LabelProc = 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#SEPARATOR * @see SWT#HORIZONTAL * @see SWT#VERTICAL * @see SWT#SHADOW_IN * @see SWT#SHADOW_OUT * @see SWT#SHADOW_NONE * @see SWT#CENTER * @see SWT#LEFT * @see SWT#RIGHT * @see SWT#WRAP * @see Widget#checkSubclass * @see Widget#getStyle */public Label (Composite parent, int style) {	super (parent, checkStyle (style));}int callWindowProc (int msg, int wParam, int lParam) {	if (handle == 0) return 0;	return OS.CallWindowProc (LabelProc, handle, msg, wParam, lParam);}static int checkStyle (int style) {	style |= SWT.NO_FOCUS;	if ((style & SWT.SEPARATOR) != 0) {		style = checkBits (style, SWT.VERTICAL, SWT.HORIZONTAL, 0, 0, 0, 0);		return checkBits (style, SWT.SHADOW_OUT, SWT.SHADOW_IN, SWT.SHADOW_NONE, 0, 0, 0);	} 	return checkBits (style, SWT.LEFT, SWT.CENTER, SWT.RIGHT, 0, 0, 0);}public Point computeSize (int wHint, int hHint, boolean changed) {	checkWidget ();	int width = 0, height = 0;	int border = getBorderWidth ();	if ((style & SWT.SEPARATOR) != 0) {		int lineWidth = OS.GetSystemMetrics (OS.SM_CXBORDER);		if ((style & SWT.HORIZONTAL) != 0) {			width = DEFAULT_WIDTH;  height = lineWidth * 2;		} else {			width = lineWidth * 2; height = DEFAULT_HEIGHT;		}		if (wHint != SWT.DEFAULT) width = wHint;		if (hHint != SWT.DEFAULT) height = hHint;		width += border * 2; height += border * 2;		return new Point (width, height);	}	/*	* NOTE: SS_BITMAP and SS_ICON are not single bit	* masks so it is necessary to test for all of the	* bits in these masks.	*/	int bits = OS.GetWindowLong (handle, OS.GWL_STYLE);	boolean isBitmap = (bits & OS.SS_BITMAP) == OS.SS_BITMAP;	boolean isIcon = (bits & OS.SS_ICON) == OS.SS_ICON;	if (isBitmap || isIcon) {		if (image != null) {			Rectangle rect = image.getBounds();			width = rect.width;			height = rect.height;		}	} else {		int hDC = OS.GetDC (handle);		int newFont = OS.SendMessage (handle, OS.WM_GETFONT, 0, 0);		int oldFont = OS.SelectObject (hDC, newFont);		RECT rect = new RECT ();		int flags = OS.DT_CALCRECT | OS.DT_EDITCONTROL | OS.DT_EXPANDTABS;		if ((style & SWT.WRAP) != 0 && wHint != SWT.DEFAULT) {			flags |= OS.DT_WORDBREAK;			rect.right = wHint;		}		int length = OS.GetWindowTextLength (handle);		TCHAR buffer = new TCHAR (getCodePage (), length + 1);		OS.GetWindowText (handle, buffer, length + 1);		OS.DrawText (hDC, buffer, length, rect, flags);		width = rect.right - rect.left;		height = rect.bottom - rect.top;		if (height == 0) {			TEXTMETRIC tm = OS.IsUnicode ? (TEXTMETRIC) new TEXTMETRICW () : new TEXTMETRICA ();			OS.GetTextMetrics (hDC, tm);			height = tm.tmHeight;		}		if (newFont != 0) OS.SelectObject (hDC, oldFont);		OS.ReleaseDC (handle, hDC);	}	if (wHint != SWT.DEFAULT) width = wHint;	if (hHint != SWT.DEFAULT) height = hHint;	width += border * 2; height += border * 2;	/* 	* Feature in WinCE PPC.  Text labels have a trim	* of one pixel wide on the right and left side.	* The fix is to increase the size.	*/	if (OS.IsWinCE) {		if (!isBitmap && !isIcon) width += 2;	}	return new Point (width, height);}/** * Returns a value which describes the position of the * text or image in the receiver. The value will be one of * <code>LEFT</code>, <code>RIGHT</code> or <code>CENTER</code> * unless the receiver is a <code>SEPARATOR</code> label, in  * which case, <code>NONE</code> is returned. * * @return the alignment  * * @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 int getAlignment () {	checkWidget ();	if ((style & SWT.SEPARATOR) != 0) return 0;	if ((style & SWT.LEFT) != 0) return SWT.LEFT;	if ((style & SWT.CENTER) != 0) return SWT.CENTER;	if ((style & SWT.RIGHT) != 0) return SWT.RIGHT;	return SWT.LEFT;}/** * Returns the receiver's image if it has one, or null * if it does not. * * @return the receiver's image * * @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 image;}String getNameText () {	return getText ();}/** * Returns the receiver's text, which will be an empty * string if it has never been set or if the receiver is * a <code>SEPARATOR</code> label. * * @return the receiver's 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 getText () {	checkWidget ();	if ((style & SWT.SEPARATOR) != 0) return "";	return text;}/** Not currently used.*/boolean getWrap () {	int bits = OS.GetWindowLong (handle, OS.GWL_STYLE);	if ((bits & (OS.SS_RIGHT | OS.SS_CENTER)) != 0) return true;	if ((bits & OS.SS_LEFTNOWORDWRAP) != 0) return false;	return true;}boolean mnemonicHit (char key) {	Composite control = this.parent;	while (control != null) {		Control [] children = control._getChildren ();		int index = 0;		while (index < children.length) {			if (children [index] == this) break;			index++;		}		index++;		if (index < children.length) {			if (children [index].setFocus ()) return true;		}		control = control.parent;	}	return false;}boolean mnemonicMatch (char key) {	char mnemonic = findMnemonic (getText ());	if (mnemonic == '\0') return false;	return Character.toUpperCase (key) == Character.toUpperCase (mnemonic);}void releaseWidget () {	super.releaseWidget ();	text = null;	image = null;}/** * Controls how text and images will be displayed in the receiver. * The argument should be one of <code>LEFT</code>, <code>RIGHT</code> * or <code>CENTER</code>.  If the receiver is a <code>SEPARATOR</code> * label, the argument is ignored and the alignment is not changed. * * @param alignment the new alignment  * * @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 setAlignment (int alignment) {	checkWidget ();	if ((style & SWT.SEPARATOR) != 0) return;	if ((alignment & (SWT.LEFT | SWT.RIGHT | SWT.CENTER)) == 0) return;	style &= ~(SWT.LEFT | SWT.RIGHT | SWT.CENTER);	style |= alignment & (SWT.LEFT | SWT.RIGHT | SWT.CENTER);	int bits = OS.GetWindowLong (handle, OS.GWL_STYLE);	/*	* Feature in Windows.  The windows label does not align

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人精品影院| 欧美sm美女调教| 日韩欧美国产高清| 亚洲婷婷综合久久一本伊一区| 偷拍亚洲欧洲综合| 99久久婷婷国产综合精品| 精品少妇一区二区三区免费观看| 亚洲精品视频自拍| 粉嫩aⅴ一区二区三区四区 | 麻豆精品视频在线| 91麻豆成人久久精品二区三区| 欧美一区二区视频免费观看| 亚洲自拍偷拍图区| 成人app在线观看| 欧美精品一区二区三区四区| 黄色小说综合网站| 在线免费观看视频一区| 国产精品免费久久| 国产成人精品www牛牛影视| 日韩你懂的电影在线观看| 亚洲成人免费av| 欧美三级电影网| 一区二区三区在线视频播放 | 日本亚洲欧美天堂免费| 欧美性生交片4| 亚洲最大成人综合| 色一情一乱一乱一91av| 亚洲视频你懂的| 91亚洲精品久久久蜜桃| 亚洲欧美日韩在线| 色偷偷一区二区三区| 亚洲精选一二三| 在线观看免费视频综合| 一区二区久久久| 在线一区二区视频| 亚洲最大成人网4388xx| 欧美日韩日本视频| 日韩电影免费在线看| 日韩一卡二卡三卡国产欧美| 九九精品视频在线看| 26uuu国产电影一区二区| 国产精选一区二区三区| 中文字幕中文字幕一区| 在线免费观看日本欧美| 日韩一区精品字幕| xfplay精品久久| 国产91在线|亚洲| 亚洲美女一区二区三区| 欧美另类一区二区三区| 激情小说亚洲一区| 国产精品久久看| 欧美专区日韩专区| 美女久久久精品| 国产亚洲欧美色| 色一区在线观看| 蜜臀91精品一区二区三区| 欧美极品xxx| 欧美三级电影网站| 国产美女久久久久| 亚洲精品日韩综合观看成人91| 欧美日韩国产天堂| 国产91丝袜在线播放| 亚洲在线免费播放| 欧美成人精品3d动漫h| 不卡一二三区首页| 日本欧美肥老太交大片| 国产精品欧美极品| 91精品国产色综合久久ai换脸| 国产福利一区二区三区| 亚洲电影激情视频网站| 日韩欧美在线综合网| 91免费国产在线| 精品一区二区三区视频| 一区二区三区美女| 欧美激情在线免费观看| 91精品国产综合久久福利软件| 国产麻豆9l精品三级站| 午夜不卡av在线| 国产精品的网站| 精品国产三级电影在线观看| 91官网在线免费观看| 国产99一区视频免费| 美女网站一区二区| 亚洲国产中文字幕在线视频综合| 亚洲国产精品黑人久久久| 日韩欧美高清在线| 欧美久久高跟鞋激| 91亚洲精华国产精华精华液| 国产高清在线精品| 久久精品国产精品亚洲精品| 亚洲一区成人在线| 亚洲欧美日韩国产一区二区三区| 久久精品综合网| 精品卡一卡二卡三卡四在线| 欧美理论在线播放| 欧美性欧美巨大黑白大战| 91丨porny丨国产入口| 国产成人av一区二区三区在线 | 国产精品一区免费视频| 蜜臀av性久久久久蜜臀aⅴ四虎| 亚洲一区二区欧美日韩| 亚洲乱码国产乱码精品精可以看| 中文一区二区在线观看 | 欧美大片在线观看一区| 在线观看免费视频综合| 色综合天天综合网天天狠天天| 夫妻av一区二区| 成人精品国产免费网站| 国产精品亚洲人在线观看| 久久99深爱久久99精品| 麻豆精品久久精品色综合| 美国毛片一区二区| 另类小说综合欧美亚洲| 久久99九九99精品| 狠狠色狠狠色综合| 狠狠色综合日日| 国产suv精品一区二区6| 成人午夜av电影| 91视频你懂的| 欧美偷拍一区二区| 91精品在线免费| 欧美成人精品高清在线播放| 久久一区二区视频| 中文字幕成人网| 1区2区3区欧美| 亚洲成av人片一区二区| 久久精品国产秦先生| 国产成人亚洲综合a∨婷婷| www.亚洲色图.com| 欧美亚洲国产bt| 欧美xxxx在线观看| 国产精品网友自拍| 亚洲国产另类av| 久久精品久久99精品久久| 国产999精品久久| 色成人在线视频| 日韩亚洲欧美在线| 国产亚洲欧洲一区高清在线观看| 国产精品国产三级国产aⅴ原创| 亚洲精品国久久99热| 日韩电影在线免费| 成人在线视频一区| 欧美年轻男男videosbes| 久久久久久久综合狠狠综合| 综合久久一区二区三区| 日精品一区二区| 国产99久久精品| 欧美二区在线观看| 国产精品人成在线观看免费| 亚洲国产一区二区三区| 久久99精品国产麻豆婷婷| eeuss影院一区二区三区| 日韩一区二区在线观看视频| 国产精品久久久久久久久久免费看 | 日韩欧美国产一二三区| 中文在线免费一区三区高中清不卡| 亚洲午夜日本在线观看| 国产酒店精品激情| 欧美日韩黄色一区二区| 国产精品色婷婷| 精品一区二区三区在线视频| 日本丰满少妇一区二区三区| 久久先锋影音av鲁色资源网| 五月婷婷另类国产| 97久久超碰精品国产| 久久久久成人黄色影片| 日本亚洲免费观看| 欧美日韩一区二区电影| 日韩毛片精品高清免费| 国产成人在线看| 欧美一级艳片视频免费观看| 亚洲激情图片一区| 成人av午夜影院| 国产香蕉久久精品综合网| 美腿丝袜亚洲三区| 欧美日韩国产首页在线观看| 成人欧美一区二区三区| 成人av在线资源网站| xnxx国产精品| 国内外成人在线| 日韩视频一区二区三区在线播放| 亚洲一区二区精品视频| 色综合久久九月婷婷色综合| 国产精品久久久久一区二区三区| 国产毛片精品一区| www激情久久| 韩日欧美一区二区三区| 欧美一级欧美三级| 日韩av午夜在线观看| 91精品国产综合久久久久久| 亚洲一区二区三区四区在线 | 欧洲国内综合视频| 亚洲欧美日韩在线| 99热国产精品| 亚洲视频一区二区在线观看| 成人avav影音| 悠悠色在线精品| 在线免费av一区| 香蕉乱码成人久久天堂爱免费| 欧美日本一区二区三区四区|