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

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

?? scrollbar.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
 */public int getSelection () {	checkWidget();	SCROLLINFO info = new SCROLLINFO ();	info.cbSize = SCROLLINFO.sizeof;	info.fMask = OS.SIF_POS;	int hwnd = hwndScrollBar ();	int type = scrollBarType ();	OS.GetScrollInfo (hwnd, type, info);	return info.nPos;}/** * Returns a point describing the receiver's size. The * x coordinate of the result is the width of the receiver. * The y coordinate of the result is the height of the * receiver. * * @return the receiver's size * * @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 Point getSize () {	checkWidget();	parent.forceResize ();	RECT rect = new RECT ();	OS.GetClientRect (parent.handle, rect);	int width, height;	if ((style & SWT.HORIZONTAL) != 0) {		width = rect.right - rect.left;		height = OS.GetSystemMetrics (OS.SM_CYHSCROLL);	} else {		width = OS.GetSystemMetrics (OS.SM_CXVSCROLL);		height = rect.bottom - rect.top;	}	return new Point (width, height);}/** * Answers the size of the receiver's thumb relative to the * difference between its maximum and minimum values. * * @return the thumb value * * @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 ScrollBar */public int getThumb () {	checkWidget();	SCROLLINFO info = new SCROLLINFO ();	info.cbSize = SCROLLINFO.sizeof;	info.fMask = OS.SIF_PAGE;	int hwnd = hwndScrollBar ();	int type = scrollBarType ();	OS.GetScrollInfo (hwnd, type, info);	if (info.nPage != 0) --info.nPage;	return info.nPage;}/** * Returns <code>true</code> if the receiver is visible, and * <code>false</code> otherwise. * <p> * If one of the receiver's ancestors is not visible or some * other condition makes the receiver not visible, this method * may still indicate that it is considered visible even though * it may not actually be showing. * </p> * * @return the receiver's visibility state * * @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 boolean getVisible () {	checkWidget();	return (state & HIDDEN) == 0;}int hwndScrollBar () {	return parent.handle;}/** * Returns <code>true</code> if the receiver is enabled and all * of the receiver's ancestors are enabled, and <code>false</code> * otherwise. A disabled control is typically not selectable from the * user interface and draws with an inactive or "grayed" look. * * @return the receiver's enabled state * * @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 #getEnabled */public boolean isEnabled () {	checkWidget();	return getEnabled () && parent.isEnabled ();}/** * Returns <code>true</code> if the receiver is visible and all * of the receiver's ancestors are visible and <code>false</code> * otherwise. * * @return the receiver's visibility state * * @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 #getVisible */public boolean isVisible () {	checkWidget();	return getVisible () && parent.isVisible ();}void releaseChild () {	super.releaseChild ();	if (parent.horizontalBar == this) parent.horizontalBar = null;	if (parent.verticalBar == this) parent.verticalBar = null;}void releaseWidget () {	super.releaseWidget ();	parent = null;}/** * Removes the listener from the collection of listeners who will * be notified when the receiver's value changes. * * @param listener the listener which should no longer 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 SelectionListener * @see #addSelectionListener */public void removeSelectionListener (SelectionListener listener) {	checkWidget();	if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);	if (eventTable == null) return;	eventTable.unhook (SWT.Selection, listener);	eventTable.unhook (SWT.DefaultSelection,listener);	}int scrollBarType () {	if ((style & SWT.VERTICAL) != 0) return OS.SB_VERT;	/*	* This line is intentionally commented.  There should	* only ever be HORIZONTAL and VERTICAL scroll bars.	* The commented code reminds us that this is the case	* and that the default style is HORIZONTAL.	*/	//	if ((style & SWT.HORIZONTAL) != 0) return OS.SB_HORZ;	return OS.SB_HORZ;}/** * Enables the receiver if the argument is <code>true</code>, * and disables it otherwise. A disabled control is typically * not selectable from the user interface and draws with an * inactive or "grayed" look. * * @param enabled the new enabled state * * @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 setEnabled (boolean enabled) {	checkWidget();	/*	* This line is intentionally commented.  Currently	* always show scrollbar as being enabled and visible.	*///	if (OS.IsWinCE) error (SWT.ERROR_NOT_IMPLEMENTED);	if (!OS.IsWinCE) {		int hwnd = hwndScrollBar (), type = scrollBarType ();		int flags = enabled ? OS.ESB_ENABLE_BOTH : OS.ESB_DISABLE_BOTH;		OS.EnableScrollBar (hwnd, type, flags);		state &= ~DISABLED;		if (!enabled) state |= DISABLED;	}}/** * Sets the amount that the receiver's value will be * modified by when the up/down (or right/left) arrows * are pressed to the argument, which must be at least  * one. * * @param value the new increment (must be greater than zero) * * @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 setIncrement (int value) {	checkWidget();	if (value < 1) return;	increment = value;}/** * Sets the maximum. If this value is negative or less than or * equal to the minimum, the value is ignored. If necessary, first * the thumb and then the selection are adjusted to fit within the * new range. * * @param value the new 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 setMaximum (int value) {	checkWidget();	if (value < 0) return;	SCROLLINFO info = new SCROLLINFO ();	info.cbSize = SCROLLINFO.sizeof;	int hwnd = hwndScrollBar (), type = scrollBarType ();	info.fMask = OS.SIF_RANGE | OS.SIF_DISABLENOSCROLL;	OS.GetScrollInfo (hwnd, type, info);	if (value - info.nMin - info.nPage < 1) return;	info.nMax = value;	OS.SetScrollInfo (hwnd, type, info, (state & DISABLED) == 0);		/*	* Bug in Windows.  For some reason, when the widget	* is a standard scroll bar, and SetScrollInfo () is	* called with SIF_RANGE or SIF_PAGE, the widget is	* incorrectly made visible so that the next time the	* widget is resized (or another scroll bar operation	* is performed), the scroll bar draws.  The fix is	* to hide the scroll bar (again) when already hidden.	*/	if ((state & HIDDEN) != 0) {		/*		* This line is intentionally commented.  Currently		* always show scrollbar as being enabled and visible.		*///		if (OS.IsWinCE) error (SWT.ERROR_NOT_IMPLEMENTED);		if (!OS.IsWinCE) {			OS.ShowScrollBar (hwnd, type, false);		}	}			/*	* Feature in Windows.  Using SIF_DISABLENOSCROLL,	* SetScrollInfo () can change enabled and disabled	* state of the scroll bar causing a scroll bar that	* was disabled by the application to become enabled.	* The fix is to disable the scroll bar (again) when	* the application has disabled the scroll bar.	*/	if ((state & DISABLED) != 0) {		/*		* This line is intentionally commented.  Currently		* always show scrollbar as being enabled and visible.		*///		if (OS.IsWinCE) error (SWT.ERROR_NOT_IMPLEMENTED);		if (!OS.IsWinCE) {			OS.EnableScrollBar (hwnd, type, OS.ESB_DISABLE_BOTH);		}	}}/** * Sets the minimum value. If this value is negative or greater * than or equal to the maximum, the value is ignored. If necessary, * first the thumb and then the selection are adjusted to fit within * the new range. * * @param value the new 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 setMinimum (int value) {	checkWidget();	if (value < 0) return;	SCROLLINFO info = new SCROLLINFO ();	info.cbSize = SCROLLINFO.sizeof;	int hwnd = hwndScrollBar (), type = scrollBarType ();	info.fMask = OS.SIF_RANGE | OS.SIF_DISABLENOSCROLL;	OS.GetScrollInfo (hwnd, type, info);	if (info.nMax - value - info.nPage < 1) return;	info.nMin = value;	OS.SetScrollInfo (hwnd, type, info, true);		/*	* Bug in Windows.  For some reason, when the widget	* is a standard scroll bar, and SetScrollInfo () is	* called with SIF_RANGE or SIF_PAGE, the widget is	* incorrectly made visible so that the next time the	* widget is resized (or another scroll bar operation	* is performed), the scroll bar draws.  The fix is	* to hide the scroll bar (again) when already hidden.	*/	if ((state & HIDDEN) != 0) {		/*		* This line is intentionally commented.  Currently		* always show scrollbar as being enabled and visible.		*///		if (OS.IsWinCE) error (SWT.ERROR_NOT_IMPLEMENTED);		if (!OS.IsWinCE) {			OS.ShowScrollBar (hwnd, type, false);		}	}			/*	* Feature in Windows.  Using SIF_DISABLENOSCROLL,

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美变态凌虐bdsm| 亚洲人成在线观看一区二区| 国产精品乱人伦一区二区| 一区二区三区不卡视频| 国产麻豆精品视频| 欧美日韩综合在线| 国产精品美女一区二区在线观看| 日韩影院精彩在线| 91福利精品第一导航| 欧美激情一区在线| 久久99久久精品| 7799精品视频| 亚洲网友自拍偷拍| 日本久久电影网| 国产精品久久久久久久久图文区 | 欧美三级三级三级爽爽爽| 中文一区在线播放| 国产精品99久久久久久似苏梦涵 | av在线不卡网| 欧美成人精品1314www| 婷婷国产在线综合| 欧美午夜在线一二页| 亚洲男人电影天堂| 99久久免费国产| 国产精品高潮呻吟| 成人激情免费电影网址| 欧美激情一区二区三区不卡| 国产综合久久久久久久久久久久| 91精品国产福利在线观看| 午夜精品成人在线视频| 欧美日韩一区二区三区高清| 亚洲国产中文字幕在线视频综合| 色婷婷激情久久| 伊人一区二区三区| 色欧美乱欧美15图片| 一区二区三区高清| 欧美天天综合网| 亚洲一区二区精品视频| 欧美日韩一区二区电影| 日韩国产一区二| 欧美一区二区三区在线电影| 麻豆精品一区二区| 久久婷婷久久一区二区三区| 国产精品香蕉一区二区三区| 国产精品无遮挡| 91久久人澡人人添人人爽欧美| 亚洲狠狠丁香婷婷综合久久久| 欧美日韩一二三区| 美女视频黄久久| 国产日韩综合av| 色香色香欲天天天影视综合网| 亚洲一区二区在线免费看| 91精品国产欧美一区二区18 | 日韩高清中文字幕一区| 精品av综合导航| eeuss鲁一区二区三区| 亚洲自拍另类综合| 欧美tk—视频vk| 99热精品国产| 视频一区视频二区中文字幕| xf在线a精品一区二区视频网站| 国产成人av电影在线播放| 亚洲激情六月丁香| 日韩精品一区二区三区中文精品| 国产mv日韩mv欧美| 亚洲综合无码一区二区| 精品美女被调教视频大全网站| 成人免费av在线| 日韩av在线发布| 亚洲欧洲精品一区二区精品久久久 | 中文字幕av一区二区三区高| 欧美影视一区二区三区| 国产一区在线不卡| 亚洲一区二区在线播放相泽| 国产婷婷色一区二区三区在线| 色菇凉天天综合网| 国产又黄又大久久| 亚洲国产欧美日韩另类综合| 国产日韩v精品一区二区| 欧美日韩一区久久| 9l国产精品久久久久麻豆| 日韩国产一二三区| 一区二区三区小说| 久久精品视频一区二区| 这里只有精品视频在线观看| 91麻豆精品视频| 国产精品中文有码| 美日韩一区二区| 午夜免费欧美电影| 亚洲欧美乱综合| 国产日韩欧美电影| 欧美一级片免费看| 欧美日韩不卡在线| 色吊一区二区三区| 成a人片亚洲日本久久| 国产在线播放一区三区四| 日本在线观看不卡视频| 亚洲线精品一区二区三区| 中文字幕一区日韩精品欧美| 久久久激情视频| 精品蜜桃在线看| 日韩精品一区二区三区四区视频| 欧美日韩情趣电影| 欧美三级三级三级| 欧美色图激情小说| 欧美在线你懂得| 欧美自拍偷拍一区| 日本精品一区二区三区高清| 一本大道久久精品懂色aⅴ| 成人丝袜高跟foot| 成人一级片网址| 白白色亚洲国产精品| 北条麻妃一区二区三区| av电影在线观看一区| av高清久久久| 色狠狠av一区二区三区| 在线观看日韩电影| 欧美日韩卡一卡二| 7777精品久久久大香线蕉| 6080日韩午夜伦伦午夜伦| 欧美一区二区三级| 精品盗摄一区二区三区| 精品久久久久99| 久久久99精品久久| 国产精品久久毛片av大全日韩| 中文一区二区在线观看| 亚洲欧洲一区二区三区| 一区二区三区精品视频在线| 午夜国产精品影院在线观看| 另类小说图片综合网| 国产精品一区久久久久| 成人午夜视频网站| 色悠久久久久综合欧美99| 欧美久久久久中文字幕| 欧美成人午夜电影| 国产精品萝li| 亚洲一区二区高清| 久久精品国内一区二区三区| 国产黄色精品视频| 在线观看区一区二| 日韩午夜激情av| 中文幕一区二区三区久久蜜桃| 欧美激情在线看| 亚洲国产精品人人做人人爽| 麻豆精品视频在线| 成人a级免费电影| 欧美日韩亚洲丝袜制服| 久久精品亚洲国产奇米99| 亚洲三级免费电影| 日韩电影免费在线看| 福利视频网站一区二区三区| 欧美在线你懂得| 国产视频一区二区三区在线观看| 一区二区理论电影在线观看| 久久精品99国产精品| 色综合天天狠狠| 精品国产污污免费网站入口| 亚洲欧美日韩国产综合| 国产乱一区二区| 欧美三级中文字| 国产精品福利影院| 裸体一区二区三区| 色综合久久久网| 久久综合av免费| 视频一区欧美精品| 色婷婷av一区二区三区大白胸| 精品第一国产综合精品aⅴ| 亚洲国产欧美在线人成| 92精品国产成人观看免费| 欧美大黄免费观看| 亚洲国产日韩综合久久精品| 成人精品国产福利| 亚洲精品一区在线观看| 首页国产欧美久久| 91国内精品野花午夜精品| 国产欧美一区二区精品性色| 日本欧美在线观看| 在线观看欧美日本| 中文字幕一区在线| 成人在线视频一区二区| 久久久久久久性| 久热成人在线视频| 在线电影一区二区三区| 亚洲欧美另类在线| 成+人+亚洲+综合天堂| 久久精品网站免费观看| 国产一区二区三区四区五区美女 | 日韩电影免费在线看| 在线一区二区三区做爰视频网站| 日本一区二区三区在线不卡| 国产精品一卡二卡在线观看| 亚洲精品在线网站| 看电影不卡的网站| 日韩欧美成人一区二区| 全国精品久久少妇| 欧美亚洲高清一区| 亚洲超碰精品一区二区| 欧美亚洲动漫精品| 五月婷婷色综合| 777久久久精品|