亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
在线观看视频一区二区欧美日韩| 视频一区二区中文字幕| 欧美一区二区三区系列电影| 在线免费亚洲电影| 日本韩国一区二区三区视频| 99精品久久99久久久久| av日韩在线网站| 色吧成人激情小说| 欧美亚洲高清一区二区三区不卡| 在线视频欧美区| 欧美日韩综合在线| 91精品国产综合久久久久久久久久 | 久久亚洲二区三区| 精品国产亚洲一区二区三区在线观看| 日韩一卡二卡三卡| 久久人人爽爽爽人久久久| 欧美精品一区二区三区在线播放| 精品国产在天天线2019| 中文字幕欧美激情一区| 国产精品欧美久久久久无广告| 中文字幕视频一区| 午夜精品久久久久久久99樱桃| 天堂午夜影视日韩欧美一区二区| 日本欧美韩国一区三区| 国产成人综合精品三级| 91欧美一区二区| 欧美精品一卡二卡| 国产日韩精品一区二区三区在线| 成人欧美一区二区三区| 天天综合网 天天综合色| 卡一卡二国产精品| 91在线精品一区二区| 欧美久久久久久久久中文字幕| 精品国产三级电影在线观看| 日本一区二区三区视频视频| 亚洲福利一二三区| 韩国精品免费视频| 一本到不卡精品视频在线观看| 制服丝袜日韩国产| 中文字幕成人网| 免费欧美高清视频| 91性感美女视频| 欧美一区二区三区啪啪| 自拍偷拍国产精品| 久久成人久久鬼色| 日本精品一级二级| 国产精品萝li| 久久黄色级2电影| 在线免费观看日韩欧美| 久久久久久久久免费| 亚洲成人综合视频| 91丨porny丨首页| 精品理论电影在线| 亚洲午夜一区二区| 99久久er热在这里只有精品15| 亚洲精品在线免费播放| 亚洲一区二区综合| 色综合久久综合网欧美综合网| 久久看人人爽人人| 美女久久久精品| 欧美高清视频一二三区 | 欧美精品一卡二卡| 亚洲美女偷拍久久| 国产成人a级片| 久久久久久久久久久电影| 五月婷婷色综合| 在线免费观看一区| 亚洲已满18点击进入久久| 成人涩涩免费视频| 国产精品久久久久久久久免费相片 | 一本大道久久a久久综合婷婷| 久久免费国产精品 | 欧美激情一区二区三区全黄| 免费人成精品欧美精品| 在线不卡免费欧美| 天天av天天翘天天综合网色鬼国产| 在线欧美一区二区| 亚洲一区二区三区视频在线播放| 91在线观看地址| 亚洲欧美日韩一区二区| 99re成人在线| 亚洲美女屁股眼交| 欧美色偷偷大香| 丝袜a∨在线一区二区三区不卡| 欧美日韩精品一区二区三区 | 日韩精品自拍偷拍| 久久99精品国产| 国产无遮挡一区二区三区毛片日本| 狠狠色丁香久久婷婷综| 欧美国产欧美综合| 成人av电影在线| 亚洲精品美国一| 欧美日韩国产影片| 免费在线观看一区| 国产午夜精品一区二区三区嫩草| 成人h版在线观看| 亚洲色图20p| 日韩欧美一二三四区| 国产激情精品久久久第一区二区 | 欧美色精品天天在线观看视频| 日韩精品国产欧美| 2020国产精品自拍| 色婷婷一区二区| 裸体健美xxxx欧美裸体表演| 久久精品一区蜜桃臀影院| 99r国产精品| 日本亚洲三级在线| 国产精品免费aⅴ片在线观看| 一本到不卡免费一区二区| 美女www一区二区| 国产精品美日韩| 欧美肥胖老妇做爰| 成人av电影免费在线播放| 天天免费综合色| 亚洲国产精品av| 欧美一三区三区四区免费在线看| 国产69精品久久99不卡| 午夜在线成人av| 亚洲国产精品黑人久久久| 91精品国产综合久久久久久久久久| 国产成人aaa| 麻豆国产精品777777在线| 亚洲三级在线免费观看| 91精品国产综合久久久蜜臀粉嫩 | 美美哒免费高清在线观看视频一区二区 | 日韩一区二区三区观看| 成a人片亚洲日本久久| 美女性感视频久久| 亚洲一区在线观看网站| 国产视频视频一区| 日韩欧美国产一区二区三区| 色综合一个色综合| 国产呦精品一区二区三区网站| 亚洲已满18点击进入久久| 欧美国产禁国产网站cc| 91精品在线观看入口| 色久综合一二码| 成人av电影在线播放| 国产一区二区在线影院| 日本中文字幕不卡| 午夜伊人狠狠久久| 亚洲精选一二三| 亚洲人成网站色在线观看| 国产亚洲人成网站| 久久久精品日韩欧美| 日韩欧美你懂的| 日韩一区二区三区四区五区六区 | 国产在线不卡一区| 狠狠色丁香婷婷综合| 久久99精品久久久久久动态图| 视频一区欧美日韩| 亚洲午夜影视影院在线观看| 一区二区三区.www| 中文字幕日本乱码精品影院| 亚洲视频中文字幕| 亚洲欧美国产毛片在线| 亚洲欧美另类小说视频| 中文字幕日韩欧美一区二区三区| 国产精品久久久久永久免费观看| 中文字幕av在线一区二区三区| 欧美国产日韩a欧美在线观看| 中文字幕在线不卡一区二区三区| 久久精品日韩一区二区三区| 久久色视频免费观看| 国产欧美日韩视频在线观看| 国产欧美一区二区三区网站| 欧美韩国一区二区| 亚洲色图欧美在线| 亚洲国产日韩综合久久精品| 婷婷开心久久网| 另类专区欧美蜜桃臀第一页| 国产精品白丝jk白祙喷水网站| 国产精选一区二区三区| av电影天堂一区二区在线观看| 91蜜桃网址入口| 在线电影院国产精品| 欧美成va人片在线观看| 国产视频一区二区在线观看| 亚洲老妇xxxxxx| 亚洲成av人片在线| 国产精品1区二区.| 99re亚洲国产精品| 欧美一二三四在线| 久久久九九九九| 亚洲国产wwwccc36天堂| 美女精品一区二区| 99久久久免费精品国产一区二区| 欧美性色黄大片| 久久久久青草大香线综合精品| 一区二区在线观看视频在线观看| 日本不卡高清视频| 91在线云播放| 日韩一区二区精品葵司在线 | 精品国产乱码久久久久久闺蜜| 国产欧美精品一区aⅴ影院| 一区二区三区四区不卡视频| 国内精品视频一区二区三区八戒| 成人黄动漫网站免费app| 欧美一区二区三区系列电影| 亚洲私人黄色宅男|