📄 swt.java
字号:
* @since 3.0 */ public static final int KEYPAD_CR = KEYCODE_BIT + 80; /** * Keyboard event constant representing the help * key (value is (1<<24)+81). * * NOTE: The HELP key maps to the key labeled "help", * not "F1". If your keyboard does not have a HELP key, * you will never see this key press. To listen for * help on a control, use SWT.Help. * * @since 3.0 * * @see SWT#Help */ public static final int HELP = KEYCODE_BIT + 81; /** * Keyboard event constant representing the caps * lock key (value is (1<<24)+82). * * @since 3.0 */ public static final int CAPS_LOCK = KEYCODE_BIT + 82; /** * Keyboard event constant representing the num * lock key (value is (1<<24)+83). * * @since 3.0 */ public static final int NUM_LOCK = KEYCODE_BIT + 83; /** * Keyboard event constant representing the scroll * lock key (value is (1<<24)+84). * * @since 3.0 */ public static final int SCROLL_LOCK = KEYCODE_BIT + 84; /** * Keyboard event constant representing the pause * key (value is (1<<24)+85). * * @since 3.0 */ public static final int PAUSE = KEYCODE_BIT + 85; /** * Keyboard event constant representing the break * key (value is (1<<24)+86). * * @since 3.0 */ public static final int BREAK = KEYCODE_BIT + 86; /** * Keyboard event constant representing the break * key (value is (1<<24)+87). * * @since 3.0 */ public static final int PRINT_SCREEN = KEYCODE_BIT + 87; /** * The <code>MessageBox</code> style constant for error icon * behavior (value is 1). */ public static final int ICON_ERROR = 1; /** * The <code>MessageBox</code> style constant for information icon * behavior (value is 1<<1). */ public static final int ICON_INFORMATION = 1 << 1; /** * The <code>MessageBox</code> style constant for question icon * behavior (value is 1<<2). */ public static final int ICON_QUESTION = 1 << 2; /** * The <code>MessageBox</code> style constant for warning icon * behavior (value is 1<<3). */ public static final int ICON_WARNING = 1 << 3; /** * The <code>MessageBox</code> style constant for "working" icon * behavior (value is 1<<4). */ public static final int ICON_WORKING = 1 << 4; /** * The <code>MessageBox</code> style constant for an OK button; * valid combinations are OK, OK|CANCEL * (value is 1<<5). */ public static final int OK = 1 << 5; /** * The <code>MessageBox</code> style constant for YES button; * valid combinations are YES|NO, YES|NO|CANCEL * (value is 1<<6). */ public static final int YES = 1 << 6; /** * The <code>MessageBox</code> style constant for NO button; * valid combinations are YES|NO, YES|NO|CANCEL * (value is 1<<7). */ public static final int NO = 1 << 7; /** * The <code>MessageBox</code> style constant for a CANCEL button; * valid combinations are OK|CANCEL, YES|NO|CANCEL, RETRY|CANCEL * (value is 1<<8). */ public static final int CANCEL = 1 << 8; /** * The <code>MessageBox</code> style constant for an ABORT button; * the only valid combination is ABORT|RETRY|IGNORE * (value is 1<<9). */ public static final int ABORT = 1 << 9; /** * The <code>MessageBox</code> style constant for a RETRY button; * valid combinations are ABORT|RETRY|IGNORE, RETRY|CANCEL * (value is 1<<10). */ public static final int RETRY = 1 << 10; /** * The <code>MessageBox</code> style constant for an IGNORE button; * the only valid combination is ABORT|RETRY|IGNORE * (value is 1<<11). */ public static final int IGNORE = 1 << 11; /** * The <code>FileDialog</code> style constant for open file dialog behavior * (value is 1<<12). */ public static final int OPEN = 1 << 12; /** * The <code>FileDialog</code> style constant for save file dialog behavior * (value is 1<<13). */ public static final int SAVE = 1 << 13; /** * Default color white (value is 1). */ public static final int COLOR_WHITE = 1; /** * Default color black (value is 2). */ public static final int COLOR_BLACK = 2; /** * Default color red (value is 3). */ public static final int COLOR_RED = 3; /** * Default color dark red (value is 4). */ public static final int COLOR_DARK_RED = 4; /** * Default color green (value is 5). */ public static final int COLOR_GREEN = 5; /** * Default color dark green (value is 6). */ public static final int COLOR_DARK_GREEN = 6; /** * Default color yellow (value is 7). */ public static final int COLOR_YELLOW = 7; /** * Default color dark yello (value is 8). */ public static final int COLOR_DARK_YELLOW = 8; /** * Default color blue (value is 9). */ public static final int COLOR_BLUE = 9; /** * Default color dark blue (value is 10). */ public static final int COLOR_DARK_BLUE = 10; /** * Default color magenta (value is 11). */ public static final int COLOR_MAGENTA = 11; /** * Default color dark magenta (value is 12). */ public static final int COLOR_DARK_MAGENTA = 12; /** * Default color cyan (value is 13). */ public static final int COLOR_CYAN = 13; /** * Default color dark cyan (value is 14). */ public static final int COLOR_DARK_CYAN = 14; /** * Default color gray (value is 15). */ public static final int COLOR_GRAY = 15; /** * Default color dark gray (value is 16). */ public static final int COLOR_DARK_GRAY = 16; /* * System Colors * * Dealing with system colors is an area where there are * many platform differences. On some platforms, system * colors can change dynamically while the program is * running. On other platforms, system colors can be * changed for all instances of a particular widget. * Therefore, the only truly portable method to obtain * a widget color query is to query the color from an * instance of the widget. * * It is expected that the list of supported colors * will grow over time. */ /** * System color used to paint dark shadow areas (value is 17). */ public static final int COLOR_WIDGET_DARK_SHADOW = 17; /** * System color used to paint normal shadow areas (value is 18). */ public static final int COLOR_WIDGET_NORMAL_SHADOW = 18; /** * System color used to paint light shadow areas (value is 19). */ public static final int COLOR_WIDGET_LIGHT_SHADOW = 19; /** * System color used to paint highlight shadow areas (value is 20). */ public static final int COLOR_WIDGET_HIGHLIGHT_SHADOW = 20; /** * System color used to paint foreground areas (value is 21). */ public static final int COLOR_WIDGET_FOREGROUND = 21; /** * System color used to paint background areas (value is 22). */ public static final int COLOR_WIDGET_BACKGROUND = 22; /** * System color used to paint border areas (value is 23). */ public static final int COLOR_WIDGET_BORDER = 23; /** * System color used to paint list foreground areas (value is 24). */ public static final int COLOR_LIST_FOREGROUND = 24; /** * System color used to paint list background areas (value is 25). */ public static final int COLOR_LIST_BACKGROUND = 25; /** * System color used to paint list selection background areas (value is 26). */ public static final int COLOR_LIST_SELECTION = 26; /** * System color used to paint list selected text (value is 27). */ public static final int COLOR_LIST_SELECTION_TEXT = 27; /** * System color used to paint tooltip text (value is 28). */ public static final int COLOR_INFO_FOREGROUND = 28; /** * System color used to paint tooltip background areas (value is 29). */ public static final int COLOR_INFO_BACKGROUND = 29; /** * System color used to paint title text (value is 30). */ public static final int COLOR_TITLE_FOREGROUND = 30; /** * System color used to paint title background areas (value is 31). */ public static final int COLOR_TITLE_BACKGROUND = 31; /** * System color used to paint title background gradient (value is 32). */ public static final int COLOR_TITLE_BACKGROUND_GRADIENT = 32; /** * System color used to paint inactive title text (value is 33). */ public static final int COLOR_TITLE_INACTIVE_FOREGROUND = 33; /** * System color used to paint inactive title background areas (value is 34). */ public static final int COLOR_TITLE_INACTIVE_BACKGROUND = 34; /** * System color used to paint inactive title background gradient (value is 35). */ public static final int COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT = 35; /** * Draw constant indicating whether the drawing operation * should fill the background (value is 1<<0). */ public static final int DRAW_TRANSPARENT = 1 << 0; /** * Draw constant indicating whether the string drawing operation * should handle line-delimeters (value is 1<<1). */ public static final int DRAW_DELIMITER = 1 << 1; /** * Draw constant indicating whether the string drawing operation * should expand TAB characters (value is 1<<2). */ public static final int DRAW_TAB = 1 << 2; /** * Draw constant indicating whether the string drawing operation * should handle mnemonics (value is 1<<3). */ public static final int DRAW_MNEMONIC = 1 << 3; /** * SWT error constant indicating that no error number was specified * (value is 1). */ public static final int ERROR_UNSPECIFIED = 1; /** * SWT error constant indicating that no more handles for an * operating system resource are available * (value is 2). */ public static final int ERROR_NO_HANDLES = 2; /** * SWT error constant indicating that no more callback resources are available * (value is 3). */ public static final int ERROR_NO_MORE_CALLBACKS = 3; /** * SWT error constant indicating that a null argument was passed in * (value is 4). */ public static final int ERROR_NULL_ARGUMENT = 4; /** * SWT error constant indicating that an invalid argument was passed in * (value is 5). */ public static final int ERROR_INVALID_ARGUMENT = 5; /** * SWT error constant indicating that a value was found to be * outside the allowable range * (value is 6). */ public static final int ERROR_INVALID_RANGE = 6; /** * SWT error constant indicating that a value which can not be * zero was found to be * (value is 7). */ public static final int ERROR_CANNOT_BE_ZERO = 7; /** * SWT error constant indicating that the underlying operating * system was unable to provide the value of an item * (value is 8). */ public static final int ERROR_CANNOT_GET_ITEM = 8; /** * SWT error constant indicating that the underlying operating * system was unable to provide the selection * (value is 9). */ public static final int ERROR_CANNOT_GET_SELECTION = 9; /** * SWT error constant indicating that the underlying operating * system was unable to provide the height of an item * (value is 11). */ public static final int ERROR_CANNOT_GET_ITEM_HEIGHT = 11; /** * SWT error constant indicating that the underlying operating * system was unable to provide the text of a widget * (value is 12). */ public static final int ERROR_CANNOT_GET_TEXT = 12; /** * SWT error constant indicating that the underlying operating * system was unable to set the text of a widget * (value is 13). */ public static final int ERROR_CANNOT_SET_TEXT = 13; /** * SWT error constant indicating that the underlying operating * system was unable to add an item * (value is 14). */ public static final int ERROR_ITEM_NOT_ADDED = 14; /** * SWT error constant indicating that the underlying operating * system was unable to remove an item * (value is 15). */ public static final int ERROR_ITEM_NOT_REMOVED = 15; /** * SWT error constant indicating that a particular feature has * not been implemented on this platform * (value is 20). */ public static final int ERROR_NOT_IMPLEMENTED = 20; /** * SWT error constant indicating that a menu which needed * to have the drop down style had some other style instead * (value is 21). */ public static final int ERROR_MENU_NOT_DROP_DOWN = 21; /** * SWT error constant indicating that an attempt was made to * invoke an SWT operation which can only be executed by the * user-interface thread from some other thread * (value is 22). */ public static final int ERROR_THREAD_INVALID_ACCESS = 22; /** * SWT error constant indicating that an attempt was made to
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -