org.eclipse.swt
Class SWT

java.lang.Object
  |
  +--org.eclipse.swt.SWT

public class SWT
extends Object

Safe: 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 ABORT
          Enabled: The MessageBox style constant for an ABORT button; the only valid combination is ABORT|RETRY|IGNORE (value is 1<<9).
static int Activate
          Enabled: The activate event type (value is 26).
static int ALPHA
          Enabled: Input Method Editor style constant for alpha input behavior (value is 1<<2).
static int ALT
          Enabled: 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
          Enabled: Style constant for application modal behavior (value is 1<<16).
static int Arm
          Enabled: The arm event type (value is 30).
static int ARROW
          Enabled: Style constant for arrow button behavior (value is 1<<2).
static int ARROW_DOWN
          Enabled: Keyboard event constant representing the DOWN ARROW key (value is (1<<24)+2).
static int ARROW_LEFT
          Enabled: Keyboard event constant representing the LEFT ARROW key (value is (1<<24)+3).
static int ARROW_RIGHT
          Enabled: Keyboard event constant representing the RIGHT ARROW key (value is (1<<24)+4).
static int ARROW_UP
          Enabled: Keyboard event constant representing the UP ARROW key (value is (1<<24)+1).
static int BAR
          Enabled: Style constant for menu bar behavior (value is 1<<1).
static int BITMAP
          Enabled: Constant indicating that an image or operation is of type bitmap (value is 0).
static int BOLD
          Enabled: The font style constant indicating a bold weight font (value is 1<<0).
static int BORDER
          Enabled: Style constant for bordered behavior (value is 1<<11).
static int BOTTOM
          Enabled: Style constant for align bottom behavior (value is 1<<10, since align DOWN and align BOTTOM are considered the same).
static char BS
          Enabled: ASCII character convenience constant for the backspace character (value is the char '\b').
static int BUTTON_MASK
          Suppressed: Keyboard and/or mouse event mask indicating all possible mouse buttons.
static int BUTTON1
          Enabled: Keyboard and/or mouse event mask indicating that mouse button one was pushed when the event was generated.
static int BUTTON2
          Enabled: Keyboard and/or mouse event mask indicating that mouse button two was pushed when the event was generated.
static int BUTTON3
          Enabled: Keyboard and/or mouse event mask indicating that mouse button three was pushed when the event was generated.
static int CANCEL
          Enabled: The MessageBox style constant for a CANCEL button; valid combinations are OK|CANCEL, YES|NO|CANCEL, RETRY|CANCEL (value is 1<<8).
static int CASCADE
          Enabled: Style constant for cascade behavior (value is 1<<6).
static int CENTER
          Enabled: Style constant for align center behavior (value is 1<<24).
static int CHECK
          Enabled: Style constant for check box behavior (value is 1<<5).
static int CLIP_CHILDREN
          Enabled: Style constant indicating that the window manager should clip a widget's children with respect to its viewable area.
static int CLIP_SIBLINGS
          Enabled: Style constant indicating that the window manager should clip a widget's siblings with respect to its viewable area.
static int Close
          Enabled: The close event type (value is 21).
static int CLOSE
          Enabled: Style constant for close box trim (value is 1<<6, since we do not distinguish between CLOSE style and MENU style).
static int Collapse
          Enabled: The collapse event type (value is 18).
static int COLOR_BLACK
          Enabled: Default color black (value is 2).
static int COLOR_BLUE
          Enabled: Default color blue (value is 9).
static int COLOR_CYAN
          Enabled: Default color cyan (value is 13).
static int COLOR_DARK_BLUE
          Enabled: Default color dark blue (value is 10).
static int COLOR_DARK_CYAN
          Enabled: Default color dark cyan (value is 14).
static int COLOR_DARK_GRAY
          Enabled: Default color dark gray (value is 16).
static int COLOR_DARK_GREEN
          Enabled: Default color dark green (value is 6).
static int COLOR_DARK_MAGENTA
          Enabled: Default color dark magenta (value is 12).
static int COLOR_DARK_RED
          Enabled: Default color dark red (value is 4).
static int COLOR_DARK_YELLOW
          Enabled: Default color dark yello (value is 8).
static int COLOR_GRAY
          Enabled: Default color gray (value is 15).
static int COLOR_GREEN
          Enabled: Default color green (value is 5).
static int COLOR_INFO_BACKGROUND
          Enabled: System color used to paint tooltip background areas (value is 29).
static int COLOR_INFO_FOREGROUND
          Enabled: System color used to paint tooltip text (value is 28).
static int COLOR_LIST_BACKGROUND
          Enabled: System color used to paint list background areas (value is 25).
static int COLOR_LIST_FOREGROUND
          Enabled: System color used to paint list foreground areas (value is 24).
static int COLOR_LIST_SELECTION
          Enabled: System color used to paint list selection background areas (value is 26).
static int COLOR_LIST_SELECTION_TEXT
          Enabled: System color used to paint list selected text (value is 27).
static int COLOR_MAGENTA
          Enabled: Default color magenta (value is 11).
static int COLOR_RED
          Enabled: Default color red (value is 3).
static int COLOR_TITLE_BACKGROUND
          Enabled: System color used to paint title background areas (value is 31).
static int COLOR_TITLE_BACKGROUND_GRADIENT
          Enabled: System color used to paint title background gradient (value is 32).
static int COLOR_TITLE_FOREGROUND
          Enabled: System color used to paint title text (value is 30).
static int COLOR_TITLE_INACTIVE_BACKGROUND
          Enabled: System color used to paint inactive title background areas (value is 34).
static int COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT
          Enabled: System color used to paint inactive title background gradient (value is 35).
static int COLOR_TITLE_INACTIVE_FOREGROUND
          Enabled: System color used to paint inactive title text (value is 33).
static int COLOR_WHITE
          Enabled: Default color white (value is 1).
static int COLOR_WIDGET_BACKGROUND
          Enabled: System color used to paint background areas (value is 22).
static int COLOR_WIDGET_BORDER
          Enabled: System color used to paint border areas (value is 23).
static int COLOR_WIDGET_DARK_SHADOW
          Enabled: System color used to paint dark shadow areas (value is 17).
static int COLOR_WIDGET_FOREGROUND
          Enabled: System color used to paint foreground areas (value is 21).
static int COLOR_WIDGET_HIGHLIGHT_SHADOW
          Enabled: System color used to paint highlight shadow areas (value is 20).
static int COLOR_WIDGET_LIGHT_SHADOW
          Enabled: System color used to paint light shadow areas (value is 19).
static int COLOR_WIDGET_NORMAL_SHADOW
          Enabled: System color used to paint normal shadow areas (value is 18).
static int COLOR_YELLOW
          Enabled: Default color yellow (value is 7).
static int COMMAND
          Suppressed: 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
          Enabled: Keyboard and/or mouse event mask indicating that the CTRL key was pushed on the keyboard when the event was generated.
static char CR
          Enabled: ASCII character convenience constant for the carriage return character (value is the char '\r').
static int CTRL
          Enabled: 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 CURSOR_APPSTARTING
          Enabled: System app startup cursor (value is 3).
static int CURSOR_ARROW
          Enabled: System arrow cursor (value is 0).
static int CURSOR_CROSS
          Enabled: System cross hair cursor (value is 2).
static int CURSOR_HAND
          Enabled: System hand cursor (value is 21).
static int CURSOR_HELP
          Enabled: System help cursor (value is 4).
static int CURSOR_IBEAM
          Enabled: System i-beam cursor (value is 19).
static int CURSOR_NO
          Enabled: System "not allowed" cursor (value is 20).
static int CURSOR_SIZEALL
          Enabled: System resize all directions cursor (value is 5).
static int CURSOR_SIZEE
          Enabled: System resize east cursor (value is 12).
static int CURSOR_SIZEN
          Enabled: System resize north cursor (value is 10).
static int CURSOR_SIZENE
          Enabled: System resize north-east cursor (value is 14).
static int CURSOR_SIZENESW
          Enabled: System resize north-east-south-west cursor (value is 6).
static int CURSOR_SIZENS
          Enabled: System resize north-south cursor (value is 7).
static int CURSOR_SIZENW
          Enabled: System resize north-west cursor (value is 17).
static int CURSOR_SIZENWSE
          Enabled: System resize north-west-south-east cursor (value is 8).
static int CURSOR_SIZES
          Enabled: System resize south cursor (value is 11).
static int CURSOR_SIZESE
          Enabled: System resize south-east cursor (value is 15).
static int CURSOR_SIZESW
          Enabled: System resize south-west cursor (value is 16).
static int CURSOR_SIZEW
          Enabled: System resize west cursor (value is 13).
static int CURSOR_SIZEWE
          Enabled: System resize west-east cursor (value is 9).
static int CURSOR_UPARROW
          Enabled: System up arrow cursor (value is 18).
static int CURSOR_WAIT
          Enabled: System wait cursor (value is 1).
static int DBCS
          Enabled: Input Method Editor style constant for double byte input behavior (value is 1<<1).
static int Deactivate
          Enabled: The deactivate event type (value is 27).
static int DEFAULT
          Enabled: Indicates that a default should be used (value is -1).
static int DefaultSelection
          Enabled: The default selection event type (value is 14).
static int Deiconify
          Enabled: The de-iconify event type (value is 20).
static char DEL
          Enabled: ASCII character convenience constant for the delete character (value is the char with value 127).
static int DIALOG_TRIM
          Enabled: Trim style convenience constant for the most common dialog shell appearance (value is CLOSE|TITLE|BORDER).
static int Dispose
          Enabled: The dispose event type (value is 12).
static int DM_FILL_BACKGROUND
          Enabled: 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
          Enabled: 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
          Enabled: GIF image disposal method constants indicating that the disposal method is to restore the previous picture (value is 3).
static int DM_UNSPECIFIED
          Enabled: GIF image disposal method constants indicating that the disposal method is unspecified (value is 0).
static int DOWN
          Enabled: Style constant for align down behavior (value is 1<<10, since align DOWN and align BOTTOM are considered the same).
static int DRAG
          Enabled: Indicates that a user-interface component is being dragged, for example dragging the thumb of a scroll bar (value is 1).
static int DragDetect
          Enabled: The drag detect event type (value is 29).
static int DRAW_DELIMITER
          Enabled: Draw constant indicating whether the string drawing operation should handle line-delimeters (value is 1<<1).
static int DRAW_MNEMONIC
          Enabled: Draw constant indicating whether the string drawing operation should handle mnemonics (value is 1<<3).
static int DRAW_TAB
          Enabled: Draw constant indicating whether the string drawing operation should expand TAB characters (value is 1<<2).
static int DRAW_TRANSPARENT
          Enabled: Draw constant indicating whether the drawing operation should fill the background (value is 1<<0).
static int DROP_DOWN
          Enabled: Style constant for drop down menu/list behavior (value is 1<<2).
static int END
          Enabled: Keyboard event constant representing the END key (value is (1<<24)+8).
static int ERROR_CANNOT_BE_ZERO
          Enabled: 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
          Enabled: SWT error constant indicating that the underlying operating system was unable to provide count information (value is 36).
static int ERROR_CANNOT_GET_ENABLED
          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
          Enabled: 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
          Enabled: 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
          Enabled: SWT error constant indicating that the underlying operating system was unable to provide the selection (value is 9).
static int ERROR_CANNOT_GET_TEXT
          Enabled: 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
          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
          Enabled: SWT error constant indicating that the underlying operating system was unable to set the menu (value is 29).
static int ERROR_CANNOT_SET_SELECTION
          Enabled: 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
          Enabled: 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
          Enabled: 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
          Enabled: SWT error constant indicating that an exception happened when executing a runnable (value is 46).
static int ERROR_FAILED_LOAD_LIBRARY
          Enabled: SWT error constant indicating that an unsatisfied link error occured while attempting to load a library (value is 47).
static int ERROR_GRAPHIC_DISPOSED
          Enabled: 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
          Enabled: SWT error constant indicating that an invalid argument was passed in (value is 5).
static int ERROR_INVALID_IMAGE
          Enabled: 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
          Enabled: 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
          Enabled: SWT error constant indicating that a value was found to be outside the allowable range (value is 6).
static int ERROR_INVALID_SUBCLASS
          Enabled: 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
          Enabled: 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
          Enabled: SWT error constant indicating that the underlying operating system was unable to add an item (value is 14).
static int ERROR_ITEM_NOT_REMOVED
          Enabled: SWT error constant indicating that the underlying operating system was unable to remove an item (value is 15).
static int ERROR_MENU_NOT_BAR
          Enabled: 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
          Enabled: 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
          Enabled: 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
          Enabled: 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
          Enabled: SWT error constant indicating that no more handles for an operating system resource are available (value is 2).
static int ERROR_NO_MORE_CALLBACKS
          Enabled: SWT error constant indicating that no more callback resources are available (value is 3).
static int ERROR_NOT_IMPLEMENTED
          Enabled: SWT error constant indicating that a particular feature has not been implemented on this platform (value is 20).
static int ERROR_NULL_ARGUMENT
          Enabled: SWT error constant indicating that a null argument was passed in (value is 4).
static int ERROR_THREAD_INVALID_ACCESS
          Enabled: 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
          Enabled: SWT error constant indicating that no error number was specified (value is 1).
static int ERROR_UNSUPPORTED_DEPTH
          Enabled: 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
          Enabled: 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
          Enabled: 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
          Enabled: ASCII character convenience constant for the escape character (value is the char with value 27).
static int Expand
          Enabled: The expand event type (value is 17).
static int F1
          Enabled: Keyboard event constant representing the F1 key (value is (1<<24)+10).
static int F10
          Enabled: Keyboard event constant representing the F10 key (value is (1<<24)+19).
static int F11
          Enabled: Keyboard event constant representing the F11 key (value is (1<<24)+20).
static int F12
          Enabled: Keyboard event constant representing the F12 key (value is (1<<24)+21).
static int F2
          Enabled: Keyboard event constant representing the F2 key (value is (1<<24)+11).
static int F3
          Enabled: Keyboard event constant representing the F3 key (value is (1<<24)+12).
static int F4
          Enabled: Keyboard event constant representing the F4 key (value is (1<<24)+13).
static int F5
          Enabled: Keyboard event constant representing the F5 key (value is (1<<24)+14).
static int F6
          Enabled: Keyboard event constant representing the F6 key (value is (1<<24)+15).
static int F7
          Enabled: Keyboard event constant representing the F7 key (value is (1<<24)+16).
static int F8
          Enabled: Keyboard event constant representing the F8 key (value is (1<<24)+17).
static int F9
          Enabled: Keyboard event constant representing the F9 key (value is (1<<24)+18).
static int FLAT
          Enabled: Style constant for flat appearance.
static int FocusIn
          Enabled: The focus in event type (value is 15).
static int FocusOut
          Enabled: The focus out event type (value is 16).
static int FULL_SELECTION
          Enabled: Style constant for full row selection behavior.
static int H_SCROLL
          Enabled: Style constant for horizontal scrollbar behavior (value is 1<<8).
static int HardKeyDown
          Enabled: The hardware key down event type (value is 33).
static int HardKeyUp
          Enabled: The hardware key up event type (value is 34).
static int Help
          Enabled: The help event type (value is 28).
static int Hide
          Enabled: The hide event type (value is 23).
static int HIDE_SELECTION
          Enabled: Style constant for selection hiding behavior.
static int HOME
          Enabled: Keyboard event constant representing the HOME key (value is (1<<24)+7).
static int HORIZONTAL
          Enabled: Style constant for horizontal alignment or orientation behavior (value is 1<<8).
static int ICON
          Enabled: Constant indicating that an image or operation is of type icon (value is 1).
static int ICON_ERROR
          Enabled: The MessageBox style constant for error icon behavior (value is 1).
static int ICON_INFORMATION
          Enabled: The MessageBox style constant for information icon behavior (value is 1<<1).
static int ICON_QUESTION
          Enabled: The MessageBox style constant for question icon behavior (value is 1<<2).
static int ICON_WARNING
          Enabled: The MessageBox style constant for warning icon behavior (value is 1<<3).
static int ICON_WORKING
          Enabled: The MessageBox style constant for "working" icon behavior (value is 1<<4).
static int Iconify
          Enabled: The iconify event type (value is 19).
static int IGNORE
          Enabled: The MessageBox style constant for an IGNORE button; the only valid combination is ABORT|RETRY|IGNORE (value is 1<<11).
static int IMAGE_BMP
          Enabled: Image format constant indicating a Windows BMP format image (value is 0).
static int IMAGE_BMP_RLE
          Enabled: Image format constant indicating a run-length encoded Windows BMP format image (value is 1).
static int IMAGE_COPY
          Enabled: The Image constructor argument indicating that the new image should be a copy of the image provided as an argument (value is 0).
static int IMAGE_DISABLE
          Enabled: The Image constructor argument indicating that the new image should have the appearance of a "disabled" (using the platform's rules for how this should look) copy of the image provided as an argument (value is 1).
static int IMAGE_GIF
          Enabled: Image format constant indicating a GIF format image (value is 2).
static int IMAGE_GRAY
          Enabled: The Image constructor argument indicating that the new image should have the appearance of a "gray scaled" copy of the image provided as an argument (value is 2).
static int IMAGE_ICO
          Enabled: Image format constant indicating a ICO format image (value is 3).
static int IMAGE_JPEG
          Enabled: Image format constant indicating a JPEG format image (value is 4).
static int IMAGE_PNG
          Enabled: Image format constant indicating a PNG format image (value is 5).
static int IMAGE_UNDEFINED
          Enabled: Image format constant indicating an unknown image type (value is -1).
static int INDETERMINATE
          Suppressed: Style constant for progress bar behavior (value is 1<<1).
static int INSERT
          Enabled: Keyboard event constant representing the INSERT key (value is (1<<24)+9).
static int ITALIC
          Enabled: The font style constant indicating an italic font (value is 1<<1).
static int KEY_MASK
          Suppressed: Accelerator constant used to extract the key stroke portion of an accelerator.
static int KEYCODE_BIT
          Suppressed: Accelerator constant used to differentiate a key code from a unicode character.
static int KeyDown
          Enabled: The key down event type (value is 1).
static int KeyUp
          Enabled: The key up event type (value is 2).
static int LEFT
          Enabled: Style constant for align left behavior (value is 1<<14).
static int LEFT_TO_RIGHT
          Suppressed: Style constant for left to right orientation (value is 1<<25).
static char LF
          Enabled: ASCII character convenience constant for the line feed character (value is the char '\n').
static int LINE_DASH
          Enabled: Line drawing style for dashed lines (value is 2).
static int LINE_DASHDOT
          Enabled: Line drawing style for alternating dash-dot lines (value is 4).
static int LINE_DASHDOTDOT
          Enabled: Line drawing style for dash-dot-dot lines (value is 5).
static int LINE_DOT
          Enabled: Line drawing style for dotted lines (value is 3).
static int LINE_SOLID
          Enabled: Line drawing style for solid lines (value is 1).
static int MAX
          Enabled: Style constant for maximize box trim (value is 1<<10).
static int MENU
          Enabled: Style constant for shell menu trim (value is 1<<6, since we do not distinguish between CLOSE style and MENU style).
static int MIN
          Enabled: Style constant for minimize box trim (value is 1<<7).
static int MIRRORED
          Suppressed: Style constant to indicate coordinate mirroring (value is 1<<27).
static int MOD1
          Suppressed: Keyboard and/or mouse event mask indicating that the MOD1 key was pushed on the keyboard when the event was generated.
static int MOD2
          Suppressed: Keyboard and/or mouse event mask indicating that the MOD2 key was pushed on the keyboard when the event was generated.
static int MOD3
          Suppressed: Keyboard and/or mouse event mask indicating that the MOD3 key was pushed on the keyboard when the event was generated.
static int MOD4
          Suppressed: Keyboard and/or mouse event mask indicating that the MOD4 key was pushed on the keyboard when the event was generated.
static int MODELESS
          Enabled: Style constant for modeless behavior (value is 0).
static int MODIFIER_MASK
          Suppressed: Keyboard and/or mouse event mask indicating all possible keyboard modifiers.
static int Modify
          Enabled: The modify event type (value is 24).
static int MouseDoubleClick
          Enabled: The mouse double click event type (value is 8).
static int MouseDown
          Enabled: mouse down event type (value is 3)
static int MouseEnter
          Enabled: The mouse enter event type (value is 6).
static int MouseExit
          Enabled: The mouse exit event type (value is 7).
static int MouseHover
          Enabled: The mouse hover event type (value is 32).
static int MouseMove
          Enabled: The mouse move event type (value is 5).
static int MouseUp
          Enabled: The mouse up event type (value is 4).
static int Move
          Enabled: The move event type (value is 10).
static int MULTI
          Enabled: Style constant for multi-selection behavior in lists and multiple line support on text fields (value is 1<<1).
static int NATIVE
          Enabled: Input Method Editor style constant for native input behavior (value is 1<<3).
static int NO
          Enabled: The MessageBox style constant for NO button; valid combinations are YES|NO, YES|NO|CANCEL (value is 1<<7).
static int NO_BACKGROUND
          Enabled: Style constant for no background behavior (value is 1<<18).
static int NO_FOCUS
          Enabled: Style constant for does not take focus behavior (value is 1<<19).
static int NO_MERGE_PAINTS
          Enabled: Style constant for no paint event merging behavior (value is 1<<21).
static int NO_RADIO_GROUP
          Enabled: Style constant for preventing child radio group behavior (value is 1<<22).
static int NO_REDRAW_RESIZE
          Enabled: Style constant for no redraw on resize behavior (value is 1<<20).
static int NO_TRIM
          Enabled: Style constant to ensure no trimmings are used (value is 1<<3).
static int NONE
          Enabled: A constant known to be zero (0), used in operations which take bit flags to indicate that "no bits are set".
static int NORMAL
          Enabled: The font style constant indicating a normal weight, non-italic font (value is 0).
static int NULL
          Enabled: A constant known to be zero (0), used in operations which take pointers to indicate a null argument.
static int OK
          Enabled: The MessageBox style constant for an OK button; valid combinations are OK, OK|CANCEL (value is 1<<5).
static int ON_TOP
          Enabled: Style constant for always on top behavior (value is 1<<14).
static int OPEN
          Enabled: The FileDialog style constant for open file dialog behavior (value is 1<<12).
static int PAGE_DOWN
          Enabled: Keyboard event constant representing the PAGE DOWN key (value is (1<<24)+6).
static int PAGE_UP
          Enabled: Keyboard event constant representing the PAGE UP key (value is (1<<24)+5).
static int Paint
          Enabled: The paint event type (value is 9).
static int PHONETIC
          Enabled: Input Method Editor style constant for phonetic input behavior (value is 1<<4).
static int POP_UP
          Enabled: Style constant for pop up menu behavior (value is 1<<3).
static int PRIMARY_MODAL
          Enabled: Style constant for primary modal behavior (value is 1<<15).
static int PUSH
          Enabled: Style constant for push button behavior (value is 1<<3).
static int RADIO
          Enabled: Style constant for radio button behavior (value is 1<<4).
static int READ_ONLY
          Enabled: Style constant for read-only behavior (value is 1<<3).
static int Resize
          Enabled: The resize event type (value is 11).
static int RESIZE
          Enabled: Style constant for resize box trim (value is 1<<4).
static int RETRY
          Enabled: The MessageBox style constant for a RETRY button; valid combinations are ABORT|RETRY|IGNORE, RETRY|CANCEL (value is 1<<10).
static int RIGHT
          Enabled: Style constant for align right behavior (value is 1<<17).
static int RIGHT_TO_LEFT
          Suppressed: Style constant for right to left orientation (value is 1<<26).
static int ROMAN
          Enabled: Input Method Editor style constant for romanicized input behavior (value is 1<<5).
static int SAVE
          Enabled: The FileDialog style constant for save file dialog behavior (value is 1<<13).
static int Selection
          Enabled: The selection event type (value is 13).
static int SEPARATOR
          Enabled: Style constant for line separator behavior (value is 1<<1).
static int SHADOW_ETCHED_IN
          Enabled: Style constant for shadow etched in behavior (value is 1<<4).
static int SHADOW_ETCHED_OUT
          Enabled: Style constant for shadow etched out behavior (value is 1<<6).
static int SHADOW_IN
          Enabled: Style constant for shadow in behavior (value is 1<<2).
static int SHADOW_NONE
          Enabled: Style constant for no shadow behavior (value is 1<<5).
static int SHADOW_OUT
          Enabled: Style constant for shadow out behavior (value is 1<<3).
static int SHELL_TRIM
          Enabled: Trim style convenience constant for the most common top level shell appearance (value is CLOSE|TITLE|MIN|MAX|RESIZE).
static int SHIFT
          Enabled: 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
          Enabled: The show event type (value is 22).
static int SIMPLE
          Enabled: Style constant for simple (not drop down) behavior (value is 1<<6).
static int SINGLE
          Enabled: Style constant for single selection behavior in lists and single line support on text fields (value is 1<<2).
static int SMOOTH
          Enabled: Style constant for flat appearance.
static int SYSTEM_MODAL
          Enabled: Style constant for system modal behavior (value is 1<<17).
static char TAB
          Suppressed: ASCII character convenience constant for the tab character (value is the char '\t').
static int TITLE
          Enabled: Style constant for title area trim (value is 1<<5).
static int TOGGLE
          Enabled: Style constant for toggle button behavior (value is 1<<1).
static int TOOL
          Enabled: Style constant for tool window behavior (value is 1<<2).
static int TOP
          Enabled: Style constant for align top behavior (value is 1<<7, since align UP and align TOP are considered the same).
static int TRANSPARENCY_ALPHA
          Enabled: Image transparency constant indicating that the image contains alpha transparency information (value is 1<<0).
static int TRANSPARENCY_MASK
          Enabled: Image transparency constant indicating that the image contains a transparency mask (value is 1<<1).
static int TRANSPARENCY_NONE
          Enabled: Image transparency constant indicating that the image contains no transparency information (value is 0).
static int TRANSPARENCY_PIXEL
          Enabled: Image transparency constant indicating that the image contains a transparent pixel (value is 1<<2).
static int Traverse
          Enabled: The traverse event type (value is 31).
static int TRAVERSE_ARROW_NEXT
          Enabled: 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
          Enabled: 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
          Enabled: 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
          Enabled: Traversal event detail field value indicating that a mnemonic key sequence was pressed (value is 1<<7).
static int TRAVERSE_NONE
          Enabled: Traversal event detail field value indicating that no traversal action should be taken (value is 0).
static int TRAVERSE_PAGE_NEXT
          Enabled: 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
          Enabled: 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
          Enabled: 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
          Enabled: 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
          Enabled: 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
          Enabled: Style constant for align up behavior (value is 1<<7, since align UP and align TOP are considered the same).
static int V_SCROLL
          Enabled: Style constant for vertical scrollbar behavior (value is 1<<9).
static int Verify
          Enabled: The verify event type (value is 25).
static int VERTICAL
          Enabled: Style constant for vertical alignment or orientation behavior (value is 1<<9).
static int WRAP
          Enabled: Style constant for automatic line wrap behavior (value is 1<<6).
static int YES
          Enabled: The MessageBox style constant for YES button; valid combinations are YES|NO, YES|NO|CANCEL (value is 1<<6).
 
Constructor Summary
SWT()
          Suppressed:
 
Method Summary
static void error(int code)
          Suppressed: Throws an appropriate exception based on the passed in error code.
static void error(int code, Throwable throwable)
          Suppressed: Throws an appropriate exception based on the passed in error code.
(package private) static String findErrorText(int code)
          Answers a concise, human readable description of the error code.
static String getMessage(String key)
          Suppressed: Returns the NLS'ed message for the given argument.
static String getPlatform()
          Suppressed: Returns the SWT platform name.
static int getVersion()
          Suppressed: 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

KeyDown

public static final int KeyDown
Enabled: The key down event type (value is 1).


KeyUp

public static final int KeyUp
Enabled: The key up event type (value is 2).


MouseDown

public static final int MouseDown
Enabled: mouse down event type (value is 3)


MouseUp

public static final int MouseUp
Enabled: The mouse up event type (value is 4).


MouseMove

public static final int MouseMove
Enabled: The mouse move event type (value is 5).


MouseEnter

public static final int MouseEnter
Enabled: The mouse enter event type (value is 6).


MouseExit

public static final int MouseExit
Enabled: The mouse exit event type (value is 7).


MouseDoubleClick

public static final int MouseDoubleClick
Enabled: The mouse double click event type (value is 8).


Paint

public static final int Paint
Enabled: The paint event type (value is 9).


Move

public static final int Move
Enabled: The move event type (value is 10).


Resize

public static final int Resize
Enabled: The resize event type (value is 11).


Dispose

public static final int Dispose
Enabled: The dispose event type (value is 12).


Selection

public static final int Selection
Enabled: The selection event type (value is 13).


DefaultSelection

public static final int DefaultSelection
Enabled: The default selection event type (value is 14).


FocusIn

public static final int FocusIn
Enabled: The focus in event type (value is 15).


FocusOut

public static final int FocusOut
Enabled: The focus out event type (value is 16).


Expand

public static final int Expand
Enabled: The expand event type (value is 17).


Collapse

public static final int Collapse
Enabled: The collapse event type (value is 18).


Iconify

public static final int Iconify
Enabled: The iconify event type (value is 19).


Deiconify

public static final int Deiconify
Enabled: The de-iconify event type (value is 20).


Close

public static final int Close
Enabled: The close event type (value is 21).


Show

public static final int Show
Enabled: The show event type (value is 22).


Hide

public static final int Hide
Enabled: The hide event type (value is 23).


Modify

public static final int Modify
Enabled: The modify event type (value is 24).


Verify

public static final int Verify
Enabled: The verify event type (value is 25).


Activate

public static final int Activate
Enabled: The activate event type (value is 26).


Deactivate

public static final int Deactivate
Enabled: The deactivate event type (value is 27).


Help

public static final int Help
Enabled: The help event type (value is 28).


DragDetect

public static final int DragDetect
Enabled: The drag detect event type (value is 29).


Arm

public static final int Arm
Enabled: The arm event type (value is 30).


Traverse

public static final int Traverse
Enabled: The traverse event type (value is 31).


MouseHover

public static final int MouseHover
Enabled: The mouse hover event type (value is 32).


HardKeyDown

public static final int HardKeyDown
Enabled: The hardware key down event type (value is 33).


HardKeyUp

public static final int HardKeyUp
Enabled: The hardware key up event type (value is 34).


NONE

public static final int NONE
Enabled: A constant known to be zero (0), used in operations which take bit flags to indicate that "no bits are set".


DRAG

public static final int DRAG
Enabled: Indicates that a user-interface component is being dragged, for example dragging the thumb of a scroll bar (value is 1).


NULL

public static final int NULL
Enabled: A constant known to be zero (0), used in operations which take pointers to indicate a null argument.


DEFAULT

public static final int DEFAULT
Enabled: Indicates that a default should be used (value is -1).


BAR

public static final int BAR
Enabled: Style constant for menu bar behavior (value is 1<<1).

Used By:


DROP_DOWN

public static final int DROP_DOWN
Enabled: Style constant for drop down menu/list behavior (value is 1<<2).

Used By:


POP_UP

public static final int POP_UP
Enabled: Style constant for pop up menu behavior (value is 1<<3).

Used By:


SEPARATOR

public static final int SEPARATOR
Enabled: Style constant for line separator behavior (value is 1<<1).

Used By:


TOGGLE

public static final int TOGGLE
Enabled: Style constant for toggle button behavior (value is 1<<1).

Used By:


ARROW

public static final int ARROW
Enabled: Style constant for arrow button behavior (value is 1<<2).

Used By:


PUSH

public static final int PUSH
Enabled: Style constant for push button behavior (value is 1<<3).

Used By:


RADIO

public static final int RADIO
Enabled: Style constant for radio button behavior (value is 1<<4).

Used By:


CHECK

public static final int CHECK
Enabled: Style constant for check box behavior (value is 1<<5).

Used By:


CASCADE

public static final int CASCADE
Enabled: Style constant for cascade behavior (value is 1<<6).

Used By:


MULTI

public static final int MULTI
Enabled: Style constant for multi-selection behavior in lists and multiple line support on text fields (value is 1<<1).

Used By:


SINGLE

public static final int SINGLE
Enabled: Style constant for single selection behavior in lists and single line support on text fields (value is 1<<2).

Used By:


READ_ONLY

public static final int READ_ONLY
Enabled: Style constant for read-only behavior (value is 1<<3).

Used By:


WRAP

public static final int WRAP
Enabled: Style constant for automatic line wrap behavior (value is 1<<6).

Used By:


SIMPLE

public static final int SIMPLE
Enabled: Style constant for simple (not drop down) behavior (value is 1<<6).

Used By:


SHADOW_IN

public static final int SHADOW_IN
Enabled: Style constant for shadow in behavior (value is 1<<2).
Note that this is a HINT.

Used By:


SHADOW_OUT

public static final int SHADOW_OUT
Enabled: Style constant for shadow out behavior (value is 1<<3).
Note that this is a HINT.

Used By:


SHADOW_ETCHED_IN

public static final int SHADOW_ETCHED_IN
Enabled: Style constant for shadow etched in behavior (value is 1<<4).
Note that this is a HINT. It is ignored on all platforms except Motif.

Used By:


SHADOW_ETCHED_OUT

public static final int SHADOW_ETCHED_OUT
Enabled: Style constant for shadow etched out behavior (value is 1<<6).
Note that this is a HINT. It is ignored on all platforms except Motif.

Used By:


SHADOW_NONE

public static final int SHADOW_NONE
Enabled: Style constant for no shadow behavior (value is 1<<5).
Note that this is a HINT.

Used By:


INDETERMINATE

public static final int INDETERMINATE
Suppressed: Style constant for progress bar behavior (value is 1<<1).

Used By:


TOOL

public static final int TOOL
Enabled: Style constant for tool window behavior (value is 1<<2).

A tool window is a window intended to be used as a floating toolbar. It typically has a title bar that is shorter than a normal title bar, and the window title is typically drawn using a smaller font.
Note that this is a HINT.

Used By:


NO_TRIM

public static final int NO_TRIM
Enabled: Style constant to ensure no trimmings are used (value is 1<<3).
Note that this overrides all other trim styles.

Used By:


RESIZE

public static final int RESIZE
Enabled: Style constant for resize box trim (value is 1<<4).

Used By:


TITLE

public static final int TITLE
Enabled: Style constant for title area trim (value is 1<<5).

Used By:


CLOSE

public static final int CLOSE
Enabled: Style constant for close box trim (value is 1<<6, since we do not distinguish between CLOSE style and MENU style).

Used By:


MENU

public static final int MENU
Enabled: Style constant for shell menu trim (value is 1<<6, since we do not distinguish between CLOSE style and MENU style).

Used By:


MIN

public static final int MIN
Enabled: Style constant for minimize box trim (value is 1<<7).

Used By:


MAX

public static final int MAX
Enabled: Style constant for maximize box trim (value is 1<<10).

Used By:


H_SCROLL

public static final int H_SCROLL
Enabled: Style constant for horizontal scrollbar behavior (value is 1<<8).

Used By:


V_SCROLL

public static final int V_SCROLL
Enabled: Style constant for vertical scrollbar behavior (value is 1<<9).

Used By:


BORDER

public static final int BORDER
Enabled: Style constant for bordered behavior (value is 1<<11).
Note that this is a HINT.

Used By:


CLIP_CHILDREN

public static final int CLIP_CHILDREN
Enabled: Style constant indicating that the window manager should clip a widget's children with respect to its viewable area. (value is 1<<12).
Note that this is a HINT.

Used By:


CLIP_SIBLINGS

public static final int CLIP_SIBLINGS
Enabled: Style constant indicating that the window manager should clip a widget's siblings with respect to its viewable area. (value is 1<<13).
Note that this is a HINT.

Used By:


ON_TOP

public static final int ON_TOP
Enabled: Style constant for always on top behavior (value is 1<<14).
Note that this is a HINT.

Used By:


SHELL_TRIM

public static final int SHELL_TRIM
Enabled: Trim style convenience constant for the most common top level shell appearance (value is CLOSE|TITLE|MIN|MAX|RESIZE).

Used By:


DIALOG_TRIM

public static final int DIALOG_TRIM
Enabled: Trim style convenience constant for the most common dialog shell appearance (value is CLOSE|TITLE|BORDER).

Used By:


MODELESS

public static final int MODELESS
Enabled: Style constant for modeless behavior (value is 0).
Note that this is a HINT.

Used By:


PRIMARY_MODAL

public static final int PRIMARY_MODAL
Enabled: Style constant for primary modal behavior (value is 1<<15).
Note that this is a HINT.

Used By:


APPLICATION_MODAL

public static final int APPLICATION_MODAL
Enabled: Style constant for application modal behavior (value is 1<<16).
Note that this is a HINT.

Used By:


SYSTEM_MODAL

public static final int SYSTEM_MODAL
Enabled: Style constant for system modal behavior (value is 1<<17).
Note that this is a HINT.

Used By:


HIDE_SELECTION

public static final int HIDE_SELECTION
Enabled: Style constant for selection hiding behavior. (value is 1<<15).
Note that this is a HINT.

Used By:


FULL_SELECTION

public static final int FULL_SELECTION
Enabled: Style constant for full row selection behavior. (value is 1<<16).
Note that this is a HINT.

Used By:


FLAT

public static final int FLAT
Enabled: Style constant for flat appearance. (value is 1<<23).
Note that this is a HINT.

Used By:


SMOOTH

public static final int SMOOTH
Enabled: Style constant for flat appearance. (value is 1<<16).
Note that this is a HINT.

Used By:


NO_BACKGROUND

public static final int NO_BACKGROUND
Enabled: Style constant for no background behavior (value is 1<<18).

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:


NO_FOCUS

public static final int NO_FOCUS
Enabled: Style constant for does not take focus behavior (value is 1<<19).
Note that this is a HINT.

Used By:


NO_REDRAW_RESIZE

public static final int NO_REDRAW_RESIZE
Enabled: Style constant for no redraw on resize behavior (value is 1<<20).

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:


NO_MERGE_PAINTS

public static final int NO_MERGE_PAINTS
Enabled: Style constant for no paint event merging behavior (value is 1<<21).

Used By:


NO_RADIO_GROUP

public static final int NO_RADIO_GROUP
Enabled: Style constant for preventing child radio group behavior (value is 1<<22).

Used By:


LEFT_TO_RIGHT

public static final int LEFT_TO_RIGHT
Suppressed: Style constant for left to right orientation (value is 1<<25).

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:

NOTE: This API element is part of an interim API that is still under development and is expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Since:
2.1

RIGHT_TO_LEFT

public static final int RIGHT_TO_LEFT
Suppressed: Style constant for right to left orientation (value is 1<<26).

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:

NOTE: This API element is part of an interim API that is still under development and is expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Since:
2.1

MIRRORED

public static final int MIRRORED
Suppressed: Style constant to indicate coordinate mirroring (value is 1<<27).

Used By:

NOTE: This API element is part of an interim API that is still under development and is expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Since:
2.1

UP

public static final int UP
Enabled: Style constant for align up behavior (value is 1<<7, since align UP and align TOP are considered the same).

Used By:


TOP

public static final int TOP
Enabled: Style constant for align top behavior (value is 1<<7, since align UP and align TOP are considered the same).

Used By:


DOWN

public static final int DOWN
Enabled: Style constant for align down behavior (value is 1<<10, since align DOWN and align BOTTOM are considered the same).

Used By:


BOTTOM

public static final int BOTTOM
Enabled: Style constant for align bottom behavior (value is 1<<10, since align DOWN and align BOTTOM are considered the same).

Used By:


LEFT

public static final int LEFT
Enabled: Style constant for align left behavior (value is 1<<14).

Used By:


RIGHT

public static final int RIGHT
Enabled: Style constant for align right behavior (value is 1<<17).

Used By:


CENTER

public static final int CENTER
Enabled: Style constant for align center behavior (value is 1<<24).

Used By:


HORIZONTAL

public static final int HORIZONTAL
Enabled: Style constant for horizontal alignment or orientation behavior (value is 1<<8).

Used By:


VERTICAL

public static final int VERTICAL
Enabled: Style constant for vertical alignment or orientation behavior (value is 1<<9).

Used By:


DBCS

public static final int DBCS
Enabled: Input Method Editor style constant for double byte input behavior (value is 1<<1).


ALPHA

public static final int ALPHA
Enabled: Input Method Editor style constant for alpha input behavior (value is 1<<2).


NATIVE

public static final int NATIVE
Enabled: Input Method Editor style constant for native input behavior (value is 1<<3).


PHONETIC

public static final int PHONETIC
Enabled: Input Method Editor style constant for phonetic input behavior (value is 1<<4).


ROMAN

public static final int ROMAN
Enabled: Input Method Editor style constant for romanicized input behavior (value is 1<<5).


BS

public static final char BS
Enabled: ASCII character convenience constant for the backspace character (value is the char '\b').


CR

public static final char CR
Enabled: ASCII character convenience constant for the carriage return character (value is the char '\r').


DEL

public static final char DEL
Enabled: ASCII character convenience constant for the delete character (value is the char with value 127).


ESC

public static final char ESC
Enabled: ASCII character convenience constant for the escape character (value is the char with value 27).


LF

public static final char LF
Enabled: ASCII character convenience constant for the line feed character (value is the char '\n').


TAB

public static final char TAB
Suppressed: ASCII character convenience constant for the tab character (value is the char '\t').

Since:
2.1

ALT

public static final int ALT
Enabled: 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).


SHIFT

public static final int SHIFT
Enabled: 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).


CTRL

public static final int CTRL
Enabled: 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).


CONTROL

public static final int CONTROL
Enabled: 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<<18).


COMMAND

public static final int COMMAND
Suppressed: 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).

Since:
2.1

MODIFIER_MASK

public static final int MODIFIER_MASK
Suppressed: 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. (stateMask & SWT.MODIFIER_MASK) != 0.

Since:
2.1

BUTTON1

public static final int BUTTON1
Enabled: Keyboard and/or mouse event mask indicating that mouse button one was pushed when the event was generated. (value is 1<<19).


BUTTON2

public static final int BUTTON2
Enabled: Keyboard and/or mouse event mask indicating that mouse button two was pushed when the event was generated. (value is 1<<20).


BUTTON3

public static final int BUTTON3
Enabled: Keyboard and/or mouse event mask indicating that mouse button three was pushed when the event was generated. (value is 1<<21).


BUTTON_MASK

public static final int BUTTON_MASK
Suppressed: 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. (stateMask & SWT.BUTTON_MASK) != 0.

Since:
2.1

MOD1

public static final int MOD1
Suppressed: 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

MOD2

public static final int MOD2
Suppressed: 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

MOD3

public static final int MOD3
Suppressed: Keyboard and/or mouse event mask indicating that the MOD3 key was pushed on the keyboard when the event was generated.

Since:
2.1

MOD4

public static final int MOD4
Suppressed: Keyboard and/or mouse event mask indicating that the MOD4 key was pushed on the keyboard when the event was generated.

Since:
2.1

KEYCODE_BIT

public static final int KEYCODE_BIT
Suppressed: 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: ((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))

Since:
2.1

KEY_MASK

public static final int KEY_MASK
Suppressed: 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 KEYCODE_BIT will be set.

Since:
2.1

ARROW_UP

public static final int ARROW_UP
Enabled: Keyboard event constant representing the UP ARROW key (value is (1<<24)+1).


ARROW_DOWN

public static final int ARROW_DOWN
Enabled: Keyboard event constant representing the DOWN ARROW key (value is (1<<24)+2).


ARROW_LEFT

public static final int ARROW_LEFT
Enabled: Keyboard event constant representing the LEFT ARROW key (value is (1<<24)+3).


ARROW_RIGHT

public static final int ARROW_RIGHT
Enabled: Keyboard event constant representing the RIGHT ARROW key (value is (1<<24)+4).


PAGE_UP

public static final int PAGE_UP
Enabled: Keyboard event constant representing the PAGE UP key (value is (1<<24)+5).


PAGE_DOWN

public static final int PAGE_DOWN
Enabled: Keyboard event constant representing the PAGE DOWN key (value is (1<<24)+6).


HOME

public static final int HOME
Enabled: Keyboard event constant representing the HOME key (value is (1<<24)+7).


END

public static final int END
Enabled: Keyboard event constant representing the END key (value is (1<<24)+8).


INSERT

public static final int INSERT
Enabled: Keyboard event constant representing the INSERT key (value is (1<<24)+9).


F1

public static final int F1
Enabled: Keyboard event constant representing the F1 key (value is (1<<24)+10).


F2

public static final int F2
Enabled: Keyboard event constant representing the F2 key (value is (1<<24)+11).


F3

public static final int F3
Enabled: Keyboard event constant representing the F3 key (value is (1<<24)+12).


F4

public static final int F4
Enabled: Keyboard event constant representing the F4 key (value is (1<<24)+13).


F5

public static final int F5
Enabled: Keyboard event constant representing the F5 key (value is (1<<24)+14).


F6

public static final int F6
Enabled: Keyboard event constant representing the F6 key (value is (1<<24)+15).


F7

public static final int F7
Enabled: Keyboard event constant representing the F7 key (value is (1<<24)+16).


F8

public static final int F8
Enabled: Keyboard event constant representing the F8 key (value is (1<<24)+17).


F9

public static final int F9
Enabled: Keyboard event constant representing the F9 key (value is (1<<24)+18).


F10

public static final int F10
Enabled: Keyboard event constant representing the F10 key (value is (1<<24)+19).


F11

public static final int F11
Enabled: Keyboard event constant representing the F11 key (value is (1<<24)+20).


F12

public static final int F12
Enabled: Keyboard event constant representing the F12 key (value is (1<<24)+21).


ICON_ERROR

public static final int ICON_ERROR
Enabled: The MessageBox style constant for error icon behavior (value is 1).


ICON_INFORMATION

public static final int ICON_INFORMATION
Enabled: The MessageBox style constant for information icon behavior (value is 1<<1).


ICON_QUESTION

public static final int ICON_QUESTION
Enabled: The MessageBox style constant for question icon behavior (value is 1<<2).


ICON_WARNING

public static final int ICON_WARNING
Enabled: The MessageBox style constant for warning icon behavior (value is 1<<3).


ICON_WORKING

public static final int ICON_WORKING
Enabled: The MessageBox style constant for "working" icon behavior (value is 1<<4).


OK

public static final int OK
Enabled: The MessageBox style constant for an OK button; valid combinations are OK, OK|CANCEL (value is 1<<5).


YES

public static final int YES
Enabled: The MessageBox style constant for YES button; valid combinations are YES|NO, YES|NO|CANCEL (value is 1<<6).


NO

public static final int NO
Enabled: The MessageBox style constant for NO button; valid combinations are YES|NO, YES|NO|CANCEL (value is 1<<7).


CANCEL

public static final int CANCEL
Enabled: The MessageBox style constant for a CANCEL button; valid combinations are OK|CANCEL, YES|NO|CANCEL, RETRY|CANCEL (value is 1<<8).


ABORT

public static final int ABORT
Enabled: The MessageBox style constant for an ABORT button; the only valid combination is ABORT|RETRY|IGNORE (value is 1<<9).


RETRY

public static final int RETRY
Enabled: The MessageBox style constant for a RETRY button; valid combinations are ABORT|RETRY|IGNORE, RETRY|CANCEL (value is 1<<10).


IGNORE

public static final int IGNORE
Enabled: The MessageBox style constant for an IGNORE button; the only valid combination is ABORT|RETRY|IGNORE (value is 1<<11).


OPEN

public static final int OPEN
Enabled: The FileDialog style constant for open file dialog behavior (value is 1<<12).


SAVE

public static final int SAVE
Enabled: The FileDialog style constant for save file dialog behavior (value is 1<<13).


COLOR_WHITE

public static final int COLOR_WHITE
Enabled: Default color white (value is 1).


COLOR_BLACK

public static final int COLOR_BLACK
Enabled: Default color black (value is 2).


COLOR_RED

public static final int COLOR_RED
Enabled: Default color red (value is 3).


COLOR_DARK_RED

public static final int COLOR_DARK_RED
Enabled: Default color dark red (value is 4).


COLOR_GREEN

public static final int COLOR_GREEN
Enabled: Default color green (value is 5).


COLOR_DARK_GREEN

public static final int COLOR_DARK_GREEN
Enabled: Default color dark green (value is 6).


COLOR_YELLOW

public static final int COLOR_YELLOW
Enabled: Default color yellow (value is 7).


COLOR_DARK_YELLOW

public static final int COLOR_DARK_YELLOW
Enabled: Default color dark yello (value is 8).


COLOR_BLUE

public static final int COLOR_BLUE
Enabled: Default color blue (value is 9).


COLOR_DARK_BLUE

public static final int COLOR_DARK_BLUE
Enabled: Default color dark blue (value is 10).


COLOR_MAGENTA

public static final int COLOR_MAGENTA
Enabled: Default color magenta (value is 11).


COLOR_DARK_MAGENTA

public static final int COLOR_DARK_MAGENTA
Enabled: Default color dark magenta (value is 12).


COLOR_CYAN

public static final int COLOR_CYAN
Enabled: Default color cyan (value is 13).


COLOR_DARK_CYAN

public static final int COLOR_DARK_CYAN
Enabled: Default color dark cyan (value is 14).


COLOR_GRAY

public static final int COLOR_GRAY
Enabled: Default color gray (value is 15).


COLOR_DARK_GRAY

public static final int COLOR_DARK_GRAY
Enabled: Default color dark gray (value is 16).


COLOR_WIDGET_DARK_SHADOW

public static final int COLOR_WIDGET_DARK_SHADOW
Enabled: System color used to paint dark shadow areas (value is 17).


COLOR_WIDGET_NORMAL_SHADOW

public static final int COLOR_WIDGET_NORMAL_SHADOW
Enabled: System color used to paint normal shadow areas (value is 18).


COLOR_WIDGET_LIGHT_SHADOW

public static final int COLOR_WIDGET_LIGHT_SHADOW
Enabled: System color used to paint light shadow areas (value is 19).


COLOR_WIDGET_HIGHLIGHT_SHADOW

public static final int COLOR_WIDGET_HIGHLIGHT_SHADOW
Enabled: System color used to paint highlight shadow areas (value is 20).


COLOR_WIDGET_FOREGROUND

public static final int COLOR_WIDGET_FOREGROUND
Enabled: System color used to paint foreground areas (value is 21).


COLOR_WIDGET_BACKGROUND

public static final int COLOR_WIDGET_BACKGROUND
Enabled: System color used to paint background areas (value is 22).


COLOR_WIDGET_BORDER

public static final int COLOR_WIDGET_BORDER
Enabled: System color used to paint border areas (value is 23).


COLOR_LIST_FOREGROUND

public static final int COLOR_LIST_FOREGROUND
Enabled: System color used to paint list foreground areas (value is 24).


COLOR_LIST_BACKGROUND

public static final int COLOR_LIST_BACKGROUND
Enabled: System color used to paint list background areas (value is 25).


COLOR_LIST_SELECTION

public static final int COLOR_LIST_SELECTION
Enabled: System color used to paint list selection background areas (value is 26).


COLOR_LIST_SELECTION_TEXT

public static final int COLOR_LIST_SELECTION_TEXT
Enabled: System color used to paint list selected text (value is 27).


COLOR_INFO_FOREGROUND

public static final int COLOR_INFO_FOREGROUND
Enabled: System color used to paint tooltip text (value is 28).


COLOR_INFO_BACKGROUND

public static final int COLOR_INFO_BACKGROUND
Enabled: System color used to paint tooltip background areas (value is 29).


COLOR_TITLE_FOREGROUND

public static final int COLOR_TITLE_FOREGROUND
Enabled: System color used to paint title text (value is 30).


COLOR_TITLE_BACKGROUND

public static final int COLOR_TITLE_BACKGROUND
Enabled: System color used to paint title background areas (value is 31).


COLOR_TITLE_BACKGROUND_GRADIENT

public static final int COLOR_TITLE_BACKGROUND_GRADIENT
Enabled: System color used to paint title background gradient (value is 32).


COLOR_TITLE_INACTIVE_FOREGROUND

public static final int COLOR_TITLE_INACTIVE_FOREGROUND
Enabled: System color used to paint inactive title text (value is 33).


COLOR_TITLE_INACTIVE_BACKGROUND

public static final int COLOR_TITLE_INACTIVE_BACKGROUND
Enabled: System color used to paint inactive title background areas (value is 34).


COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT

public static final int COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT
Enabled: System color used to paint inactive title background gradient (value is 35).


DRAW_TRANSPARENT

public static final int DRAW_TRANSPARENT
Enabled: Draw constant indicating whether the drawing operation should fill the background (value is 1<<0).


DRAW_DELIMITER

public static final int DRAW_DELIMITER
Enabled: Draw constant indicating whether the string drawing operation should handle line-delimeters (value is 1<<1).


DRAW_TAB

public static final int DRAW_TAB
Enabled: Draw constant indicating whether the string drawing operation should expand TAB characters (value is 1<<2).


DRAW_MNEMONIC

public static final int DRAW_MNEMONIC
Enabled: Draw constant indicating whether the string drawing operation should handle mnemonics (value is 1<<3).


ERROR_UNSPECIFIED

public static final int ERROR_UNSPECIFIED
Enabled: SWT error constant indicating that no error number was specified (value is 1).


ERROR_NO_HANDLES

public static final int ERROR_NO_HANDLES
Enabled: SWT error constant indicating that no more handles for an operating system resource are available (value is 2).


ERROR_NO_MORE_CALLBACKS

public static final int ERROR_NO_MORE_CALLBACKS
Enabled: SWT error constant indicating that no more callback resources are available (value is 3).


ERROR_NULL_ARGUMENT

public static final int ERROR_NULL_ARGUMENT
Enabled: SWT error constant indicating that a null argument was passed in (value is 4).


ERROR_INVALID_ARGUMENT

public static final int ERROR_INVALID_ARGUMENT
Enabled: SWT error constant indicating that an invalid argument was passed in (value is 5).


ERROR_INVALID_RANGE

public static final int ERROR_INVALID_RANGE
Enabled: SWT error constant indicating that a value was found to be outside the allowable range (value is 6).


ERROR_CANNOT_BE_ZERO

public static final int ERROR_CANNOT_BE_ZERO
Enabled: SWT error constant indicating that a value which can not be zero was found to be (value is 7).


ERROR_CANNOT_GET_ITEM

public static final int ERROR_CANNOT_GET_ITEM
Enabled: SWT error constant indicating that the underlying operating system was unable to provide the value of an item (value is 8).


ERROR_CANNOT_GET_SELECTION

public static final int ERROR_CANNOT_GET_SELECTION
Enabled: SWT error constant indicating that the underlying operating system was unable to provide the selection (value is 9).


ERROR_CANNOT_GET_ITEM_HEIGHT

public static final int ERROR_CANNOT_GET_ITEM_HEIGHT
Enabled: SWT error constant indicating that the underlying operating system was unable to provide the height of an item (value is 11).


ERROR_CANNOT_GET_TEXT

public static final int ERROR_CANNOT_GET_TEXT
Enabled: SWT error constant indicating that the underlying operating system was unable to provide the text of a widget (value is 12).


ERROR_CANNOT_SET_TEXT

public static final int ERROR_CANNOT_SET_TEXT
Enabled: SWT error constant indicating that the underlying operating system was unable to set the text of a widget (value is 13).


ERROR_ITEM_NOT_ADDED

public static final int ERROR_ITEM_NOT_ADDED
Enabled: SWT error constant indicating that the underlying operating system was unable to add an item (value is 14).


ERROR_ITEM_NOT_REMOVED

public static final int ERROR_ITEM_NOT_REMOVED
Enabled: SWT error constant indicating that the underlying operating system was unable to remove an item (value is 15).


ERROR_NOT_IMPLEMENTED

public static final int ERROR_NOT_IMPLEMENTED
Enabled: SWT error constant indicating that a particular feature has not been implemented on this platform (value is 20).


ERROR_MENU_NOT_DROP_DOWN

public static final int ERROR_MENU_NOT_DROP_DOWN
Enabled: SWT error constant indicating that a menu which needed to have the drop down style had some other style instead (value is 21).


ERROR_THREAD_INVALID_ACCESS

public static final int ERROR_THREAD_INVALID_ACCESS
Enabled: 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).


ERROR_WIDGET_DISPOSED

public static final int ERROR_WIDGET_DISPOSED
Enabled: 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).


ERROR_MENUITEM_NOT_CASCADE

public static final int ERROR_MENUITEM_NOT_CASCADE
Enabled: SWT error constant indicating that a menu item which needed to have the cascade style had some other style instead (value is 27).


ERROR_CANNOT_SET_SELECTION

public static final int ERROR_CANNOT_SET_SELECTION
Enabled: SWT error constant indicating that the underlying operating system was unable to set the selection of a widget (value is 28).


ERROR_CANNOT_SET_MENU

public static final int ERROR_CANNOT_SET_MENU
Enabled: SWT error constant indicating that the underlying operating system was unable to set the menu (value is 29).


ERROR_CANNOT_SET_ENABLED

public static final int ERROR_CANNOT_SET_ENABLED
Enabled: SWT error constant indicating that the underlying operating system was unable to set the enabled state (value is 30).


ERROR_CANNOT_GET_ENABLED

public static final int ERROR_CANNOT_GET_ENABLED
Enabled: SWT error constant indicating that the underlying operating system was unable to provide enabled/disabled state information (value is 31).


ERROR_INVALID_PARENT

public static final int ERROR_INVALID_PARENT
Enabled: SWT error constant indicating that a provided widget can not be used as a parent in the current operation (value is 32).


ERROR_MENU_NOT_BAR

public static final int ERROR_MENU_NOT_BAR
Enabled: SWT error constant indicating that a menu which needed to have the menu bar style had some other style instead (value is 33).


ERROR_CANNOT_GET_COUNT

public static final int ERROR_CANNOT_GET_COUNT
Enabled: SWT error constant indicating that the underlying operating system was unable to provide count information (value is 36).


ERROR_MENU_NOT_POP_UP

public static final int ERROR_MENU_NOT_POP_UP
Enabled: SWT error constant indicating that a menu which needed to have the pop up menu style had some other style instead (value is 37).


ERROR_UNSUPPORTED_DEPTH

public static final int ERROR_UNSUPPORTED_DEPTH
Enabled: SWT error constant indicating that a graphics operation was attempted with an image of an unsupported depth (value is 38).


ERROR_IO

public static final int ERROR_IO
Enabled: SWT error constant indicating that an input/output operation failed during the execution of an SWT operation (value is 39).


ERROR_INVALID_IMAGE

public static final int ERROR_INVALID_IMAGE
Enabled: SWT error constant indicating that a graphics operation was attempted with an image having an invalid format (value is 40).


ERROR_UNSUPPORTED_FORMAT

public static final int ERROR_UNSUPPORTED_FORMAT
Enabled: SWT error constant indicating that a graphics operation was attempted with an image having a valid but unsupported format (value is 42).


ERROR_INVALID_SUBCLASS

public static final int ERROR_INVALID_SUBCLASS
Enabled: SWT error constant indicating that an attempt was made to subclass an SWT widget class without implementing the checkSubclass() method (value is 43). For additional information see the comment in Widget.checkSubclass().

See Also:
org.eclipse.swt.widgets.Widget#checkSubclass

ERROR_GRAPHIC_DISPOSED

public static final int ERROR_GRAPHIC_DISPOSED
Enabled: 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).


ERROR_DEVICE_DISPOSED

public static final int ERROR_DEVICE_DISPOSED
Enabled: 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).


ERROR_FAILED_EXEC

public static final int ERROR_FAILED_EXEC
Enabled: SWT error constant indicating that an exception happened when executing a runnable (value is 46).


ERROR_FAILED_LOAD_LIBRARY

public static final int ERROR_FAILED_LOAD_LIBRARY
Enabled: SWT error constant indicating that an unsatisfied link error occured while attempting to load a library (value is 47).


TRAVERSE_NONE

public static final int TRAVERSE_NONE
Enabled: Traversal event detail field value indicating that no traversal action should be taken (value is 0).


TRAVERSE_ESCAPE

public static final int TRAVERSE_ESCAPE
Enabled: 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).


TRAVERSE_RETURN

public static final int TRAVERSE_RETURN
Enabled: 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).


TRAVERSE_TAB_PREVIOUS

public static final int TRAVERSE_TAB_PREVIOUS
Enabled: 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).


TRAVERSE_TAB_NEXT

public static final int TRAVERSE_TAB_NEXT
Enabled: 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).


TRAVERSE_ARROW_PREVIOUS

public static final int TRAVERSE_ARROW_PREVIOUS
Enabled: 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).


TRAVERSE_ARROW_NEXT

public static final int TRAVERSE_ARROW_NEXT
Enabled: 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).


TRAVERSE_MNEMONIC

public static final int TRAVERSE_MNEMONIC
Enabled: Traversal event detail field value indicating that a mnemonic key sequence was pressed (value is 1<<7).


TRAVERSE_PAGE_PREVIOUS

public static final int TRAVERSE_PAGE_PREVIOUS
Enabled: 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).


TRAVERSE_PAGE_NEXT

public static final int TRAVERSE_PAGE_NEXT
Enabled: 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).


BITMAP

public static final int BITMAP
Enabled: Constant indicating that an image or operation is of type bitmap (value is 0).


ICON

public static final int ICON
Enabled: Constant indicating that an image or operation is of type icon (value is 1).


IMAGE_COPY

public static final int IMAGE_COPY
Enabled: The Image constructor argument indicating that the new image should be a copy of the image provided as an argument (value is 0).


IMAGE_DISABLE

public static final int IMAGE_DISABLE
Enabled: The Image constructor argument indicating that the new image should have the appearance of a "disabled" (using the platform's rules for how this should look) copy of the image provided as an argument (value is 1).


IMAGE_GRAY

public static final int IMAGE_GRAY
Enabled: The Image constructor argument indicating that the new image should have the appearance of a "gray scaled" copy of the image provided as an argument (value is 2).


NORMAL

public static final int NORMAL
Enabled: The font style constant indicating a normal weight, non-italic font (value is 0).


BOLD

public static final int BOLD
Enabled: The font style constant indicating a bold weight font (value is 1<<0).


ITALIC

public static final int ITALIC
Enabled: The font style constant indicating an italic font (value is 1<<1).


CURSOR_ARROW

public static final int CURSOR_ARROW
Enabled: System arrow cursor (value is 0).


CURSOR_WAIT

public static final int CURSOR_WAIT
Enabled: System wait cursor (value is 1).


CURSOR_CROSS

public static final int CURSOR_CROSS
Enabled: System cross hair cursor (value is 2).


CURSOR_APPSTARTING

public static final int CURSOR_APPSTARTING
Enabled: System app startup cursor (value is 3).


CURSOR_HELP

public static final int CURSOR_HELP
Enabled: System help cursor (value is 4).


CURSOR_SIZEALL

public static final int CURSOR_SIZEALL
Enabled: System resize all directions cursor (value is 5).


CURSOR_SIZENESW

public static final int CURSOR_SIZENESW
Enabled: System resize north-east-south-west cursor (value is 6).


CURSOR_SIZENS

public static final int CURSOR_SIZENS
Enabled: System resize north-south cursor (value is 7).


CURSOR_SIZENWSE

public static final int CURSOR_SIZENWSE
Enabled: System resize north-west-south-east cursor (value is 8).


CURSOR_SIZEWE

public static final int CURSOR_SIZEWE
Enabled: System resize west-east cursor (value is 9).


CURSOR_SIZEN

public static final int CURSOR_SIZEN
Enabled: System resize north cursor (value is 10).


CURSOR_SIZES

public static final int CURSOR_SIZES
Enabled: System resize south cursor (value is 11).


CURSOR_SIZEE

public static final int CURSOR_SIZEE
Enabled: System resize east cursor (value is 12).


CURSOR_SIZEW

public static final int CURSOR_SIZEW
Enabled: System resize west cursor (value is 13).


CURSOR_SIZENE

public static final int CURSOR_SIZENE
Enabled: System resize north-east cursor (value is 14).


CURSOR_SIZESE

public static final int CURSOR_SIZESE
Enabled: System resize south-east cursor (value is 15).


CURSOR_SIZESW

public static final int CURSOR_SIZESW
Enabled: System resize south-west cursor (value is 16).


CURSOR_SIZENW

public static final int CURSOR_SIZENW
Enabled: System resize north-west cursor (value is 17).


CURSOR_UPARROW

public static final int CURSOR_UPARROW
Enabled: System up arrow cursor (value is 18).


CURSOR_IBEAM

public static final int CURSOR_IBEAM
Enabled: System i-beam cursor (value is 19).


CURSOR_NO

public static final int CURSOR_NO
Enabled: System "not allowed" cursor (value is 20).


CURSOR_HAND

public static final int CURSOR_HAND
Enabled: System hand cursor (value is 21).


LINE_SOLID

public static final int LINE_SOLID
Enabled: Line drawing style for solid lines (value is 1).


LINE_DASH

public static final int LINE_DASH
Enabled: Line drawing style for dashed lines (value is 2).


LINE_DOT

public static final int LINE_DOT
Enabled: Line drawing style for dotted lines (value is 3).


LINE_DASHDOT

public static final int LINE_DASHDOT
Enabled: Line drawing style for alternating dash-dot lines (value is 4).


LINE_DASHDOTDOT

public static final int LINE_DASHDOTDOT
Enabled: Line drawing style for dash-dot-dot lines (value is 5).


IMAGE_UNDEFINED

public static final int IMAGE_UNDEFINED
Enabled: Image format constant indicating an unknown image type (value is -1).


IMAGE_BMP

public static final int IMAGE_BMP
Enabled: Image format constant indicating a Windows BMP format image (value is 0).


IMAGE_BMP_RLE

public static final int IMAGE_BMP_RLE
Enabled: Image format constant indicating a run-length encoded Windows BMP format image (value is 1).


IMAGE_GIF

public static final int IMAGE_GIF
Enabled: Image format constant indicating a GIF format image (value is 2).


IMAGE_ICO

public static final int IMAGE_ICO
Enabled: Image format constant indicating a ICO format image (value is 3).


IMAGE_JPEG

public static final int IMAGE_JPEG
Enabled: Image format constant indicating a JPEG format image (value is 4).


IMAGE_PNG

public static final int IMAGE_PNG
Enabled: Image format constant indicating a PNG format image (value is 5).


DM_UNSPECIFIED

public static final int DM_UNSPECIFIED
Enabled: GIF image disposal method constants indicating that the disposal method is unspecified (value is 0).


DM_FILL_NONE

public static final int DM_FILL_NONE
Enabled: 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).


DM_FILL_BACKGROUND

public static final int DM_FILL_BACKGROUND
Enabled: 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).


DM_FILL_PREVIOUS

public static final int DM_FILL_PREVIOUS
Enabled: GIF image disposal method constants indicating that the disposal method is to restore the previous picture (value is 3).


TRANSPARENCY_NONE

public static final int TRANSPARENCY_NONE
Enabled: Image transparency constant indicating that the image contains no transparency information (value is 0).


TRANSPARENCY_ALPHA

public static final int TRANSPARENCY_ALPHA
Enabled: Image transparency constant indicating that the image contains alpha transparency information (value is 1<<0).


TRANSPARENCY_MASK

public static final int TRANSPARENCY_MASK
Enabled: Image transparency constant indicating that the image contains a transparency mask (value is 1<<1).


TRANSPARENCY_PIXEL

public static final int TRANSPARENCY_PIXEL
Enabled: Image transparency constant indicating that the image contains a transparent pixel (value is 1<<2).

Constructor Detail

SWT

public SWT()
Suppressed:

Method Detail

findErrorText

static String findErrorText(int code)
Answers a concise, human readable description of the error code.

Parameters:
code - the SWT error code.
Returns:
a description of the error code.
See Also:
SWT

getMessage

public static String getMessage(String key)
Suppressed: Returns the NLS'ed message for the given argument.

Parameters:
key - the key to look up
Returns:
the message for the given key

getPlatform

public static String getPlatform()
Suppressed: Returns the SWT platform name. Examples: "win32", "motif", "gtk", "photon", "carbon"

Returns:
the SWT platform name

getVersion

public static int getVersion()
Suppressed: Returns the SWT version number as an integer. Example: "SWT051" == 51

Returns:
the SWT version number

error

public static void error(int code)
Suppressed: Throws an appropriate exception based on the passed in error code.

Parameters:
code - the SWT error code

error

public static void error(int code,
                         Throwable throwable)
Suppressed: Throws an appropriate exception based on the passed in error code. The 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:

java.lang.IllegalArgumentException
thrown whenever one of the API methods is invoked with an illegal argument
org.eclipse.swt.SWTException (extends java.lang.RuntimeException)
thrown whenever a recoverable error happens internally in SWT
org.eclipse.swt.SWTError (extends java.lang.Error)
thrown whenever a non-recoverable error happens internally in SWT
This method provides the logic which maps between error codes and one of the above exceptions.

Parameters:
code - the SWT error code.
throwable - the exception which caused the error to occur.
See Also:
SWTError, SWTException, IllegalArgumentException


comments?