|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.swt.SWT
This class provides access to a small number of SWT system-wide methods, and in addition defines the public constants provided by SWT.
By defining constants like UP and DOWN in a single class, SWT can share common names and concepts at the same time minimizing the number of classes, names and constants for the application programmer.
Note that some of the constants provided by this class represent optional, appearance related aspects of widgets which are available either only on some window systems, or for a differing set of widgets on each window system. These constants are marked as HINTs. The set of widgets which support a particular HINT may change from release to release, although we typically will not withdraw support for a HINT once it is made available.
Field Summary | |
static int |
Activate
The activate event type (value is 26). |
static int |
ALPHA
Input Method Editor style constant for alpha input behavior (value is 1<<2). |
static int |
ALT
keyboard and/or mouse event mask indicating that the ALT key was pushed on the keyboard when the event was generated (value is 1<<16). |
static int |
APPLICATION_MODAL
Style constant for application modal behavior (value is 1<<16). |
static int |
ARROW_DOWN
Keyboard event constant representing the DOWN ARROW key (value is (1<<24)+2). |
static int |
ARROW_LEFT
Keyboard event constant representing the LEFT ARROW key (value is (1<<24)+3). |
static int |
ARROW_RIGHT
Keyboard event constant representing the RIGHT ARROW key (value is (1<<24)+4). |
static int |
ARROW_UP
Keyboard event constant representing the UP ARROW key (value is (1<<24)+1). |
static int |
BAR
Style constant for menu bar behavior (value is 1<<1). |
static int |
BEGINNING
Style constant for vertical alignment or orientation behavior (value is 1). |
static int |
BITMAP
Constant indicating that an image or operation is of type bitmap (value is 0). |
static int |
BOLD
The font style constant indicating a bold weight font (value is 1<<0). |
static int |
BORDER
Style constant for bordered behavior (value is 1<<11). |
static int |
BOTTOM
Style constant for align bottom behavior (value is 1<<10, since align DOWN and align BOTTOM are considered the same). |
static int |
BREAK
Keyboard event constant representing the break key (value is (1<<24)+86). |
static char |
BS
ASCII character convenience constant for the backspace character (value is the char '\b'). |
static int |
BUTTON_MASK
Keyboard and/or mouse event mask indicating all possible mouse buttons. |
static int |
BUTTON1
Keyboard and/or mouse event mask indicating that mouse button one was pushed when the event was generated. |
static int |
BUTTON2
Keyboard and/or mouse event mask indicating that mouse button two was pushed when the event was generated. |
static int |
BUTTON3
Keyboard and/or mouse event mask indicating that mouse button three was pushed when the event was generated. |
static int |
CANCEL
The MessageBox style constant for a CANCEL button;
valid combinations are OK|CANCEL, YES|NO|CANCEL, RETRY|CANCEL
(value is 1<<8). |
static int |
CAPS_LOCK
Keyboard event constant representing the caps lock key (value is (1<<24)+82). |
static int |
CASCADE
Style constant for cascade behavior (value is 1<<6). |
static int |
CENTER
Style constant for align center behavior (value is 1<<24). |
static int |
CHECK
Style constant for check box behavior (value is 1<<5). |
static int |
CLIP_CHILDREN
Style constant indicating that the window manager should clip a widget's children with respect to its viewable area. |
static int |
CLIP_SIBLINGS
Style constant indicating that the window manager should clip a widget's siblings with respect to its viewable area. |
static int |
Close
The close event type (value is 21). |
static int |
CLOSE
Style constant for close box trim (value is 1<<6, since we do not distinguish between CLOSE style and MENU style). |
static int |
Collapse
The collapse event type (value is 18). |
static int |
COLOR_BLACK
Default color black (value is 2). |
static int |
COLOR_BLUE
Default color blue (value is 9). |
static int |
COLOR_CYAN
Default color cyan (value is 13). |
static int |
COLOR_DARK_BLUE
Default color dark blue (value is 10). |
static int |
COLOR_DARK_CYAN
Default color dark cyan (value is 14). |
static int |
COLOR_DARK_GRAY
Default color dark gray (value is 16). |
static int |
COLOR_DARK_GREEN
Default color dark green (value is 6). |
static int |
COLOR_DARK_MAGENTA
Default color dark magenta (value is 12). |
static int |
COLOR_DARK_RED
Default color dark red (value is 4). |
static int |
COLOR_DARK_YELLOW
Default color dark yello (value is 8). |
static int |
COLOR_GRAY
Default color gray (value is 15). |
static int |
COLOR_GREEN
Default color green (value is 5). |
static int |
COLOR_LIST_BACKGROUND
System color used to paint list background areas (value is 25). |
static int |
COLOR_LIST_FOREGROUND
System color used to paint list foreground areas (value is 24). |
static int |
COLOR_LIST_SELECTION
System color used to paint list selection background areas (value is 26). |
static int |
COLOR_LIST_SELECTION_TEXT
System color used to paint list selected text (value is 27). |
static int |
COLOR_MAGENTA
Default color magenta (value is 11). |
static int |
COLOR_RED
Default color red (value is 3). |
static int |
COLOR_TITLE_BACKGROUND
System color used to paint title background areas (value is 31). |
static int |
COLOR_TITLE_BACKGROUND_GRADIENT
System color used to paint title background gradient (value is 32). |
static int |
COLOR_TITLE_FOREGROUND
System color used to paint title text (value is 30). |
static int |
COLOR_TITLE_INACTIVE_BACKGROUND
System color used to paint inactive title background areas (value is 34). |
static int |
COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT
System color used to paint inactive title background gradient (value is 35). |
static int |
COLOR_TITLE_INACTIVE_FOREGROUND
System color used to paint inactive title text (value is 33). |
static int |
COLOR_WHITE
Default color white (value is 1). |
static int |
COLOR_WIDGET_BACKGROUND
System color used to paint background areas (value is 22). |
static int |
COLOR_WIDGET_BORDER
System color used to paint border areas (value is 23). |
static int |
COLOR_WIDGET_DARK_SHADOW
System color used to paint dark shadow areas (value is 17). |
static int |
COLOR_WIDGET_FOREGROUND
System color used to paint foreground areas (value is 21). |
static int |
COLOR_WIDGET_HIGHLIGHT_SHADOW
System color used to paint highlight shadow areas (value is 20). |
static int |
COLOR_WIDGET_LIGHT_SHADOW
System color used to paint light shadow areas (value is 19). |
static int |
COLOR_WIDGET_NORMAL_SHADOW
System color used to paint normal shadow areas (value is 18). |
static int |
COLOR_YELLOW
Default color yellow (value is 7). |
static int |
COMMAND
Keyboard and/or mouse event mask indicating that the COMMAND key was pushed on the keyboard when the event was generated (value is 1<<22). |
static int |
CONTROL
Keyboard and/or mouse event mask indicating that the CTRL key was pushed on the keyboard when the event was generated. |
static char |
CR
ASCII character convenience constant for the carriage return character (value is the char '\r'). |
static int |
CTRL
Keyboard and/or mouse event mask indicating that the CTRL key was pushed on the keyboard when the event was generated (value is 1<<18). |
static int |
DBCS
Input Method Editor style constant for double byte input behavior (value is 1<<1). |
static int |
Deactivate
The deactivate event type (value is 27). |
static int |
DEFAULT
Indicates that a default should be used (value is -1). |
static int |
DefaultSelection
The default selection event type (value is 14). |
static int |
Deiconify
The de-iconify event type (value is 20). |
static char |
DEL
ASCII character convenience constant for the delete character (value is the char with value 127). |
static int |
DIALOG_TRIM
Trim style convenience constant for the most common dialog shell appearance (value is CLOSE|TITLE|BORDER). |
static int |
Dispose
The dispose event type (value is 12). |
static int |
DM_FILL_BACKGROUND
GIF image disposal method constants indicating that the the previous images should be covered with the background color before displaying the next image (value is 2). |
static int |
DM_FILL_NONE
GIF image disposal method constants indicating that the disposal method is to do nothing; that is, to leave the previous image in place (value is 1). |
static int |
DM_FILL_PREVIOUS
GIF image disposal method constants indicating that the disposal method is to restore the previous picture (value is 3). |
static int |
DM_UNSPECIFIED
GIF image disposal method constants indicating that the disposal method is unspecified (value is 0). |
static int |
DOUBLE_BUFFERED
Style constant to indicate double buffering (value is 1<<29). |
static int |
DOWN
Style constant for align down behavior (value is 1<<10, since align DOWN and align BOTTOM are considered the same). |
static int |
DRAG
Indicates that a user-interface component is being dragged, for example dragging the thumb of a scroll bar (value is 1). |
static int |
DRAW_DELIMITER
Draw constant indicating whether the string drawing operation should handle line-delimeters (value is 1<<1). |
static int |
DRAW_MNEMONIC
Draw constant indicating whether the string drawing operation should handle mnemonics (value is 1<<3). |
static int |
DRAW_TAB
Draw constant indicating whether the string drawing operation should expand TAB characters (value is 1<<2). |
static int |
DRAW_TRANSPARENT
Draw constant indicating whether the drawing operation should fill the background (value is 1<<0). |
static int |
DROP_DOWN
Style constant for drop down menu/list behavior (value is 1<<2). |
static int |
END
Keyboard event constant representing the END key (value is (1<<24)+8). |
static int |
ERROR_CANNOT_BE_ZERO
SWT error constant indicating that a value which can not be zero was found to be (value is 7). |
static int |
ERROR_CANNOT_GET_COUNT
SWT error constant indicating that the underlying operating system was unable to provide count information (value is 36). |
static int |
ERROR_CANNOT_GET_ENABLED
SWT error constant indicating that the underlying operating system was unable to provide enabled/disabled state information (value is 31). |
static int |
ERROR_CANNOT_GET_ITEM
SWT error constant indicating that the underlying operating system was unable to provide the value of an item (value is 8). |
static int |
ERROR_CANNOT_GET_ITEM_HEIGHT
SWT error constant indicating that the underlying operating system was unable to provide the height of an item (value is 11). |
static int |
ERROR_CANNOT_GET_SELECTION
SWT error constant indicating that the underlying operating system was unable to provide the selection (value is 9). |
static int |
ERROR_CANNOT_GET_TEXT
SWT error constant indicating that the underlying operating system was unable to provide the text of a widget (value is 12). |
static int |
ERROR_CANNOT_SET_ENABLED
SWT error constant indicating that the underlying operating system was unable to set the enabled state (value is 30). |
static int |
ERROR_CANNOT_SET_MENU
SWT error constant indicating that the underlying operating system was unable to set the menu (value is 29). |
static int |
ERROR_CANNOT_SET_SELECTION
SWT error constant indicating that the underlying operating system was unable to set the selection of a widget (value is 28). |
static int |
ERROR_CANNOT_SET_TEXT
SWT error constant indicating that the underlying operating system was unable to set the text of a widget (value is 13). |
static int |
ERROR_DEVICE_DISPOSED
SWT error constant indicating that an attempt was made to invoke an SWT operation using a device which had already been disposed (value is 45). |
static int |
ERROR_FAILED_EXEC
SWT error constant indicating that an exception happened when executing a runnable (value is 46). |
static int |
ERROR_FAILED_LOAD_LIBRARY
SWT error constant indicating that an unsatisfied link error occured while attempting to load a library (value is 47). |
static int |
ERROR_GRAPHIC_DISPOSED
SWT error constant indicating that an attempt was made to invoke an SWT operation using a graphics object which had already been disposed (value is 44). |
static int |
ERROR_INVALID_ARGUMENT
SWT error constant indicating that an invalid argument was passed in (value is 5). |
static int |
ERROR_INVALID_FONT
SWT error constant indicating that a font is not valid (value is 48). |
static int |
ERROR_INVALID_IMAGE
SWT error constant indicating that a graphics operation was attempted with an image having an invalid format (value is 40). |
static int |
ERROR_INVALID_PARENT
SWT error constant indicating that a provided widget can not be used as a parent in the current operation (value is 32). |
static int |
ERROR_INVALID_RANGE
SWT error constant indicating that a value was found to be outside the allowable range (value is 6). |
static int |
ERROR_INVALID_SUBCLASS
SWT error constant indicating that an attempt was made to subclass an SWT widget class without implementing the checkSubclass() method
(value is 43). |
static int |
ERROR_IO
SWT error constant indicating that an input/output operation failed during the execution of an SWT operation (value is 39). |
static int |
ERROR_ITEM_NOT_ADDED
SWT error constant indicating that the underlying operating system was unable to add an item (value is 14). |
static int |
ERROR_ITEM_NOT_REMOVED
SWT error constant indicating that the underlying operating system was unable to remove an item (value is 15). |
static int |
ERROR_MENU_NOT_BAR
SWT error constant indicating that a menu which needed to have the menu bar style had some other style instead (value is 33). |
static int |
ERROR_MENU_NOT_DROP_DOWN
SWT error constant indicating that a menu which needed to have the drop down style had some other style instead (value is 21). |
static int |
ERROR_MENU_NOT_POP_UP
SWT error constant indicating that a menu which needed to have the pop up menu style had some other style instead (value is 37). |
static int |
ERROR_MENUITEM_NOT_CASCADE
SWT error constant indicating that a menu item which needed to have the cascade style had some other style instead (value is 27). |
static int |
ERROR_NO_HANDLES
SWT error constant indicating that no more handles for an operating system resource are available (value is 2). |
static int |
ERROR_NO_MORE_CALLBACKS
SWT error constant indicating that no more callback resources are available (value is 3). |
static int |
ERROR_NOT_IMPLEMENTED
SWT error constant indicating that a particular feature has not been implemented on this platform (value is 20). |
static int |
ERROR_NULL_ARGUMENT
SWT error constant indicating that a null argument was passed in (value is 4). |
static int |
ERROR_THREAD_INVALID_ACCESS
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). |
static int |
ERROR_UNSPECIFIED
SWT error constant indicating that no error number was specified (value is 1). |
static int |
ERROR_UNSUPPORTED_DEPTH
SWT error constant indicating that a graphics operation was attempted with an image of an unsupported depth (value is 38). |
static int |
ERROR_UNSUPPORTED_FORMAT
SWT error constant indicating that a graphics operation was attempted with an image having a valid but unsupported format (value is 42). |
static int |
ERROR_WIDGET_DISPOSED
SWT error constant indicating that an attempt was made to invoke an SWT operation using a widget which had already been disposed (value is 24). |
static char |
ESC
ASCII character convenience constant for the escape character (value is the char with value 27). |
static int |
Expand
The expand event type (value is 17). |
static int |
F1
Keyboard event constant representing the F1 key (value is (1<<24)+10). |
static int |
F10
Keyboard event constant representing the F10 key (value is (1<<24)+19). |
static int |
F11
Keyboard event constant representing the F11 key (value is (1<<24)+20). |
static int |
F12
Keyboard event constant representing the F12 key (value is (1<<24)+21). |
static int |
F13
Keyboard event constant representing the F13 key (value is (1<<24)+22). |
static int |
F14
Keyboard event constant representing the F14 key (value is (1<<24)+23). |
static int |
F15
Keyboard event constant representing the F15 key (value is (1<<24)+24). |
static int |
F2
Keyboard event constant representing the F2 key (value is (1<<24)+11). |
static int |
F3
Keyboard event constant representing the F3 key (value is (1<<24)+12). |
static int |
F4
Keyboard event constant representing the F4 key (value is (1<<24)+13). |
static int |
F5
Keyboard event constant representing the F5 key (value is (1<<24)+14). |
static int |
F6
Keyboard event constant representing the F6 key (value is (1<<24)+15). |
static int |
F7
Keyboard event constant representing the F7 key (value is (1<<24)+16). |
static int |
F8
Keyboard event constant representing the F8 key (value is (1<<24)+17). |
static int |
F9
Keyboard event constant representing the F9 key (value is (1<<24)+18). |
static int |
FILL
Style constant for vertical alignment or orientation behavior (value is 4). |
static int |
FILL_EVEN_ODD
Even odd rule for filling operations (value is 1). |
static int |
FILL_WINDING
Winding rule for filling operations (value is 2). |
static int |
FLAT
Style constant for flat appearance. |
static int |
FocusIn
The focus in event type (value is 15). |
static int |
FocusOut
The focus out event type (value is 16). |
static int |
FULL_SELECTION
Style constant for full row selection behavior. |
static int |
H_SCROLL
Style constant for horizontal scrollbar behavior (value is 1<<8). |
static int |
HardKeyDown
The hardware key down event type (value is 33). |
static int |
HardKeyUp
The hardware key up event type (value is 34). |
static int |
Hide
The hide event type (value is 23). |
static int |
HIDE_SELECTION
Style constant for selection hiding behavior when the widget loses focus (value is 1<<15). |
static int |
HOME
Keyboard event constant representing the HOME key (value is (1<<24)+7). |
static int |
HORIZONTAL
Style constant for horizontal alignment or orientation behavior (value is 1<<8). |
static int |
ICON
Constant indicating that an image or operation is of type icon (value is 1). |
static int |
ICON_ERROR
The MessageBox style constant for error icon
behavior (value is 1). |
static int |
ICON_INFORMATION
The MessageBox style constant for information icon
behavior (value is 1<<1). |
static int |
ICON_QUESTION
The MessageBox style constant for question icon
behavior (value is 1<<2). |
static int |
ICON_WARNING
The MessageBox style constant for warning icon
behavior (value is 1<<3). |
static int |
ICON_WORKING
The MessageBox style constant for "working" icon
behavior (value is 1<<4). |
static int |
Iconify
The iconify event type (value is 19). |
static int |
IMAGE_GIF
Image format constant indicating a GIF format image (value is 2). |
static int |
IMAGE_JPEG
Image format constant indicating a JPEG format image (value is 4). |
static int |
IMAGE_PNG
Image format constant indicating a PNG format image (value is 5). |
static int |
IMAGE_UNDEFINED
Image format constant indicating an unknown image type (value is -1). |
static int |
INDETERMINATE
Style constant for progress bar behavior (value is 1<<1). |
static int |
INSERT
Keyboard event constant representing the INSERT key (value is (1<<24)+9). |
static int |
ITALIC
The font style constant indicating an italic font (value is 1<<1). |
static int |
KEY_MASK
Accelerator constant used to extract the key stroke portion of an accelerator. |
static int |
KEYCODE_BIT
Accelerator constant used to differentiate a key code from a unicode character. |
static int |
KeyDown
The key down event type (value is 1). |
static int |
KEYPAD_0
Keyboard event constant representing the numeric key pad zero key (value is (1<<24)+48). |
static int |
KEYPAD_1
Keyboard event constant representing the numeric key pad one key (value is (1<<24)+49). |
static int |
KEYPAD_2
Keyboard event constant representing the numeric key pad two key (value is (1<<24)+50). |
static int |
KEYPAD_3
Keyboard event constant representing the numeric key pad three key (value is (1<<24)+51). |
static int |
KEYPAD_4
Keyboard event constant representing the numeric key pad four key (value is (1<<24)+52). |
static int |
KEYPAD_5
Keyboard event constant representing the numeric key pad five key (value is (1<<24)+53). |
static int |
KEYPAD_6
Keyboard event constant representing the numeric key pad six key (value is (1<<24)+54). |
static int |
KEYPAD_7
Keyboard event constant representing the numeric key pad seven key (value is (1<<24)+55). |
static int |
KEYPAD_8
Keyboard event constant representing the numeric key pad eight key (value is (1<<24)+56). |
static int |
KEYPAD_9
Keyboard event constant representing the numeric key pad nine key (value is (1<<24)+57). |
static int |
KEYPAD_ADD
Keyboard event constant representing the numeric key pad add key (value is (1<<24)+43). |
static int |
KEYPAD_CR
Keyboard event constant representing the numeric key pad enter key (value is (1<<24)+80). |
static int |
KEYPAD_DECIMAL
Keyboard event constant representing the numeric key pad decimal key (value is (1<<24)+46). |
static int |
KEYPAD_DIVIDE
Keyboard event constant representing the numeric key pad divide key (value is (1<<24)+47). |
static int |
KEYPAD_EQUAL
Keyboard event constant representing the numeric key pad equal key (value is (1<<24)+61). |
static int |
KEYPAD_MULTIPLY
Keyboard event constant representing the numeric key pad multiply key (value is (1<<24)+42). |
static int |
KEYPAD_SUBTRACT
Keyboard event constant representing the numeric key pad subtract key (value is (1<<24)+45). |
static int |
KeyUp
The key up event type (value is 2). |
static int |
LEAD
Style constant for leading alignment (value is 1<<14). |
static int |
LEFT
Style constant for align left behavior (value is 1<<14). |
static int |
LEFT_TO_RIGHT
Style constant for left to right orientation (value is 1<<25). |
static char |
LF
ASCII character convenience constant for the line feed character (value is the char '\n'). |
static int |
LINE_DASH
Line drawing style for dashed lines (value is 2). |
static int |
LINE_DASHDOT
Line drawing style for alternating dash-dot lines (value is 4). |
static int |
LINE_DASHDOTDOT
Line drawing style for dash-dot-dot lines (value is 5). |
static int |
LINE_DOT
Line drawing style for dotted lines (value is 3). |
static int |
LINE_SOLID
Line drawing style for solid lines (value is 1). |
static int |
MAX
Style constant for maximize box trim (value is 1<<10). |
static int |
MENU
Style constant for shell menu trim (value is 1<<6, since we do not distinguish between CLOSE style and MENU style). |
static int |
MenuDetect
The menu detect event type (value is 35). |
static int |
MIN
Style constant for minimize box trim (value is 1<<7). |
static int |
MIRRORED
Style constant to indicate coordinate mirroring (value is 1<<27). |
static int |
MOD1
Keyboard and/or mouse event mask indicating that the MOD1 key was pushed on the keyboard when the event was generated. |
static int |
MOD2
Keyboard and/or mouse event mask indicating that the MOD2 key was pushed on the keyboard when the event was generated. |
static int |
MOD3
Keyboard and/or mouse event mask indicating that the MOD3 key was pushed on the keyboard when the event was generated. |
static int |
MOD4
Keyboard and/or mouse event mask indicating that the MOD4 key was pushed on the keyboard when the event was generated. |
static int |
MODELESS
Style constant for modeless behavior (value is 0). |
static int |
MODIFIER_MASK
Keyboard and/or mouse event mask indicating all possible keyboard modifiers. |
static int |
Modify
The modify event type (value is 24). |
static int |
MouseDoubleClick
The mouse double click event type (value is 8). |
static int |
MouseDown
The mouse down event type (value is 3) |
static int |
MouseEnter
The mouse enter event type (value is 6). |
static int |
MouseExit
The mouse exit event type (value is 7). |
static int |
MouseMove
The mouse move event type (value is 5). |
static int |
MouseUp
The mouse up event type (value is 4). |
static int |
Move
The move event type (value is 10). |
static int |
MULTI
Style constant for multi-selection behavior in lists and multiple line support on text fields (value is 1<<1). |
static int |
NATIVE
Input Method Editor style constant for native input behavior (value is 1<<3). |
static int |
NO
The MessageBox style constant for NO button;
valid combinations are YES|NO, YES|NO|CANCEL
(value is 1<<7). |
static int |
NO_BACKGROUND
Style constant for no background behavior (value is 1<<18). |
static int |
NO_FOCUS
Style constant for no focus from the mouse behavior (value is 1<<19). |
static int |
NO_MERGE_PAINTS
Style constant for no paint event merging behavior (value is 1<<21). |
static int |
NO_RADIO_GROUP
Style constant for preventing child radio group behavior (value is 1<<22). |
static int |
NO_REDRAW_RESIZE
Style constant for no redraw on resize behavior (value is 1<<20). |
static int |
NO_TRIM
Style constant to ensure no trimmings are used (value is 1<<3). |
static int |
None
The null event type (value is 0). |
static int |
NONE
A constant known to be zero (0), used in operations which take bit flags to indicate that "no bits are set". |
static int |
NORMAL
The font style constant indicating a normal weight, non-italic font (value is 0). |
static int |
NULL
A constant known to be zero (0), used in operations which take pointers to indicate a null argument. |
static int |
NUM_LOCK
Keyboard event constant representing the num lock key (value is (1<<24)+83). |
static int |
OK
The MessageBox style constant for an OK button;
valid combinations are OK, OK|CANCEL
(value is 1<<5). |
static int |
ON_TOP
Style constant for always on top behavior (value is 1<<14). |
static int |
OPEN
The FileDialog style constant for open file dialog behavior
(value is 1<<12). |
static int |
PAGE_DOWN
Keyboard event constant representing the PAGE DOWN key (value is (1<<24)+6). |
static int |
PAGE_UP
Keyboard event constant representing the PAGE UP key (value is (1<<24)+5). |
static int |
Paint
The paint event type (value is 9). |
static int |
PASSWORD
Style constant for password behavior (value is 1<<22). |
static int |
PAUSE
Keyboard event constant representing the pause key (value is (1<<24)+85). |
static int |
PHONETIC
Input Method Editor style constant for phonetic input behavior (value is 1<<4). |
static int |
POP_UP
Style constant for pop up menu behavior (value is 1<<3). |
static int |
PRIMARY_MODAL
Style constant for primary modal behavior (value is 1<<15). |
static int |
PUSH
Style constant for push button behavior (value is 1<<3). |
static int |
RADIO
Style constant for radio button behavior (value is 1<<4). |
static int |
READ_ONLY
Style constant for read-only behavior (value is 1<<3). |
static int |
Resize
The resize event type (value is 11). |
static int |
RESIZE
Style constant for resize box trim (value is 1<<4). |
static int |
RETRY
The MessageBox style constant for a RETRY button;
valid combinations are RETRY|CANCEL. |
static int |
RIGHT
Style constant for align right behavior (value is 1<<17). |
static int |
RIGHT_TO_LEFT
Style constant for right to left orientation (value is 1<<26). |
static int |
ROMAN
Input Method Editor style constant for romanicized input behavior (value is 1<<5). |
static int |
SAVE
The FileDialog style constant for save file dialog behavior
(value is 1<<13). |
static int |
SCROLL_LOCK
Keyboard event constant representing the scroll lock key (value is (1<<24)+84). |
static int |
Selection
The selection event type (value is 13). |
static int |
SEPARATOR
Style constant for line separator behavior (value is 1<<1). |
static int |
SetData
The set data event type (value is 36). |
static int |
SHADOW_IN
Style constant for shadow in behavior (value is 1<<2). |
static int |
SHADOW_NONE
Style constant for no shadow behavior (value is 1<<5). |
static int |
SHADOW_OUT
Style constant for shadow out behavior (value is 1<<3). |
static int |
SHELL_TRIM
Trim style convenience constant for the most common top level shell appearance (value is CLOSE|TITLE|MIN|MAX|RESIZE). |
static int |
SHIFT
Keyboard and/or mouse event mask indicating that the SHIFT key was pushed on the keyboard when the event was generated (value is 1<<17). |
static int |
Show
The show event type (value is 22). |
static int |
SINGLE
Style constant for single selection behavior in lists and single line support on text fields (value is 1<<2). |
static int |
SMOOTH
Style constant for flat appearance. |
static int |
SYSTEM_MODAL
Style constant for system modal behavior (value is 1<<17). |
static char |
TAB
ASCII character convenience constant for the tab character (value is the char '\t'). |
static int |
TITLE
Style constant for title area trim (value is 1<<5). |
static int |
TOGGLE
Style constant for toggle button behavior (value is 1<<1). |
static int |
TOP
Style constant for align top behavior (value is 1<<7, since align UP and align TOP are considered the same). |
static int |
TRAIL
Style constant for trailiing alignment (value is 1<<17). |
static int |
TRANSPARENCY_ALPHA
Image transparency constant indicating that the image contains alpha transparency information (value is 1<<0). |
static int |
TRANSPARENCY_MASK
Image transparency constant indicating that the image contains a transparency mask (value is 1<<1). |
static int |
TRANSPARENCY_NONE
Image transparency constant indicating that the image contains no transparency information (value is 0). |
static int |
TRANSPARENCY_PIXEL
Image transparency constant indicating that the image contains a transparent pixel (value is 1<<2). |
static int |
Traverse
The traverse event type (value is 31). |
static int |
TRAVERSE_ARROW_NEXT
Traversal event detail field value indicating that the key which designates that focus should be given to the previous tab item was pressed; typically, this is either the RIGHT-ARROW or DOWN-ARROW keys (value is 1<<6). |
static int |
TRAVERSE_ARROW_PREVIOUS
Traversal event detail field value indicating that the key which designates that focus should be given to the previous tab item was pressed; typically, this is either the LEFT-ARROW or UP-ARROW keys (value is 1<<5). |
static int |
TRAVERSE_ESCAPE
Traversal event detail field value indicating that the key which designates that a dialog should be cancelled was pressed; typically, this is the ESC key (value is 1<<1). |
static int |
TRAVERSE_MNEMONIC
Traversal event detail field value indicating that a mnemonic key sequence was pressed (value is 1<<7). |
static int |
TRAVERSE_NONE
Traversal event detail field value indicating that no traversal action should be taken (value is 0). |
static int |
TRAVERSE_PAGE_NEXT
Traversal event detail field value indicating that the key which designates that the next page of a multi-page window should be shown was pressed; typically, this is the CTRL-PAGEDOWN key sequence (value is 1<<9). |
static int |
TRAVERSE_PAGE_PREVIOUS
Traversal event detail field value indicating that the key which designates that the previous page of a multi-page window should be shown was pressed; typically, this is the CTRL-PAGEUP key sequence (value is 1<<8). |
static int |
TRAVERSE_RETURN
Traversal event detail field value indicating that the key which activates the default button in a dialog was pressed; typically, this is the ENTER key (value is 1<<2). |
static int |
TRAVERSE_TAB_NEXT
Traversal event detail field value indicating that the key which designates that focus should be given to the next tab group was pressed; typically, this is the TAB key (value is 1<<4). |
static int |
TRAVERSE_TAB_PREVIOUS
Traversal event detail field value indicating that the key which designates that focus should be given to the previous tab group was pressed; typically, this is the SHIFT-TAB key sequence (value is 1<<3). |
static int |
UP
Style constant for align up behavior (value is 1<<7, since align UP and align TOP are considered the same). |
static int |
V_SCROLL
Style constant for vertical scrollbar behavior (value is 1<<9). |
static int |
Verify
The verify event type (value is 25). |
static int |
VERTICAL
Style constant for vertical alignment or orientation behavior (value is 1<<9). |
static int |
WRAP
Style constant for automatic line wrap behavior (value is 1<<6). |
static int |
YES
The MessageBox style constant for YES button;
valid combinations are YES|NO, YES|NO|CANCEL
(value is 1<<6). |
Constructor Summary | |
SWT()
|
Method Summary | |
static void |
error(int code)
Throws an appropriate exception based on the passed in error code. |
static void |
error(int code,
java.lang.Throwable throwable)
Throws an appropriate exception based on the passed in error code. |
static void |
error(int code,
java.lang.Throwable throwable,
java.lang.String detail)
Throws an appropriate exception based on the passed in error code. |
static java.lang.String |
getPlatform()
Returns the SWT platform name. |
static int |
getVersion()
Returns the SWT version number as an integer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int None
public static final int KeyDown
public static final int KeyUp
public static final int MouseDown
public static final int MouseUp
public static final int MouseMove
public static final int MouseEnter
public static final int MouseExit
public static final int MouseDoubleClick
public static final int Paint
public static final int Move
public static final int Resize
public static final int Dispose
public static final int Selection
This event is sent when selection occurs. For example, selection occurs in a List when the user selects an item or items with the keyboard or mouse. On some platforms, the event occurs when a mouse button or key is pressed. On others, it happens when the mouse or key is released. The exact key or mouse gesture that causes this event is platform specific.
public static final int DefaultSelection
This event is sent when default selection occurs. For example, on some platforms default selection occurs in a List when the user double-clicks an item or types return in a Text. On some platforms, the event occurs when a mouse button or key is pressed. On others, it happens when the mouse or key is released. The exact key or mouse gesture that causes this event is platform specific.
public static final int FocusIn
public static final int FocusOut
public static final int Expand
public static final int Collapse
public static final int Iconify
public static final int Deiconify
public static final int Close
public static final int Show
public static final int Hide
public static final int Modify
public static final int Verify
public static final int Activate
public static final int Deactivate
public static final int Traverse
public static final int HardKeyDown
public static final int HardKeyUp
public static final int MenuDetect
public static final int SetData
public static final int NONE
public static final int DRAG
public static final int NULL
public static final int DEFAULT
public static final int BAR
Used By:
Menu
public static final int DROP_DOWN
Used By:
Menu
Combo
public static final int POP_UP
Used By:
Menu
public static final int SEPARATOR
Used By:
Label
MenuItem
public static final int TOGGLE
Used By:
Button
public static final int PUSH
Used By:
Button
MenuItem
public static final int RADIO
Used By:
Button
MenuItem
public static final int CHECK
Used By:
Button
MenuItem
Table
Tree
public static final int CASCADE
Used By:
MenuItem
public static final int MULTI
Used By:
Text
List
FileDialog
public static final int SINGLE
Used By:
Text
List
Table
Tree
public static final int READ_ONLY
Used By:
Combo
Text
public static final int WRAP
Used By:
Label
Text
public static final int PASSWORD
Used By:
Text
public static final int SHADOW_IN
Used By:
Label
public static final int SHADOW_OUT
Used By:
Label
public static final int SHADOW_NONE
Used By:
Label
public static final int INDETERMINATE
Used By:
ProgressBar
public static final int NO_TRIM
Used By:
Decorations
and subclasses
public static final int RESIZE
Used By:
Decorations
and subclasses
public static final int TITLE
Used By:
Decorations
and subclasses
public static final int CLOSE
Used By:
Decorations
and subclasses
public static final int MENU
Used By:
Decorations
and subclasses
public static final int MIN
Used By:
Decorations
and subclasses
public static final int MAX
Used By:
Decorations
and subclasses
public static final int H_SCROLL
Used By:
Scrollable
and subclasses
public static final int V_SCROLL
Used By:
Scrollable
and subclasses
public static final int BORDER
Used By:
Control
and subclasses
public static final int CLIP_CHILDREN
Used By:
Control
and subclasses
public static final int CLIP_SIBLINGS
Used By:
Control
and subclasses
public static final int ON_TOP
Used By:
Shell
and subclasses
public static final int SHELL_TRIM
Used By:
Shell
public static final int DIALOG_TRIM
Used By:
Shell
public static final int MODELESS
Used By:
Dialog
Shell
public static final int PRIMARY_MODAL
Used By:
Dialog
Shell
public static final int APPLICATION_MODAL
Used By:
Dialog
Shell
public static final int SYSTEM_MODAL
Used By:
Dialog
Shell
public static final int HIDE_SELECTION
Used By:
Table
public static final int FULL_SELECTION
Used By:
Table
Tree
public static final int FLAT
Used By:
Button
public static final int SMOOTH
Used By:
ProgressBar
public static final int NO_BACKGROUND
By default, before a widget paints, the client area is filled with the current background color. When this style is specified, the background is not filled, and the application is responsible for filling every pixel of the client area. This style might be used as an alternative to "double-buffering" in order to reduce flicker. This style does not mean "transparent" - widgets that are obscured will not draw through.
Used By:
Composite
public static final int NO_FOCUS
Used By:
Composite
public static final int NO_REDRAW_RESIZE
This style stops the entire client area from being invalidated when the size of the Canvas changes. Specifically, when the size of the Canvas gets smaller, the SWT.Paint event is not sent. When it gets bigger, an SWT.Paint event is sent with a GC clipped to only the new areas to be painted. Without this style, the entire client area will be repainted.
Used By:
Composite
public static final int NO_MERGE_PAINTS
Used By:
Composite
public static final int NO_RADIO_GROUP
Used By:
Composite
public static final int LEFT_TO_RIGHT
When orientation is not explicitly specified, orientation is inherited. This means that children will be assigned the orientation of their parent. To override this behavior and force an orientation for a child, explicitly set the orientation of the child when that child is created.
Used By:
Control
Menu
GC
public static final int RIGHT_TO_LEFT
When orientation is not explicitly specified, orientation is inherited. This means that children will be assigned the orientation of their parent. To override this behavior and force an orientation for a child, explicitly set the orientation of the child when that child is created.
Used By:
Control
Menu
GC
public static final int MIRRORED
Used By:
Control
Menu
public static final int DOUBLE_BUFFERED
Used By:
Control
public static final int UP
Used By:
Button
with ARROW
style
public static final int TOP
Used By:
FormAttachment
in a FormLayout
public static final int DOWN
Used By:
Button
with ARROW
styleTracker
public static final int BOTTOM
Used By:
FormAttachment
in a FormLayout
public static final int LEAD
Used By:
Button
Label
TableColumn
Tracker
FormAttachment
in a FormLayout
public static final int LEFT
public static final int TRAIL
Used By:
Button
Label
TableColumn
Tracker
FormAttachment
in a FormLayout
public static final int RIGHT
public static final int CENTER
Used By:
Button
Label
TableColumn
FormAttachment
in a FormLayout
public static final int HORIZONTAL
Used By:
Label
ProgressBar
Sash
Scale
ScrollBar
Slider
ToolBar
FillLayout
typeRowLayout
type
public static final int VERTICAL
Used By:
Label
ProgressBar
Sash
Scale
ScrollBar
Slider
ToolBar
FillLayout
typeRowLayout
type
public static final int BEGINNING
Used By:
GridLayout
type
public static final int FILL
Used By:
GridLayout
type
public static final int DBCS
public static final int ALPHA
public static final int NATIVE
public static final int PHONETIC
public static final int ROMAN
public static final char BS
char
'\b').
public static final char CR
char
'\r').
public static final char DEL
char
with value 127).
public static final char ESC
char
with value 27).
public static final char LF
char
'\n').
public static final char TAB
char
'\t').
public static final int ALT
public static final int SHIFT
public static final int CTRL
public static final int CONTROL
public static final int COMMAND
public static final int MODIFIER_MASK
(stateMask & SWT.MODIFIER_MASK) != 0
.
public static final int BUTTON1
public static final int BUTTON2
public static final int BUTTON3
public static final int BUTTON_MASK
(stateMask & SWT.BUTTON_MASK) != 0
.
public static final int MOD1
public static final int MOD2
public static final int MOD3
public static final int MOD4
public static final int KEYCODE_BIT
((SWT.MOD1 | SWT.MOD2 | 'T') & SWT.KEYCODE_BIT) != 0
.
The following expression is true:
((SWT.MOD3 | SWT.F2) & SWT.KEYCODE_BIT) != 0
.
(value is (1<<24))
public static final int KEY_MASK
KEYCODE_BIT
will be set.
public static final int ARROW_UP
public static final int ARROW_DOWN
public static final int ARROW_LEFT
public static final int ARROW_RIGHT
public static final int PAGE_UP
public static final int PAGE_DOWN
public static final int HOME
public static final int END
public static final int INSERT
public static final int F1
public static final int F2
public static final int F3
public static final int F4
public static final int F5
public static final int F6
public static final int F7
public static final int F8
public static final int F9
public static final int F10
public static final int F11
public static final int F12
public static final int F13
public static final int F14
public static final int F15
public static final int KEYPAD_MULTIPLY
public static final int KEYPAD_ADD
public static final int KEYPAD_SUBTRACT
public static final int KEYPAD_DECIMAL
public static final int KEYPAD_DIVIDE
public static final int KEYPAD_0
public static final int KEYPAD_1
public static final int KEYPAD_2
public static final int KEYPAD_3
public static final int KEYPAD_4
public static final int KEYPAD_5
public static final int KEYPAD_6
public static final int KEYPAD_7
public static final int KEYPAD_8
public static final int KEYPAD_9
public static final int KEYPAD_EQUAL
public static final int KEYPAD_CR
public static final int CAPS_LOCK
public static final int NUM_LOCK
public static final int SCROLL_LOCK
public static final int PAUSE
public static final int BREAK
public static final int ICON_ERROR
MessageBox
style constant for error icon
behavior (value is 1).
public static final int ICON_INFORMATION
MessageBox
style constant for information icon
behavior (value is 1<<1).
public static final int ICON_QUESTION
MessageBox
style constant for question icon
behavior (value is 1<<2).
public static final int ICON_WARNING
MessageBox
style constant for warning icon
behavior (value is 1<<3).
public static final int ICON_WORKING
MessageBox
style constant for "working" icon
behavior (value is 1<<4).
public static final int OK
MessageBox
style constant for an OK button;
valid combinations are OK, OK|CANCEL
(value is 1<<5).
public static final int YES
MessageBox
style constant for YES button;
valid combinations are YES|NO, YES|NO|CANCEL
(value is 1<<6).
public static final int NO
MessageBox
style constant for NO button;
valid combinations are YES|NO, YES|NO|CANCEL
(value is 1<<7).
public static final int CANCEL
MessageBox
style constant for a CANCEL button;
valid combinations are OK|CANCEL, YES|NO|CANCEL, RETRY|CANCEL
(value is 1<<8).
public static final int RETRY
MessageBox
style constant for a RETRY button;
valid combinations are RETRY|CANCEL.
(value is 1<<10).
public static final int OPEN
FileDialog
style constant for open file dialog behavior
(value is 1<<12).
public static final int SAVE
FileDialog
style constant for save file dialog behavior
(value is 1<<13).
public static final int COLOR_WHITE
public static final int COLOR_BLACK
public static final int COLOR_RED
public static final int COLOR_DARK_RED
public static final int COLOR_GREEN
public static final int COLOR_DARK_GREEN
public static final int COLOR_YELLOW
public static final int COLOR_DARK_YELLOW
public static final int COLOR_BLUE
public static final int COLOR_DARK_BLUE
public static final int COLOR_MAGENTA
public static final int COLOR_DARK_MAGENTA
public static final int COLOR_CYAN
public static final int COLOR_DARK_CYAN
public static final int COLOR_GRAY
public static final int COLOR_DARK_GRAY
public static final int COLOR_WIDGET_DARK_SHADOW
public static final int COLOR_WIDGET_NORMAL_SHADOW
public static final int COLOR_WIDGET_LIGHT_SHADOW
public static final int COLOR_WIDGET_HIGHLIGHT_SHADOW
public static final int COLOR_WIDGET_FOREGROUND
public static final int COLOR_WIDGET_BACKGROUND
public static final int COLOR_WIDGET_BORDER
public static final int COLOR_LIST_FOREGROUND
public static final int COLOR_LIST_BACKGROUND
public static final int COLOR_LIST_SELECTION
public static final int COLOR_LIST_SELECTION_TEXT
public static final int COLOR_TITLE_FOREGROUND
public static final int COLOR_TITLE_BACKGROUND
public static final int COLOR_TITLE_BACKGROUND_GRADIENT
public static final int COLOR_TITLE_INACTIVE_FOREGROUND
public static final int COLOR_TITLE_INACTIVE_BACKGROUND
public static final int COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT
public static final int DRAW_TRANSPARENT
public static final int DRAW_DELIMITER
public static final int DRAW_TAB
public static final int DRAW_MNEMONIC
public static final int ERROR_UNSPECIFIED
public static final int ERROR_NO_HANDLES
public static final int ERROR_NO_MORE_CALLBACKS
public static final int ERROR_NULL_ARGUMENT
public static final int ERROR_INVALID_ARGUMENT
public static final int ERROR_INVALID_RANGE
public static final int ERROR_CANNOT_BE_ZERO
public static final int ERROR_CANNOT_GET_ITEM
public static final int ERROR_CANNOT_GET_SELECTION
public static final int ERROR_CANNOT_GET_ITEM_HEIGHT
public static final int ERROR_CANNOT_GET_TEXT
public static final int ERROR_CANNOT_SET_TEXT
public static final int ERROR_ITEM_NOT_ADDED
public static final int ERROR_ITEM_NOT_REMOVED
public static final int ERROR_NOT_IMPLEMENTED
public static final int ERROR_MENU_NOT_DROP_DOWN
public static final int ERROR_THREAD_INVALID_ACCESS
public static final int ERROR_WIDGET_DISPOSED
public static final int ERROR_MENUITEM_NOT_CASCADE
public static final int ERROR_CANNOT_SET_SELECTION
public static final int ERROR_CANNOT_SET_MENU
public static final int ERROR_CANNOT_SET_ENABLED
public static final int ERROR_CANNOT_GET_ENABLED
public static final int ERROR_INVALID_PARENT
public static final int ERROR_MENU_NOT_BAR
public static final int ERROR_CANNOT_GET_COUNT
public static final int ERROR_MENU_NOT_POP_UP
public static final int ERROR_UNSUPPORTED_DEPTH
public static final int ERROR_IO
public static final int ERROR_INVALID_IMAGE
public static final int ERROR_UNSUPPORTED_FORMAT
public static final int ERROR_INVALID_SUBCLASS
checkSubclass()
method
(value is 43).
For additional information see the comment in
Widget.checkSubclass()
.
Widget.checkSubclass()
,
Constant Field Valuespublic static final int ERROR_GRAPHIC_DISPOSED
public static final int ERROR_DEVICE_DISPOSED
public static final int ERROR_FAILED_EXEC
public static final int ERROR_FAILED_LOAD_LIBRARY
public static final int ERROR_INVALID_FONT
public static final int TRAVERSE_NONE
public static final int TRAVERSE_ESCAPE
public static final int TRAVERSE_RETURN
public static final int TRAVERSE_TAB_PREVIOUS
public static final int TRAVERSE_TAB_NEXT
public static final int TRAVERSE_ARROW_PREVIOUS
public static final int TRAVERSE_ARROW_NEXT
public static final int TRAVERSE_MNEMONIC
public static final int TRAVERSE_PAGE_PREVIOUS
public static final int TRAVERSE_PAGE_NEXT
public static final int BITMAP
public static final int ICON
public static final int NORMAL
public static final int BOLD
public static final int ITALIC
public static final int LINE_SOLID
public static final int LINE_DASH
public static final int LINE_DOT
public static final int LINE_DASHDOT
public static final int LINE_DASHDOTDOT
public static final int FILL_EVEN_ODD
public static final int FILL_WINDING
public static final int IMAGE_UNDEFINED
public static final int IMAGE_GIF
public static final int IMAGE_JPEG
public static final int IMAGE_PNG
public static final int DM_UNSPECIFIED
public static final int DM_FILL_NONE
public static final int DM_FILL_BACKGROUND
public static final int DM_FILL_PREVIOUS
public static final int TRANSPARENCY_NONE
public static final int TRANSPARENCY_ALPHA
public static final int TRANSPARENCY_MASK
public static final int TRANSPARENCY_PIXEL
Constructor Detail |
public SWT()
Method Detail |
public static java.lang.String getPlatform()
public static int getVersion()
public static void error(int code)
code
- the SWT error codepublic static void error(int code, java.lang.Throwable throwable)
throwable
argument should be either null, or the
throwable which caused SWT to throw an exception.
In SWT, errors are reported by throwing one of three exceptions:
code
- the SWT error code.throwable
- the exception which caused the error to occur.SWTError
,
SWTException
,
IllegalArgumentException
public static void error(int code, java.lang.Throwable throwable, java.lang.String detail)
throwable
argument should be either null, or the
throwable which caused SWT to throw an exception.
In SWT, errors are reported by throwing one of three exceptions:
code
- the SWT error code.throwable
- the exception which caused the error to occur.detail
- more information about error.SWTError
,
SWTException
,
IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |