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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? progressbar.java

?? 源碼為Eclipse開源開發(fā)平臺(tái)桌面開發(fā)工具SWT的源代碼,
?? JAVA
字號(hào):
/******************************************************************************* * 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 the receiver represent is an unselectable * user interface object that is used to display progress, * typically in the form of a bar. * <dl> * <dt><b>Styles:</b></dt> * <dd>SMOOTH, HORIZONTAL, VERTICAL, INDETERMINATE</dd> * <dt><b>Events:</b></dt> * <dd>(none)</dd> * </dl> * <p> * Note: Only one of the styles HORIZONTAL and VERTICAL may be specified. * </p><p> * IMPORTANT: This class is intended to be subclassed <em>only</em> * within the SWT implementation. * </p> */public class ProgressBar extends Control {	static final int DELAY = 100;	static final int TIMER_ID = 100;	static final int ProgressBarProc;	static final TCHAR ProgressBarClass = new TCHAR (0, OS.PROGRESS_CLASS, true);	static {		WNDCLASS lpWndClass = new WNDCLASS ();		OS.GetClassInfo (0, ProgressBarClass, lpWndClass);		ProgressBarProc = lpWndClass.lpfnWndProc;		/*		* Feature in Windows.  The progress bar window class		* does not include CS_DBLCLKS.  This mean that these		* controls will not get double click messages such as		* WM_LBUTTONDBLCLK.  The fix is to register a new 		* window class with CS_DBLCLKS.		* 		* NOTE:  Screen readers look for the exact class name		* of the control in order to provide the correct kind		* of assistance.  Therefore, it is critical that the		* new window class have the same name.  It is possible		* to register a local window class with the same name		* as a global class.  Since bits that affect the class		* are being changed, it is possible that other native		* code, other than SWT, could create a control with		* this class name, and fail unexpectedly.		*/		int hInstance = OS.GetModuleHandle (null);		int hHeap = OS.GetProcessHeap ();		lpWndClass.hInstance = hInstance;		lpWndClass.style &= ~OS.CS_GLOBALCLASS;		lpWndClass.style |= OS.CS_DBLCLKS;		int byteCount = ProgressBarClass.length () * TCHAR.sizeof;		int lpszClassName = OS.HeapAlloc (hHeap, OS.HEAP_ZERO_MEMORY, byteCount);		OS.MoveMemory (lpszClassName, ProgressBarClass, byteCount);		lpWndClass.lpszClassName = lpszClassName;		OS.RegisterClass (lpWndClass);//		OS.HeapFree (hHeap, 0, lpszClassName);		}/** * 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#SMOOTH * @see SWT#HORIZONTAL * @see SWT#VERTICAL * @see Widget#checkSubclass * @see Widget#getStyle */public ProgressBar (Composite parent, int style) {	super (parent, checkStyle (style));}int callWindowProc (int msg, int wParam, int lParam) {	if (handle == 0) return 0;	return OS.CallWindowProc (ProgressBarProc, handle, msg, wParam, lParam);}static int checkStyle (int style) {	style |= SWT.NO_FOCUS;	return checkBits (style, SWT.HORIZONTAL, SWT.VERTICAL, 0, 0, 0, 0);}public Point computeSize (int wHint, int hHint, boolean changed) {	checkWidget ();	int border = getBorderWidth ();	int width = border * 2, height = border * 2;	if ((style & SWT.HORIZONTAL) != 0) {		width += OS.GetSystemMetrics (OS.SM_CXHSCROLL) * 10;		height += OS.GetSystemMetrics (OS.SM_CYHSCROLL);	} else {		width += OS.GetSystemMetrics (OS.SM_CXVSCROLL);		height += OS.GetSystemMetrics (OS.SM_CYVSCROLL) * 10;	}	if (wHint != SWT.DEFAULT) width = wHint + (border * 2);	if (hHint != SWT.DEFAULT) height = hHint + (border * 2);	return new Point (width, height);}void createHandle () {	super.createHandle ();	if ((style & SWT.INDETERMINATE) != 0) {		OS.SetTimer (handle, TIMER_ID, DELAY, 0);	}}int defaultForeground () {	return OS.GetSysColor (OS.COLOR_HIGHLIGHT);}/** * Returns the maximum value which the receiver will allow. * * @return the maximum * * @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 getMaximum () {	checkWidget ();	return OS.SendMessage (handle, OS.PBM_GETRANGE, 0, 0);}/** * Returns the minimum value which the receiver will allow. * * @return the minimum * * @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 getMinimum () {	checkWidget ();	return OS.SendMessage (handle, OS.PBM_GETRANGE, 1, 0);}/** * Returns the single <em>selection</em> that is the receiver's position. * * @return the selection * * @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 getSelection () {	checkWidget ();	return OS.SendMessage (handle, OS.PBM_GETPOS, 0, 0);}void releaseWidget () {	super.releaseWidget ();	if ((style & SWT.INDETERMINATE) != 0) {		OS.KillTimer (handle, TIMER_ID);	}}void setBackgroundPixel (int pixel) {	if (background == pixel) return;	background = pixel;	if (pixel == -1) pixel = OS.CLR_DEFAULT;	OS.SendMessage (handle, OS.PBM_SETBKCOLOR, 0, pixel);}void setForegroundPixel (int pixel) {	if (foreground == pixel) return;	foreground = pixel;	if (pixel == -1) pixel = OS.CLR_DEFAULT;	OS.SendMessage (handle, OS.PBM_SETBARCOLOR, 0, pixel);}/** * Sets the maximum value that the receiver will allow.  This new * value will be ignored if it is not greater than the receiver's current * minimum value.  If the new maximum is applied then the receiver's * selection value will be adjusted if necessary to fall within its new range. * * @param value the new maximum, which must be greater than the current minimum * * @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 setMaximum (int value) {	checkWidget ();	int minimum = OS.SendMessage (handle, OS.PBM_GETRANGE, 1, 0);	if (0 <= minimum && minimum < value) {		OS.SendMessage (handle, OS.PBM_SETRANGE32, minimum, value);	}}/** * Sets the minimum value that the receiver will allow.  This new * value will be ignored if it is negative or is not less than the receiver's * current maximum value.  If the new minimum is applied then the receiver's * selection value will be adjusted if necessary to fall within its new range. * * @param value the new minimum, which must be nonnegative and less than the current maximum * * @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 setMinimum (int value) {	checkWidget ();	int maximum = OS.SendMessage (handle, OS.PBM_GETRANGE, 0, 0);	if (0 <= value && value < maximum) {		OS.SendMessage (handle, OS.PBM_SETRANGE32, value, maximum);	}}/** * Sets the single <em>selection</em> that is the receiver's * position to the argument which must be greater than or equal * to zero. * * @param value the new selection (must be zero or greater) * * @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 setSelection (int value) {	checkWidget ();	OS.SendMessage (handle, OS.PBM_SETPOS, value, 0);}int widgetStyle () {	int bits = super.widgetStyle ();	if ((style & SWT.SMOOTH) != 0) bits |= OS.PBS_SMOOTH;	if ((style & SWT.VERTICAL) != 0) bits |= OS.PBS_VERTICAL;	return bits;}TCHAR windowClass () {	return ProgressBarClass;}int windowProc () {	return ProgressBarProc;}LRESULT WM_GETDLGCODE (int wParam, int lParam) {	LRESULT result = super.WM_GETDLGCODE (wParam, lParam);	if (result != null) return result;	/*	* Feature in Windows.  The progress bar does	* not implement WM_GETDLGCODE.  As a result,	* a progress bar takes focus and takes part	* in tab traversal.  This behavior, while	* unspecified, is unwanted.  The fix is to	* implement WM_GETDLGCODE to behave like a	* STATIC control.	*/	return new LRESULT (OS.DLGC_STATIC);}LRESULT WM_TIMER (int wParam, int lParam) {	LRESULT result = super.WM_TIMER (wParam, lParam);	if (result != null) return result;	if (wParam == TIMER_ID) {		OS.SendMessage (handle, OS.PBM_STEPIT, 0, 0);	}	return null;}}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美国产综合| 奇米影视一区二区三区| 成人福利视频网站| 国产日产精品1区| 成人黄色大片在线观看| 亚洲欧美福利一区二区| 欧美综合一区二区| 奇米精品一区二区三区在线观看| 日韩一区国产二区欧美三区| 国产一区二区久久| 亚洲欧洲韩国日本视频| 欧美福利视频一区| 国产一区二区三区黄视频 | 91在线看国产| 亚洲国产精品一区二区久久恐怖片 | 26uuu国产电影一区二区| 国产精品一区二区你懂的| 国产精品久久综合| 欧美日韩精品欧美日韩精品| 九九九久久久精品| 国产精品久久久久久亚洲毛片| 日本精品一级二级| 久久精品国产免费| 亚洲精品一二三四区| 91精品久久久久久久99蜜桃| 国产ts人妖一区二区| 午夜久久久影院| 久久久久久久久99精品| 欧美在线观看视频一区二区 | 樱桃视频在线观看一区| 9191国产精品| www.一区二区| 奇米四色…亚洲| 亚洲欧美福利一区二区| 久久综合九色综合欧美就去吻| 99re这里只有精品首页| 日韩电影在线看| 综合色天天鬼久久鬼色| 欧美电影免费观看高清完整版在 | 91免费版pro下载短视频| 日本中文一区二区三区| 国产精品夫妻自拍| 日韩免费看网站| 欧洲在线/亚洲| 岛国精品在线播放| 美女国产一区二区三区| 一区二区三区高清不卡| 欧美极品少妇xxxxⅹ高跟鞋| 日韩免费视频一区二区| 欧美日韩三级视频| 色综合网色综合| 国产成a人亚洲| 国内久久精品视频| 日产精品久久久久久久性色| 亚洲欧美日韩久久| 中文字幕一区二区视频| 久久麻豆一区二区| 亚洲精品一区二区三区在线观看| 欧美日韩亚洲综合在线| 91视频免费播放| 成人av电影在线观看| 国产米奇在线777精品观看| 美女视频黄免费的久久 | 久久99精品网久久| 日本欧美一区二区在线观看| 亚洲精品国产视频| 亚洲色图一区二区| 国产精品成人一区二区三区夜夜夜| 欧美v日韩v国产v| 日韩一区二区三区四区五区六区| 欧美日免费三级在线| 色一情一乱一乱一91av| 91亚洲精品乱码久久久久久蜜桃| 国产毛片一区二区| 国产91丝袜在线观看| 国产黄色精品网站| 国产美女精品人人做人人爽| 国产综合久久久久影院| 国产精品一区二区三区99| 国产精品一区二区你懂的| 国产在线精品视频| 国产成人综合在线| 成人动漫av在线| av亚洲精华国产精华精华| 成人小视频免费在线观看| www.视频一区| 色综合天天天天做夜夜夜夜做| 成人激情图片网| 91女神在线视频| 欧洲精品在线观看| 欧美老肥妇做.爰bbww| 欧美一级日韩免费不卡| 欧美变态tickle挠乳网站| 国产欧美日韩精品一区| 欧美激情艳妇裸体舞| 亚洲美女一区二区三区| 午夜精品福利一区二区蜜股av| 三级成人在线视频| 国产一区二区三区不卡在线观看| 国产精品白丝jk黑袜喷水| 本田岬高潮一区二区三区| 欧美三电影在线| 2欧美一区二区三区在线观看视频| www国产精品av| 国产精品嫩草影院com| 一区二区三区国产精品| 蜜桃av噜噜一区二区三区小说| 国产麻豆精品一区二区| 色婷婷亚洲婷婷| 欧美大度的电影原声| 中文字幕中文字幕中文字幕亚洲无线| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 一级日本不卡的影视| 老司机午夜精品| 成人伦理片在线| 欧美一区二区三区四区在线观看 | 香蕉影视欧美成人| 激情亚洲综合在线| 色中色一区二区| 日韩精品中文字幕在线一区| 国产精品久久午夜| 蜜臀91精品一区二区三区 | 国产一区美女在线| 色天使色偷偷av一区二区| 欧美成人bangbros| 亚洲高清不卡在线观看| 成人综合激情网| 日韩视频免费观看高清完整版 | 亚洲综合一二三区| 国产在线不卡一区| 欧美系列在线观看| 国产视频一区二区在线观看| 亚洲高清免费观看| 99久久久久久| 精品国产网站在线观看| 亚洲一线二线三线久久久| 国产乱码精品一区二区三区忘忧草| 欧美综合一区二区| 国产精品色在线| 精品一二三四区| 欧美日韩国产高清一区二区三区| 国产精品女同一区二区三区| 蜜桃av一区二区三区| 欧美日韩国产123区| 亚洲美女一区二区三区| a级精品国产片在线观看| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 国产精品区一区二区三区| 日韩av电影一区| 欧美日韩免费视频| 亚洲最色的网站| 94色蜜桃网一区二区三区| 国产三级精品在线| 国产精品自拍av| 精品少妇一区二区三区在线视频| 五月开心婷婷久久| 欧美综合色免费| 一区二区三区欧美久久| 99久久99久久精品免费观看| 国产欧美一区二区三区网站 | 日韩激情一区二区| 欧美三级三级三级| 亚洲二区在线观看| 在线视频一区二区免费| 亚洲精品免费播放| 色狠狠一区二区| 亚洲综合免费观看高清完整版在线| 91网站最新网址| 亚洲欧美视频在线观看| 一本久久精品一区二区| 亚洲人成在线播放网站岛国| 色八戒一区二区三区| 亚洲国产综合人成综合网站| 欧洲人成人精品| 日韩精品电影一区亚洲| 日韩欧美成人一区| 国产乱国产乱300精品| 久久久久88色偷偷免费| 成人精品高清在线| 洋洋成人永久网站入口| 4438x成人网最大色成网站| 蜜桃视频在线一区| 国产视频一区二区在线| 91视视频在线观看入口直接观看www | 欧美巨大另类极品videosbest | 亚洲一区二区三区四区五区中文| 在线精品亚洲一区二区不卡| 亚洲午夜久久久久中文字幕久| 欧美男同性恋视频网站| 日韩影院在线观看| 26uuu国产日韩综合| av在线不卡免费看| 偷拍亚洲欧洲综合| 久久看人人爽人人| 91视视频在线观看入口直接观看www| 亚洲一区国产视频| 日韩欧美成人激情| av亚洲精华国产精华| 亚洲1区2区3区4区| 久久九九久精品国产免费直播|