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

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

?? control.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.widgets;import org.eclipse.swt.internal.win32.*;import org.eclipse.swt.graphics.*;import org.eclipse.swt.*;import org.eclipse.swt.events.*;import org.eclipse.swt.accessibility.*;/** * Control is the abstract superclass of all windowed user interface classes. * <p> * <dl> * <dt><b>Styles:</b> * <dd>BORDER</dd> * <dd>LEFT_TO_RIGHT, RIGHT_TO_LEFT</dd> * <dt><b>Events:</b> * <dd>FocusIn, FocusOut, Help, KeyDown, KeyUp, MouseDoubleClick, MouseDown, MouseEnter, *     MouseExit, MouseHover, MouseUp, MouseMove, Move, Paint, Resize, Traverse, *     DragDetect, MenuDetect</dd> * </dl> * <p> * Only one of LEFT_TO_RIGHT or RIGHT_TO_LEFT may be specified. * </p><p> * IMPORTANT: This class is intended to be subclassed <em>only</em> * within the SWT implementation. * </p> */public abstract class Control extends Widget implements Drawable {	/**	 * the handle to the OS resource 	 * (Warning: This field is platform dependent)	 */	public int handle;	Composite parent;	Cursor cursor;	Menu menu;	String toolTipText;	Object layoutData;	Accessible accessible;	int drawCount, foreground, background;/** * Prevents uninitialized instances from being created outside the package. */Control () {}/** * 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#BORDER * @see Widget#checkSubclass * @see Widget#getStyle */public Control (Composite parent, int style) {	super (parent, style);	this.parent = parent;	createWidget ();}/** * Adds the listener to the collection of listeners who will * be notified when the control is moved or resized, by sending * it one of the messages defined in the <code>ControlListener</code> * interface. * * @param listener the listener which should be notified * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the listener 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> * * @see ControlListener * @see #removeControlListener */public void addControlListener(ControlListener listener) {	checkWidget ();	if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);	TypedListener typedListener = new TypedListener (listener);	addListener (SWT.Resize,typedListener);	addListener (SWT.Move,typedListener);}/** * Adds the listener to the collection of listeners who will * be notified when the control gains or loses focus, by sending * it one of the messages defined in the <code>FocusListener</code> * interface. * * @param listener the listener which should be notified * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the listener 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> * * @see FocusListener * @see #removeFocusListener */public void addFocusListener (FocusListener listener) {	checkWidget ();	if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);	TypedListener typedListener = new TypedListener (listener);	addListener (SWT.FocusIn,typedListener);	addListener (SWT.FocusOut,typedListener);}/** * Adds the listener to the collection of listeners who will * be notified when help events are generated for the control, * by sending it one of the messages defined in the * <code>HelpListener</code> interface. * * @param listener the listener which should be notified * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the listener 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> * * @see HelpListener * @see #removeHelpListener */public void addHelpListener (HelpListener listener) {	checkWidget ();	if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);	TypedListener typedListener = new TypedListener (listener);	addListener (SWT.Help, typedListener);}/** * Adds the listener to the collection of listeners who will * be notified when keys are pressed and released on the system keyboard, by sending * it one of the messages defined in the <code>KeyListener</code> * interface. * * @param listener the listener which should be notified * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the listener 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> * * @see KeyListener * @see #removeKeyListener */public void addKeyListener (KeyListener listener) {	checkWidget ();	if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);	TypedListener typedListener = new TypedListener (listener);	addListener (SWT.KeyUp,typedListener);	addListener (SWT.KeyDown,typedListener);}/** * Adds the listener to the collection of listeners who will * be notified when mouse buttons are pressed and released, by sending * it one of the messages defined in the <code>MouseListener</code> * interface. * * @param listener the listener which should be notified * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the listener 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> * * @see MouseListener * @see #removeMouseListener */public void addMouseListener (MouseListener listener) {	checkWidget ();	if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);	TypedListener typedListener = new TypedListener (listener);	addListener (SWT.MouseDown,typedListener);	addListener (SWT.MouseUp,typedListener);	addListener (SWT.MouseDoubleClick,typedListener);}/** * Adds the listener to the collection of listeners who will * be notified when the mouse passes or hovers over controls, by sending * it one of the messages defined in the <code>MouseTrackListener</code> * interface. * * @param listener the listener which should be notified * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the listener 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> * * @see MouseTrackListener * @see #removeMouseTrackListener */public void addMouseTrackListener (MouseTrackListener listener) {	checkWidget ();	if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);	TypedListener typedListener = new TypedListener (listener);	addListener (SWT.MouseEnter,typedListener);	addListener (SWT.MouseExit,typedListener);	addListener (SWT.MouseHover,typedListener);}/** * Adds the listener to the collection of listeners who will * be notified when the mouse moves, by sending it one of the * messages defined in the <code>MouseMoveListener</code> * interface. * * @param listener the listener which should be notified * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the listener 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> * * @see MouseMoveListener * @see #removeMouseMoveListener */public void addMouseMoveListener (MouseMoveListener listener) {	checkWidget ();	if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);	TypedListener typedListener = new TypedListener (listener);	addListener (SWT.MouseMove,typedListener);}/** * Adds the listener to the collection of listeners who will * be notified when the receiver needs to be painted, by sending it * one of the messages defined in the <code>PaintListener</code> * interface. * * @param listener the listener which should be notified * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the listener 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> * * @see PaintListener * @see #removePaintListener */public void addPaintListener (PaintListener listener) {	checkWidget ();	if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);	TypedListener typedListener = new TypedListener (listener);	addListener (SWT.Paint,typedListener);}/** * Adds the listener to the collection of listeners who will * be notified when traversal events occur, by sending it * one of the messages defined in the <code>TraverseListener</code> * interface. * * @param listener the listener which should be notified * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the listener 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> * * @see TraverseListener * @see #removeTraverseListener */public void addTraverseListener (TraverseListener listener) {	checkWidget ();	if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);	TypedListener typedListener = new TypedListener (listener);	addListener (SWT.Traverse,typedListener);}abstract int callWindowProc (int msg, int wParam, int lParam);void checkMirrored () {	if ((style & SWT.RIGHT_TO_LEFT) != 0) {		int bits = OS.GetWindowLong (handle, OS.GWL_EXSTYLE);		if ((bits & OS.WS_EX_LAYOUTRTL) != 0) style |= SWT.MIRRORED;	}}/** * Returns the preferred size of the receiver. * <p> * The <em>preferred size</em> of a control is the size that it would * best be displayed at. The width hint and height hint arguments * allow the caller to ask a control questions such as "Given a particular * width, how high does the control need to be to show all of the contents?" * To indicate that the caller does not wish to constrain a particular  * dimension, the constant <code>SWT.DEFAULT</code> is passed for the hint.  * </p> * * @param wHint the width hint (can be <code>SWT.DEFAULT</code>) * @param hHint the height hint (can be <code>SWT.DEFAULT</code>) * @return the preferred size of 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> * * @see Layout * @see #getBorderWidth * @see #getBounds * @see #getSize * @see #pack * @see "computeTrim, getClientArea for controls that implement them" */public Point computeSize (int wHint, int hHint) {	return computeSize (wHint, hHint, true);}/** * Returns the preferred size of the receiver. * <p> * The <em>preferred size</em> of a control is the size that it would * best be displayed at. The width hint and height hint arguments * allow the caller to ask a control questions such as "Given a particular * width, how high does the control need to be to show all of the contents?" * To indicate that the caller does not wish to constrain a particular  * dimension, the constant <code>SWT.DEFAULT</code> is passed for the hint.  * </p><p> * If the changed flag is <code>true</code>, it indicates that the receiver's * <em>contents</em> have changed, therefore any caches that a layout manager * containing the control may have been keeping need to be flushed. When the * control is resized, the changed flag will be <code>false</code>, so layout * manager caches can be retained.  * </p> * * @param wHint the width hint (can be <code>SWT.DEFAULT</code>) * @param hHint the height hint (can be <code>SWT.DEFAULT</code>) * @param changed <code>true</code> if the control's contents have changed, and <code>false</code> otherwise * @return the preferred size of 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> * * @see Layout * @see #getBorderWidth * @see #getBounds * @see #getSize * @see #pack * @see "computeTrim, getClientArea for controls that implement them" */public Point computeSize (int wHint, int hHint, boolean changed) {	checkWidget ();	int width = DEFAULT_WIDTH;	int height = DEFAULT_HEIGHT;	if (wHint != SWT.DEFAULT) width = wHint;	if (hHint != SWT.DEFAULT) height = hHint;	int border = getBorderWidth ();	width += border * 2;	height += border * 2;	return new Point (width, height);}Control computeTabGroup () {	if (isTabGroup ()) return this;	return parent.computeTabGroup ();}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
五月天亚洲精品| 色综合天天综合网国产成人综合天| 精品国产一区二区三区av性色| 91高清视频在线| 99精品欧美一区| 国产乱妇无码大片在线观看| 日本欧美久久久久免费播放网| 亚洲综合自拍偷拍| 亚洲桃色在线一区| 中文字幕在线不卡视频| 国产精品麻豆欧美日韩ww| 欧美国产日韩亚洲一区| 国产天堂亚洲国产碰碰| 欧美精彩视频一区二区三区| 国产精品美女久久久久av爽李琼| 奇米四色…亚洲| 狠狠色综合播放一区二区| 久久精品99久久久| 国产又粗又猛又爽又黄91精品| 国产精品资源站在线| 欧美日本不卡视频| 91精品一区二区三区在线观看| 精品久久久网站| 中文字幕电影一区| 国产高清不卡二三区| 色哟哟国产精品| 欧美一级视频精品观看| 久久久久久久电影| 亚洲第一狼人社区| 精品一区二区三区视频| 色94色欧美sute亚洲13| 亚洲欧美综合在线精品| 成人app软件下载大全免费| 日本乱码高清不卡字幕| 亚洲精品综合在线| 美女网站色91| 日本道色综合久久| 亚洲欧美一区二区不卡| 激情五月婷婷综合| 久久久久久久精| 国产jizzjizz一区二区| 欧美乱妇20p| 亚洲欧美综合网| 91影院在线免费观看| 久久综合久久鬼色| 亚洲一级二级在线| 国产成人精品三级| 欧美高清在线精品一区| 99精品偷自拍| 亚洲图片欧美色图| 97aⅴ精品视频一二三区| 悠悠色在线精品| 在线成人av网站| 国产一区二区三区黄视频| 国产区在线观看成人精品 | 日本一区二区三区国色天香| 成人性生交大片免费看中文| 91精品婷婷国产综合久久性色| 青娱乐精品视频| 国产视频在线观看一区二区三区 | 国产一区二区三区综合| 国产精品视频免费看| 欧美午夜精品一区二区三区| 国产精品美女久久福利网站| 日本精品一级二级| 韩国三级在线一区| 亚洲欧美另类小说视频| 在线成人av影院| 成人av片在线观看| 日本亚洲视频在线| 中文字幕在线观看不卡视频| 在线观看91av| 99re成人精品视频| 精品一区精品二区高清| 亚洲激情男女视频| 久久综合久久综合久久综合| 欧美中文字幕一区二区三区 | 久久99精品久久只有精品| 国产欧美一区二区精品秋霞影院| 在线欧美一区二区| 国产乱码字幕精品高清av | 日韩一区二区在线观看视频播放| 午夜久久电影网| 欧美精彩视频一区二区三区| 制服丝袜亚洲网站| 91视频一区二区| 国产成人日日夜夜| 婷婷久久综合九色综合绿巨人 | 91美女福利视频| 国产精品综合av一区二区国产馆| 亚瑟在线精品视频| 中文字幕一区免费在线观看| 久久综合精品国产一区二区三区| 欧美中文字幕亚洲一区二区va在线| 国产91丝袜在线播放0| 日本网站在线观看一区二区三区 | 免费视频最近日韩| 亚洲一区影音先锋| 一区二区三区四区蜜桃| 国产精品毛片久久久久久久| 国产婷婷色一区二区三区四区| 日韩一区二区免费电影| 777xxx欧美| 6080日韩午夜伦伦午夜伦| 色婷婷久久久亚洲一区二区三区| 成人av电影免费观看| 成人午夜视频免费看| 国产黄人亚洲片| 国产乱色国产精品免费视频| 国产一区二区三区国产| 国产精品77777| 亚洲女同一区二区| www国产精品av| 91片黄在线观看| 高清久久久久久| 国产不卡视频一区二区三区| 美国欧美日韩国产在线播放 | 久久福利视频一区二区| 国产精品少妇自拍| 中文字幕日韩av资源站| www亚洲一区| 精品黑人一区二区三区久久| 欧美精品欧美精品系列| 欧美亚洲免费在线一区| 欧美精品日韩一区| 欧美日韩视频一区二区| 亚洲欧美精品午睡沙发| 国产亚洲精品资源在线26u| 精品国产乱码久久久久久影片| 欧美美女视频在线观看| 精品福利在线导航| 精品国产一区二区三区忘忧草| 日韩一级片网站| 日韩欧美一级片| 国产一区不卡视频| 91亚洲精品久久久蜜桃| 欧美日韩一卡二卡| 色婷婷综合久色| 99热99精品| 一本久久综合亚洲鲁鲁五月天| av中文一区二区三区| 国产精品影视在线观看| 91一区二区三区在线观看| 99re亚洲国产精品| 欧美日韩国产在线播放网站| 欧美二区乱c少妇| 色狠狠综合天天综合综合| 欧美日韩一区二区三区四区| 欧美国产1区2区| 精品奇米国产一区二区三区| 久久精品视频一区二区| 国产精品私房写真福利视频| 欧美va亚洲va| 欧美欧美午夜aⅴ在线观看| 日韩亚洲欧美中文三级| 久久亚洲一级片| 一区二区中文视频| 欧美激情一区二区三区| 五月婷婷欧美视频| 国内精品国产成人国产三级粉色 | 风间由美一区二区av101| av网站免费线看精品| 欧美视频一区在线| 精品国产91九色蝌蚪| 亚洲欧美国产三级| 麻豆精品在线播放| www.日韩精品| 7777女厕盗摄久久久| 亚洲免费资源在线播放| 久久国产三级精品| 93久久精品日日躁夜夜躁欧美| 4438x亚洲最大成人网| 国产人妖乱国产精品人妖| 免费成人在线影院| 91在线视频观看| 欧美精品一卡二卡| 国产精品电影一区二区| 男人的天堂久久精品| 91福利国产成人精品照片| 久久久久久久综合色一本| 亚洲自拍偷拍麻豆| 国产精品18久久久| 7777精品伊人久久久大香线蕉经典版下载 | 欧美日本一道本在线视频| 国产精品萝li| 精品综合久久久久久8888| 久久成人久久爱| 欧美日韩高清不卡| 五月天中文字幕一区二区| aaa亚洲精品| 久久麻豆一区二区| 蜜臀久久99精品久久久久宅男| 成人午夜电影小说| 久久久久久久久久久电影| 一区二区三区高清不卡| av在线播放成人| 久久久久久久久久久久久久久99 | 亚洲视频 欧洲视频| 久久国产视频网| 日韩欧美国产wwwww|