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

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

?? text.java

?? 源碼為Eclipse開源開發(fā)平臺(tái)桌面開發(fā)工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 5 頁
字號(hào):
				if (end [0] == lineStart - DELIMITER.length ()) {					end [0] = end [0] + DELIMITER.length ();				} else {					end [0] = end [0] + 1;					if (OS.IsDBLocale) {						int [] newStart = new int [1], newEnd = new int [1];						OS.SendMessage (handle, OS.EM_SETSEL, start [0], end [0]);						OS.SendMessage (handle, OS.EM_GETSEL, newStart, newEnd);						if (end [0] != newEnd [0]) end [0] = end [0] + 1;					}				}				end [0] = Math.min (end [0], length);			}			break;		case '\r':	/* Return */			if ((style & SWT.SINGLE) != 0) return true;			oldText = DELIMITER;			break;		default:	/* Tab and other characters */			if (key != '\t' && key < 0x20) return true;			oldText = new String (new char [] {key});			break;	}	String newText = verifyText (oldText, start [0], end [0], event);	if (newText == null) return false;	if (newText == oldText) return true;	newText = Display.withCrLf (newText);	TCHAR buffer = new TCHAR (getCodePage (), newText, true);	OS.SendMessage (handle, OS.EM_SETSEL, start [0], end [0]);	/*	* Feature in Windows.  When an edit control with ES_MULTILINE	* style that does not have the WS_VSCROLL style is full (i.e.	* there is no space at the end to draw any more characters),	* EM_REPLACESEL sends a WM_CHAR with a backspace character	* to remove any further text that is added.  This is an	* implementation detail of the edit control that is unexpected	* and can cause endless recursion when EM_REPLACESEL is sent	* from a WM_CHAR handler.  The fix is to ignore calling the	* handler from WM_CHAR.	*/	ignoreCharacter = true;	OS.SendMessage (handle, OS.EM_REPLACESEL, 0, buffer);	ignoreCharacter = false;	return false;}void setBounds (int x, int y, int width, int height, int flags) {	/*	* Feature in Windows.  When the caret is moved,	* the text widget scrolls to show the new location.	* This means that the text widget may be scrolled	* to the right in order to show the caret when the	* widget is not large enough to show both the caret	* location and all the text.  Unfortunately, when	* the text widget is resized such that all the text	* and the caret could be visible, Windows does not	* scroll the widget back.  The fix is to resize the	* text widget, set the selection to the start of the	* text and then restore the selection.  This will	* cause the text widget compute the correct scroll	* position.	*/	if ((flags & OS.SWP_NOSIZE) == 0 && width != 0) {		RECT rect = new RECT ();		OS.GetWindowRect (handle, rect);		if (rect.right - rect.left == 0) {			int [] start = new int [1], end = new int [1];			OS.SendMessage (handle, OS.EM_GETSEL, start, end);			if (start [0] != 0 || end [0] != 0) {				SetWindowPos (handle, 0, x, y, width, height, flags);				OS.SendMessage (handle, OS.EM_SETSEL, 0, 0);				OS.SendMessage (handle, OS.EM_SETSEL, start [0], end [0]);				return;			}		}	}		super.setBounds (x, y, width, height, flags);}/** * Sets the double click enabled flag. * <p> * The double click flag enables or disables the * default action of the text widget when the user * double clicks. * </p> *  * @param doubleClick the new double click flag * * @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 setDoubleClickEnabled (boolean doubleClick) {	checkWidget ();	this.doubleClick = doubleClick;}/** * Sets the echo character. * <p> * The echo character is the character that is * displayed when the user enters text or the * text is changed by the programmer. Setting * the echo character to '\0' clears the echo * character and redraws the original text. * If for any reason the echo character is invalid, * the default echo character for the platform * is used. * </p> * * @param echo the new echo character * * @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 setEchoChar (char echo) {	checkWidget ();	if ((style & SWT.MULTI) != 0) return;	if (echo != 0) {		if ((echo = (char) Display.wcsToMbcs (echo, getCodePage ())) == 0) echo = '*';	}	OS.SendMessage (handle, OS.EM_SETPASSWORDCHAR, echo, 0);	/*	* Bug in Windows.  When the password character is changed,	* Windows does not redraw to show the new password character.	* The fix is to force a redraw when the character is set.	*/	OS.InvalidateRect (handle, null, true);}/** * Sets the editable state. * * @param editable the new editable 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 setEditable (boolean editable) {	checkWidget ();	style &= ~SWT.READ_ONLY;	if (!editable) style |= SWT.READ_ONLY; 	OS.SendMessage (handle, OS.EM_SETREADONLY, editable ? 0 : 1, 0);}public void setFont (Font font) {	checkWidget ();	super.setFont (font);	setTabStops (tabs);}/** * Sets the orientation of the receiver, which must be one * of the constants <code>SWT.LEFT_TO_RIGHT</code> or <code>SWT.RIGHT_TO_LEFT</code>. * <p> * * @param orientation new orientation style *  * @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> *  * @since 2.1.2 */public void setOrientation (int orientation) {	checkWidget();	if (OS.IsWinCE) return;	if ((OS.WIN32_MAJOR << 16 | OS.WIN32_MINOR) < (4 << 16 | 10)) return;	int flags = SWT.RIGHT_TO_LEFT | SWT.LEFT_TO_RIGHT;	if ((orientation & flags) == 0 || (orientation & flags) == flags) return;	style &= ~flags;	style |= orientation & flags;	int bits  = OS.GetWindowLong (handle, OS.GWL_EXSTYLE);	if ((style & SWT.RIGHT_TO_LEFT) != 0) {		bits |= OS.WS_EX_RTLREADING | OS.WS_EX_LEFTSCROLLBAR;	} else {		bits &= ~(OS.WS_EX_RTLREADING | OS.WS_EX_LEFTSCROLLBAR);	}	OS.SetWindowLong (handle, OS.GWL_EXSTYLE, bits);	fixAlignment ();}/** * Sets the selection. * <p> * Indexing is zero based.  The range of * a selection is from 0..N where N is * the number of characters in the widget. * </p><p> * Text selections are specified in terms of * caret positions.  In a text widget that * contains N characters, there are N+1 caret * positions, ranging from 0..N.  This differs * from other functions that address character * position such as getText () that use the * regular array indexing rules. * </p> * * @param start new caret position * * @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 start) {	checkWidget ();	if (OS.IsDBLocale) start = wcsToMbcsPos (start);	OS.SendMessage (handle, OS.EM_SETSEL, start, start);	OS.SendMessage (handle, OS.EM_SCROLLCARET, 0, 0);}/** * Sets the selection. * <p> * Indexing is zero based.  The range of * a selection is from 0..N where N is * the number of characters in the widget. * </p><p> * Text selections are specified in terms of * caret positions.  In a text widget that * contains N characters, there are N+1 caret * positions, ranging from 0..N.  This differs * from other functions that address character * position such as getText () that use the * usual array indexing rules. * </p> * * @param start the start of the range * @param end the end of the range * * @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 start, int end) {	checkWidget ();	if (OS.IsDBLocale) {		start = wcsToMbcsPos (start);		end = wcsToMbcsPos (end);	}	OS.SendMessage (handle, OS.EM_SETSEL, start, end);	OS.SendMessage (handle, OS.EM_SCROLLCARET, 0, 0);}public void setRedraw (boolean redraw) {	checkWidget ();	super.setRedraw (redraw);	/*	* Feature in Windows.  When WM_SETREDRAW is used to turn	* redraw off, the edit control is not scrolled to show the	* i-beam.  The fix is to detect that the i-beam has moved	* while redraw is turned off and force it to be visible	* when redraw is restored.	*/	if (drawCount != 0) return;	int [] start = new int [1], end = new int [1];	OS.SendMessage (handle, OS.EM_GETSEL, start, end);	if (!redraw) {		oldStart = start [0];  oldEnd = end [0];	} else {		if (oldStart == start [0] && oldEnd == end [0]) return;		OS.SendMessage (handle, OS.EM_SCROLLCARET, 0, 0);	}}/** * Sets the selection. * <p> * Indexing is zero based.  The range of * a selection is from 0..N where N is * the number of characters in the widget. * </p><p> * Text selections are specified in terms of * caret positions.  In a text widget that * contains N characters, there are N+1 caret * positions, ranging from 0..N.  This differs * from other functions that address character * position such as getText () that use the * usual array indexing rules. * </p> * * @param selection the point * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the point 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> */public void setSelection (Point selection) {	checkWidget ();	if (selection == null) error (SWT.ERROR_NULL_ARGUMENT);	setSelection (selection.x, selection.y);}/** * Sets the number of tabs. * <p> * Tab stop spacing is specified in terms of the * space (' ') character.  The width of a single * tab stop is the pixel width of the spaces. * </p> * * @param tabs the number of tabs * * </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> */public void setTabs (int tabs) {	checkWidget ();	if (tabs < 0) return;	setTabStops (this.tabs = tabs);}void setTabStops (int tabs) {	/*	* Feature in Windows.  Windows expects the tab spacing in	* dialog units so we must convert from space widths.  Due	* to round off error, the tab spacing may not be the exact	* number of space widths, depending on the font.	*/	int width = (getTabWidth (tabs) * 4) / (OS.GetDialogBaseUnits () & 0xFFFF);	OS.SendMessage (handle, OS.EM_SETTABSTOPS, 1, new int [] {width});}/** * Sets the contents of the receiver to the given string. If the receiver has style * SINGLE and the argument contains multiple lines of text, the result of this * operation is undefined and may vary from platform to platform. * * @param string the new text * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the string 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> */public void setText (String string) {	checkWidget ();	if (string == null) error (SWT.ERROR_NULL_ARGUMENT);	string = Display.withCrLf (string);	if (hooks (SWT.Verify) || filters (SWT.Verify)) {		int length = OS.GetWindowTextLength (handle);		string = verifyText (string, 0, length, null);		if (string == null) return;	}	TCHAR buffer = new TCHAR (getCodePage (), string, true);	OS.SetWindowText (handle, buffer);	/*	* Bug in Windows.  When the widget is multi line	* text widget, it does not send a WM_COMMAND with	* control code EN_CHANGE from SetWindowText () to	* notify the application that the text has changed.	* The fix is to send the event.	*/	if ((style & SWT.MULTI) != 0) {		sendEvent (SWT.Modify);		// widget could be disposed at this point	}}/** * Sets the maximum number of characters that the receiver * is capable of holding to be the argument. * <p> * Instead of trying to set the text limit to zero, consider * creating a read-only text widget. * </p><p> * To reset this value to the default, use <code>setTextLimit(Text.LIMIT)</code>. * </p> * * @param limit new text limit * * @exception IllegalArgumentException <ul> *    <li>ERROR_CANNOT_BE_ZERO - if the limit is zero</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> */public void setTextLimit (int limit) {	checkWidget ();	if (limit == 0) error (SWT.ERROR_CANNOT_BE_ZERO);	OS.SendMessage (handle, OS.EM_SETLIMITTEXT, limit, 0);}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av电影在线不卡| 欧美色网一区二区| 三级不卡在线观看| 国产精品美女久久久久久久久| 欧美午夜精品一区二区蜜桃| 韩国欧美国产1区| 国产一区二区在线观看免费| 亚洲人成人一区二区在线观看| 日韩欧美国产成人一区二区| 欧洲一区二区三区在线| 国产精品一区在线观看乱码| 五月婷婷激情综合网| 亚洲日本青草视频在线怡红院| 欧美va亚洲va| 欧美三级电影在线观看| hitomi一区二区三区精品| 韩国成人福利片在线播放| 日韩国产在线观看| 亚洲综合视频在线观看| 亚洲欧美视频在线观看视频| 国产精品久久久久永久免费观看 | 欧美日韩一区二区在线观看| 岛国精品在线观看| 国产一区二区女| 伦理电影国产精品| 图片区小说区区亚洲影院| 亚洲精品视频自拍| 亚洲欧美日韩系列| 亚洲欧洲av色图| 中文在线资源观看网站视频免费不卡 | 国产成人在线网站| 精品一区二区三区的国产在线播放| 偷偷要91色婷婷| 偷拍自拍另类欧美| 石原莉奈一区二区三区在线观看| 亚洲一区二区中文在线| 一区二区三区中文免费| 亚洲视频图片小说| 亚洲天堂中文字幕| 亚洲精品视频在线观看网站| 一区二区三区**美女毛片| 亚洲三级理论片| 亚洲另类一区二区| 亚洲与欧洲av电影| 视频在线在亚洲| 日韩av一区二区在线影视| 三级精品在线观看| 蜜桃91丨九色丨蝌蚪91桃色| 激情综合网天天干| 国产精品一品二品| 99久久婷婷国产| 在线精品视频免费观看| 欧美日韩黄视频| 日韩三级在线免费观看| 久久精品在线免费观看| 国产精品麻豆99久久久久久| 亚洲精品免费电影| 天天操天天色综合| 开心九九激情九九欧美日韩精美视频电影 | 亚洲精品成人天堂一二三| 亚洲午夜在线视频| 日韩成人免费看| 国产一区二三区| 9l国产精品久久久久麻豆| 精品福利二区三区| 精品国产露脸精彩对白| 国产精品传媒入口麻豆| 亚洲国产综合在线| 久久国产精品免费| 成人av电影观看| 欧美色倩网站大全免费| 精品国产伦一区二区三区观看方式| 国产日韩精品视频一区| 亚洲自拍另类综合| 国产在线国偷精品产拍免费yy | 欧美色综合久久| 日韩午夜激情电影| 国产精品电影院| 日韩高清不卡一区二区三区| 豆国产96在线|亚洲| 91福利视频网站| 精品国产乱码久久久久久久| 亚洲精品成人悠悠色影视| 久久国产精品99久久久久久老狼| av一区二区三区在线| 欧美一区二区视频在线观看2020| 亚洲国产成人在线| 日本中文字幕一区二区视频| 波多野结衣视频一区| 在线成人av影院| 自拍偷拍亚洲欧美日韩| 美日韩一区二区三区| 色一情一伦一子一伦一区| 久久综合色婷婷| 亚洲一区二区三区美女| 国产91清纯白嫩初高中在线观看| 欧美精三区欧美精三区 | 久久99久久99| 日本道免费精品一区二区三区| 久久综合九色综合97婷婷女人| 亚洲男同1069视频| 国产精品中文字幕一区二区三区| 欧美日韩国产色站一区二区三区| 中文成人av在线| 久久国产精品99久久人人澡| 欧美日韩免费在线视频| 亚洲欧美日韩综合aⅴ视频| 韩国成人在线视频| 欧美一区欧美二区| 亚洲一区影音先锋| 波多野结衣欧美| 精品va天堂亚洲国产| 亚洲大片一区二区三区| 91免费精品国自产拍在线不卡| 国产日韩视频一区二区三区| 久久成人综合网| 欧美一级在线免费| 亚洲国产精品久久艾草纯爱| 91在线视频18| 国产精品乱人伦一区二区| 国产另类ts人妖一区二区| 日韩欧美国产三级| 青青草97国产精品免费观看 | 国产精品视频一二三| 国产尤物一区二区| 欧美tk丨vk视频| 日本不卡1234视频| 8v天堂国产在线一区二区| 亚洲成av人片| 欧美人伦禁忌dvd放荡欲情| 一区二区三区久久| 在线视频欧美精品| 一区二区三区在线高清| 在线精品视频小说1| 亚洲一区二区精品久久av| 欧美综合久久久| 国产激情一区二区三区四区| 国产亚洲美州欧州综合国| 国产成人综合在线| 欧美国产欧美综合| 99久久免费国产| 亚洲综合激情网| 欧美乱熟臀69xxxxxx| 日本在线不卡一区| 日韩午夜在线观看视频| 国产一区二区三区| 国产欧美日韩久久| www.亚洲人| 亚洲精品国产视频| 欧美日韩国产综合视频在线观看| 亚洲va国产va欧美va观看| 51精品国自产在线| 九九视频精品免费| 欧美国产丝袜视频| 色香色香欲天天天影视综合网| 亚洲图片有声小说| 日韩欧美高清一区| 成人午夜在线视频| 亚洲一区国产视频| 日韩欧美精品在线| 成人性视频网站| 亚洲国产cao| 久久嫩草精品久久久久| av成人免费在线观看| 亚洲成a人片在线观看中文| 精品捆绑美女sm三区| 成人午夜激情在线| 亚洲大片在线观看| 久久亚洲捆绑美女| 91免费视频大全| 免费在线观看成人| 国产精品人妖ts系列视频| 欧美在线一二三| 国产真实乱对白精彩久久| 亚洲免费在线视频| 欧美tickling网站挠脚心| 波多野结衣一区二区三区| 日本vs亚洲vs韩国一区三区 | 91精品国产丝袜白色高跟鞋| 国产1区2区3区精品美女| 亚洲福利国产精品| 欧美国产日产图区| 91麻豆精品国产91久久久资源速度| 国产成人亚洲综合a∨猫咪| 亚洲国产综合视频在线观看| 久久精品视频网| 欧美欧美欧美欧美首页| 成人免费精品视频| 蜜桃av一区二区三区电影| 亚洲柠檬福利资源导航| 26uuu色噜噜精品一区二区| 欧美三级中文字| 成人国产免费视频| 久久精品免费看| 午夜久久久久久电影| 国产精品短视频| 精品电影一区二区| 欧美午夜在线观看| 国产精品中文字幕日韩精品| 日韩精品电影在线观看|