⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 swt.java

📁 源码为Eclipse开源开发平台桌面开发工具SWT的源代码,
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
	/**	 * Input Method Editor style constant for phonetic	 * input behavior (value is 1&lt;&lt;4).	 */	public static final int PHONETIC = 1 << 4;	/**	 * Input Method Editor style constant for romanicized	 * input behavior (value is 1&lt;&lt;5).	 */	public static final int ROMAN = 1 << 5;	/**	 * ASCII character convenience constant for the backspace character	 * (value is the <code>char</code> '\b').	 */	public static final char BS = '\b';	/**	 * ASCII character convenience constant for the carriage return character	 * (value is the <code>char</code> '\r').	 */	public static final char CR = '\r';	/**	 * ASCII character convenience constant for the delete character	 * (value is the <code>char</code> with value 127).	 */	public static final char DEL = 0x7F; 	/**	 * ASCII character convenience constant for the escape character	 * (value is the <code>char</code> with value 27).	 */	public static final char ESC = 0x1B;	/**	 * ASCII character convenience constant for the line feed character	 * (value is the <code>char</code> '\n').	 */	public static final char LF = '\n';	/**	 * ASCII character convenience constant for the tab character	 * (value is the <code>char</code> '\t').	 * 	 * @since 2.1	 */	public static final char TAB = '\t';							/**	 * keyboard and/or mouse event mask indicating that the ALT key	 * was pushed on the keyboard when the event was generated	 * (value is 1&lt;&lt;16).	 */	public static final int ALT = 1 << 16;						/**	 * Keyboard and/or mouse event mask indicating that the SHIFT key	 * was pushed on the keyboard when the event was generated	 * (value is 1&lt;&lt;17).	 */	public static final int SHIFT = 1 << 17;						/**	 * Keyboard and/or mouse event mask indicating that the CTRL key	 * was pushed on the keyboard when the event was generated	 * (value is 1&lt;&lt;18).	 */	public static final int CTRL = 1 << 18;	/**	 * Keyboard and/or mouse event mask indicating that the CTRL key	 * was pushed on the keyboard when the event was generated. This	 * is a synonym for CTRL (value is 1&lt;&lt;18).	 */	public static final int CONTROL = CTRL;	/**	 * Keyboard and/or mouse event mask indicating that the COMMAND key	 * was pushed on the keyboard when the event was generated	 * (value is 1&lt;&lt;22).	 * 	 * @since 2.1	 */	public static final int COMMAND = 1 << 22;		/**	 * Keyboard and/or mouse event mask indicating all possible	 * keyboard modifiers.	 * 	 * To allow for the future, this mask  is intended to be used in 	 * place of code that references  each individual keyboard mask. 	 *  For example, the following expression will determine whether 	 * any modifer is pressed and will continue to work as new modifier 	 * masks are added.	 *  	 * <code>(stateMask & SWT.MODIFIER_MASK) != 0</code>.	 * 	 * @since 2.1	 */	public static final int MODIFIER_MASK;		/**	 * Keyboard and/or mouse event mask indicating that mouse button one	 * was pushed when the event was generated. (value is 1&lt;&lt;19).	 */	public static final int BUTTON1 = 1 << 19;	/**	 * Keyboard and/or mouse event mask indicating that mouse button two	 * was pushed when the event was generated. (value is 1&lt;&lt;20).	 */	public static final int BUTTON2 = 1 << 20;	/**	 * Keyboard and/or mouse event mask indicating that mouse button three	 * was pushed when the event was generated. (value is 1&lt;&lt;21).	 */	public static final int BUTTON3 = 1 << 21;	/**	 * Keyboard and/or mouse event mask indicating all possible	 * mouse buttons.	 * 	 * To allow for the future, this mask  is intended to be used 	 * in place of code that references each individual button mask.  	 * For example, the following expression will determine whether	 * any button is pressed and will continue to work as new button 	 * masks are added.	 *  	 * <code>(stateMask & SWT.BUTTON_MASK) != 0</code>.	 * 	 * @since 2.1	 */	public static final int BUTTON_MASK;		/**	 * Keyboard and/or mouse event mask indicating that the MOD1 key	 * was pushed on the keyboard when the event was generated.	 * 	 * This is the primary keyboard modifier for the platform.	 * 	 * @since 2.1	 */	public static final int MOD1;		/**	 * Keyboard and/or mouse event mask indicating that the MOD2 key	 * was pushed on the keyboard when the event was generated.	 * 	 * This is the secondary keyboard modifier for the platform.	 * 	 * @since 2.1	 */	public static final int MOD2;	/**	 * Keyboard and/or mouse event mask indicating that the MOD3 key	 * was pushed on the keyboard when the event was generated.	 * 	 * @since 2.1	 */	public static final int MOD3;	/**	 * Keyboard and/or mouse event mask indicating that the MOD4 key	 * was pushed on the keyboard when the event was generated.	 * 	 * @since 2.1	 */	public static final int MOD4;		/**	 * Accelerator constant used to differentiate a key code from a	 * unicode character.	 * 	 * If this bit is set, then the key stroke	 * portion of an accelerator represents a key code.  If this bit	 * is not set, then the key stroke portion of an accelerator is	 * a unicode character.	 * 	 * The following expression is false:	 * 	 * <code>((SWT.MOD1 | SWT.MOD2 | 'T') & SWT.KEYCODE_BIT) != 0</code>.	 * 	 * The following expression is true:	 * 	 * <code>((SWT.MOD3 | SWT.F2) & SWT.KEYCODE_BIT) != 0</code>.	 * 	 * (value is (1&lt;&lt;24))	 * 	 * @since 2.1	 */		public static final int KEYCODE_BIT = (1 << 24);	/**	 * Accelerator constant used to extract the key stroke portion of	 * an accelerator.	 * 	 * The key stroke may be a key code or a unicode	 * value.  If the key stroke is a key code <code>KEYCODE_BIT</code>	 * will be set.	 * 	 * @since 2.1	 */		public static final int KEY_MASK = KEYCODE_BIT + 0xFFFF;		/**	 * Keyboard event constant representing the UP ARROW key	 * (value is (1&lt;&lt;24)+1).	 */	public static final int ARROW_UP = KEYCODE_BIT + 1;	/**	 * Keyboard event constant representing the DOWN ARROW key	 * (value is (1&lt;&lt;24)+2).	 */	public static final int ARROW_DOWN = KEYCODE_BIT + 2;	/**	 * Keyboard event constant representing the LEFT ARROW key	 * (value is (1&lt;&lt;24)+3).	 */	public static final int ARROW_LEFT = KEYCODE_BIT + 3;	/**	 * Keyboard event constant representing the RIGHT ARROW key	 * (value is (1&lt;&lt;24)+4).	 */	public static final int ARROW_RIGHT = KEYCODE_BIT + 4;	/**	 * Keyboard event constant representing the PAGE UP key	 * (value is (1&lt;&lt;24)+5).	 */	public static final int PAGE_UP = KEYCODE_BIT + 5;	/**	 * Keyboard event constant representing the PAGE DOWN key	 * (value is (1&lt;&lt;24)+6).	 */	public static final int PAGE_DOWN = KEYCODE_BIT + 6;	/**	 * Keyboard event constant representing the HOME key	 * (value is (1&lt;&lt;24)+7).	 */	public static final int HOME = KEYCODE_BIT + 7;	/**	 * Keyboard event constant representing the END key	 * (value is (1&lt;&lt;24)+8).	 */	public static final int END = KEYCODE_BIT + 8;	/**	 * Keyboard event constant representing the INSERT key	 * (value is (1&lt;&lt;24)+9).	 */	public static final int INSERT = KEYCODE_BIT + 9;	/**	 * Keyboard event constant representing the F1 key	 * (value is (1&lt;&lt;24)+10).	 */	public static final int F1 = KEYCODE_BIT + 10;		/**	 * Keyboard event constant representing the F2 key	 * (value is (1&lt;&lt;24)+11).	 */	public static final int F2 = KEYCODE_BIT + 11;		/**	 * Keyboard event constant representing the F3 key	 * (value is (1&lt;&lt;24)+12).	 */	public static final int F3 = KEYCODE_BIT + 12;		/**	 * Keyboard event constant representing the F4 key	 * (value is (1&lt;&lt;24)+13).	 */	public static final int F4 = KEYCODE_BIT + 13;		/**	 * Keyboard event constant representing the F5 key	 * (value is (1&lt;&lt;24)+14).	 */	public static final int F5 = KEYCODE_BIT + 14;		/**	 * Keyboard event constant representing the F6 key	 * (value is (1&lt;&lt;24)+15).	 */	public static final int F6 = KEYCODE_BIT + 15;		/**	 * Keyboard event constant representing the F7 key	 * (value is (1&lt;&lt;24)+16).	 */	public static final int F7 = KEYCODE_BIT + 16;		/**	 * Keyboard event constant representing the F8 key	 * (value is (1&lt;&lt;24)+17).	 */	public static final int F8 = KEYCODE_BIT + 17;		/**	 * Keyboard event constant representing the F9 key	 * (value is (1&lt;&lt;24)+18).	 */	public static final int F9 = KEYCODE_BIT + 18;		/**	 * Keyboard event constant representing the F10 key	 * (value is (1&lt;&lt;24)+19).	 */	public static final int F10 = KEYCODE_BIT + 19;		/**	 * Keyboard event constant representing the F11 key	 * (value is (1&lt;&lt;24)+20).	 */	public static final int F11 = KEYCODE_BIT + 20;		/**	 * Keyboard event constant representing the F12 key	 * (value is (1&lt;&lt;24)+21).	 */	public static final int F12 = KEYCODE_BIT + 21;	/**	 * Keyboard event constant representing the F13 key	 * (value is (1&lt;&lt;24)+22).	 * 	 * @since 3.0	 */	public static final int F13 = KEYCODE_BIT + 22;		/**	 * Keyboard event constant representing the F14 key	 * (value is (1&lt;&lt;24)+23).	 * 	 * @since 3.0	 */	public static final int F14 = KEYCODE_BIT + 23;		/**	 * Keyboard event constant representing the F15 key	 * (value is (1&lt;&lt;24)+24).	 * 	 * @since 3.0	 */	public static final int F15 = KEYCODE_BIT + 24;		/**	 * Keyboard event constant representing the numeric key	 * pad multiply key (value is (1&lt;&lt;24)+42).	 * 	 * @since 3.0	 */	public static final int KEYPAD_MULTIPLY = KEYCODE_BIT + 42;		/**	 * Keyboard event constant representing the numeric key	 * pad add key (value is (1&lt;&lt;24)+43).	 * 	 * @since 3.0	 */	public static final int KEYPAD_ADD = KEYCODE_BIT + 43;		/**	 * Keyboard event constant representing the numeric key	 * pad subtract key (value is (1&lt;&lt;24)+45).	 * 	 * @since 3.0	 */	public static final int KEYPAD_SUBTRACT = KEYCODE_BIT + 45;	/**	 * Keyboard event constant representing the numeric key	 * pad decimal key (value is (1&lt;&lt;24)+46).	 * 	 * @since 3.0	 */	public static final int KEYPAD_DECIMAL = KEYCODE_BIT + 46;	/**	 * Keyboard event constant representing the numeric key	 * pad divide key (value is (1&lt;&lt;24)+47).	 * 	 * @since 3.0	 */	public static final int KEYPAD_DIVIDE = KEYCODE_BIT + 47;	/**	 * Keyboard event constant representing the numeric key	 * pad zero key (value is (1&lt;&lt;24)+48).	 * 	 * @since 3.0	 */	public static final int KEYPAD_0 = KEYCODE_BIT + 48;	/**	 * Keyboard event constant representing the numeric key	 * pad one key (value is (1&lt;&lt;24)+49).	 * 	 * @since 3.0	 */	public static final int KEYPAD_1 = KEYCODE_BIT + 49;	/**	 * Keyboard event constant representing the numeric key	 * pad two key (value is (1&lt;&lt;24)+50).	 * 	 * @since 3.0	 */	public static final int KEYPAD_2 = KEYCODE_BIT + 50;	/**	 * Keyboard event constant representing the numeric key	 * pad three key (value is (1&lt;&lt;24)+51).	 * 	 * @since 3.0	 */	public static final int KEYPAD_3 = KEYCODE_BIT + 51;	/**	 * Keyboard event constant representing the numeric key	 * pad four key (value is (1&lt;&lt;24)+52).	 * 	 * @since 3.0	 */	public static final int KEYPAD_4 = KEYCODE_BIT + 52;		/**	 * Keyboard event constant representing the numeric key	 * pad five key (value is (1&lt;&lt;24)+53).	 * 	 * @since 3.0	 */	public static final int KEYPAD_5 = KEYCODE_BIT + 53;		/**	 * Keyboard event constant representing the numeric key	 * pad six key (value is (1&lt;&lt;24)+54).	 * 	 * @since 3.0	 */	public static final int KEYPAD_6 = KEYCODE_BIT + 54;	/**	 * Keyboard event constant representing the numeric key	 * pad seven key (value is (1&lt;&lt;24)+55).	 * 	 * @since 3.0	 */	public static final int KEYPAD_7 = KEYCODE_BIT + 55;	/**	 * Keyboard event constant representing the numeric key	 * pad eight key (value is (1&lt;&lt;24)+56).	 * 	 * @since 3.0	 */	public static final int KEYPAD_8 = KEYCODE_BIT + 56;		/**	 * Keyboard event constant representing the numeric key	 * pad nine key (value is (1&lt;&lt;24)+57).	 * 	 * @since 3.0	 */	public static final int KEYPAD_9 = KEYCODE_BIT + 57;	/**	 * Keyboard event constant representing the numeric key	 * pad equal key (value is (1&lt;&lt;24)+61).	 * 	 * @since 3.0	 */	public static final int KEYPAD_EQUAL = KEYCODE_BIT + 61;		/**	 * Keyboard event constant representing the numeric key	 * pad enter key (value is (1&lt;&lt;24)+80).	 * 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -