Class SWT

java.lang.Object
org.eclipse.swt.SWT
Direct Known Subclasses:
OLE

public class SWT extends Object
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.

See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The MessageBox style constant for an ABORT button; the only valid combination is ABORT|RETRY|IGNORE (value is 1<<9).
    static final int
    The activate event type (value is 26).
    static final int
    A constant indicating that a given operation should be performed on all widgets (value is 1<<0).
    static final int
    Input Method Editor style constant for alpha input behavior (value is 1<<2).
    static final int
    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 final int
    Keyboard and/or mouse event mask indicating that the ALT_GR key was pushed on the keyboard when the event was generated (value is 1 << 15).
    static final int
    Style constant for application modal behavior (value is 1<<16).
    static final int
    The arm event type (value is 30).
    static final int
    Style constant for arrow button behavior (value is 1<<2).
    static final int
    Keyboard event constant representing the DOWN ARROW key (value is (1<<24)+2).
    static final int
    Keyboard event constant representing the LEFT ARROW key (value is (1<<24)+3).
    static final int
    Keyboard event constant representing the RIGHT ARROW key (value is (1<<24)+4).
    static final int
    Keyboard event constant representing the UP ARROW key (value is (1<<24)+1).
    static final int
    A bit mask to indicate Bidi "auto" text direction.
    static final int
    Event detail field that indicates a user-interface component draws the background (value is 1<<3).
    static final int
    Style constant for balloon behavior (value is 1<<12).
    static final int
    Style constant for menu bar behavior (value is 1<<1).
    static final int
    Style constant for alignment or orientation behavior (value is 1).
    static final int
    Constant indicating that an image or operation is of type bitmap (value is 0).
    static final int
    The font style constant indicating a bold weight font (value is 1<<0).
    static final int
    Style constant for bordered behavior (value is 1<<11).
    static final int
    Style constant to indicate dashed border (value is 2).
    static final int
    Style constant to indicate dotted border (value is 4).
    static final int
    Style constant to indicate solid border (value is 1).
    static final int
    Style constant for align bottom behavior (value is 1<<10, since align DOWN and align BOTTOM are considered the same).
    static final int
    Keyboard event constant representing the break key (value is (1<<24)+86).
    static final char
    ASCII character convenience constant for the backspace character (value is the char '\b').
    static final int
    Keyboard and/or mouse event mask indicating all possible mouse buttons.
    static final int
    Keyboard and/or mouse event mask indicating that mouse button one (usually 'left') was pushed when the event was generated.
    static final int
    Keyboard and/or mouse event mask indicating that mouse button two (usually 'middle') was pushed when the event was generated.
    static final int
    Keyboard and/or mouse event mask indicating that mouse button three (usually 'right') was pushed when the event was generated.
    static final int
    Keyboard and/or mouse event mask indicating that mouse button four was pushed when the event was generated.
    static final int
    Keyboard and/or mouse event mask indicating that mouse button five was pushed when the event was generated.
    static final int
    Style constant for calendar display (value is 1<<10).
    static final int
    Style constant for displaying week numbers in the calendar.
    static final int
    The MessageBox style constant for a CANCEL button; valid combinations are OK|CANCEL, YES|NO|CANCEL, RETRY|CANCEL (value is 1<<8).
    static final int
    Line drawing style for flat end caps (value is 1).
    static final int
    Line drawing style for rounded end caps (value is 2).
    static final int
    Line drawing style for square end caps (value is 3).
    static final int
    Keyboard event constant representing the caps lock key (value is (1<<24)+82).
    static final int
    Style constant for cascade behavior (value is 1<<6).
    static final int
    Style constant for align center behavior (value is 1<<24).
    static final int
    A constant indicating that widgets have changed.
    static final int
    Style constant for check box behavior (value is 1<<5).
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Support for Chromium was limited to ancient and full of CVEs version of Chromium.
    static final int
    Style constant indicating that the window manager should clip a widget's children with respect to its viewable area.
    static final int
    Style constant indicating that the window manager should clip a widget's siblings with respect to its viewable area.
    static final int
    The close event type (value is 21).
    static final int
    Style constant for close box trim (value is 1<<6, since we do not distinguish between CLOSE style and MENU style).
    static final int
    The collapse event type (value is 18).
    static final int
    Default color black (value is 2).
    static final int
    Default color blue (value is 9).
    static final int
    Default color cyan (value is 13).
    static final int
    Default color dark blue (value is 10).
    static final int
    Default color dark cyan (value is 14).
    static final int
    Default color dark gray (value is 16).
    static final int
    Default color dark green (value is 6).
    static final int
    Default color dark magenta (value is 12).
    static final int
    Default color dark red (value is 4).
    static final int
    Default color dark yellow (value is 8).
    static final int
    Default color gray (value is 15).
    static final int
    Default color green (value is 5).
    static final int
    System color used to paint tooltip background areas (value is 29).
    static final int
    System color used to paint tooltip text (value is 28).
    static final int
    System color used to paint link text (value is 36).
    static final int
    System color used to paint list background areas (value is 25).
    static final int
    System color used to paint list foreground areas (value is 24).
    static final int
    System color used to paint list selection background areas (value is 26).
    static final int
    System color used to paint list selected text (value is 27).
    static final int
    Default color magenta (value is 11).
    static final int
    Default color red (value is 3).
    static final int
    System color used to paint disabled text background areas (value is 38).
    static final int
    System color used to paint title background areas (value is 31).
    static final int
    System color used to paint title background gradient (value is 32).
    static final int
    System color used to paint title text (value is 30).
    static final int
    System color used to paint inactive title background areas (value is 34).
    static final int
    System color used to paint inactive title background gradient (value is 35).
    static final int
    System color used to paint inactive title text (value is 33).
    static final int
    System color used to paint with alpha 0 (value is 37).
    static final int
    Default color white (value is 1).
    static final int
    System color used to paint background areas (value is 22).
    static final int
    System color used to paint border areas (value is 23).
    static final int
    System color used to paint dark shadow areas (value is 17).
    static final int
    System color used to paint disabled foreground areas (value is 39).
    static final int
    System color used to paint foreground areas (value is 21).
    static final int
    System color used to paint highlight shadow areas (value is 20).
    static final int
    System color used to paint light shadow areas (value is 19).
    static final int
    System color used to paint normal shadow areas (value is 18).
    static final int
    Default color yellow (value is 7).
    static final int
    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 final int
    The IME composition event detail that indicates a change in the IME composition.
    static final int
    The IME composition event detail that indicates that the IME needs the offset for a given location.
    static final int
    The IME composition event detail that indicates that IME needs the selected text and its start and end offsets (value is 3).
    static final int
    Keyboard and/or mouse event mask indicating that the CTRL key was pushed on the keyboard when the event was generated.
    static final char
    ASCII character convenience constant for the carriage return character (value is the char '\r').
    static final int
    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 final int
    System app startup cursor (value is 3).
    static final int
    System arrow cursor (value is 0).
    static final int
    System cross hair cursor (value is 2).
    static final int
    System hand cursor (value is 21).
    static final int
    System help cursor (value is 4).
    static final int
    System i-beam cursor (value is 19).
    static final int
    System "not allowed" cursor (value is 20).
    static final int
    System resize all directions cursor (value is 5).
    static final int
    System resize east cursor (value is 12).
    static final int
    System resize north cursor (value is 10).
    static final int
    System resize north-east cursor (value is 14).
    static final int
    System resize north-east-south-west cursor (value is 6).
    static final int
    System resize north-south cursor (value is 7).
    static final int
    System resize north-west cursor (value is 17).
    static final int
    System resize north-west-south-east cursor (value is 8).
    static final int
    System resize south cursor (value is 11).
    static final int
    System resize south-east cursor (value is 15).
    static final int
    System resize south-west cursor (value is 16).
    static final int
    System resize west cursor (value is 13).
    static final int
    System resize west-east cursor (value is 9).
    static final int
    System up arrow cursor (value is 18).
    static final int
    System wait cursor (value is 1).
    static final int
    Style constant for date display (value is 1<<5).
    static final int
    Input Method Editor style constant for double byte input behavior (value is 1<<1).
    static final int
    The deactivate event type (value is 27).
    static final int
    Indicates that a default should be used (value is -1).
    static final int
    The default selection event type (value is 14).
    static final int
    A constant indicating that a given operation should be deferred.
    static final int
    The de-iconify event type (value is 20).
    static final char
    ASCII character convenience constant for the delete character (value is the char with value 127).
    static final int
    Selection constant indicating that a line delimiter should be drawn (value is 1<<17).
    static final int
    Trim style convenience constant for the most common dialog shell appearance (value is CLOSE|TITLE|BORDER).
    static final int
    The dispose event type (value is 12).

    Note: This event is sent to indicate the beginning of the disposing process.
    static final int
    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 final int
    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 final int
    GIF image disposal method constants indicating that the disposal method is to restore the previous picture (value is 3).
    static final int
    GIF image disposal method constants indicating that the disposal method is unspecified (value is 0).
    static final int
    Style constant to indicate double buffering (value is 1<<29).
    static final int
    Style constant for align down behavior (value is 1<<10, since align DOWN and align BOTTOM are considered the same).
    static final int
    Indicates that a user-interface component is being dragged, for example dragging the thumb of a scroll bar (value is 1).
    static final int
    The drag detect event type (value is 29).
    static final int
    Draw constant indicating whether the string drawing operation should handle line-delimiters (value is 1<<1).
    static final int
    Draw constant indicating whether the string drawing operation should handle mnemonics (value is 1<<3).
    static final int
    Draw constant indicating whether the string drawing operation should expand TAB characters (value is 1<<2).
    static final int
    Draw constant indicating whether the drawing operation should fill the background (value is 1<<0).
    static final int
    Style constant for drop down menu/list behavior (value is 1<<2).
    static final int
    Style constant specifying that a Browser should use Edge (WebView2) for rendering its content (value is 1<<18).
    static final int
    Style constant to allow embedding (value is 1<<24).
    static final int
    The SWT emptiness change event type (value is 56).
    static final int
    Keyboard event constant representing the END key (value is (1<<24)+8).
    static final int
    The erase item event type (value is 40).
    static final int
    Constant to indicate an error state (value is 1).
    static final int
    SWT error constant indicating that a value which can not be zero was found to be (value is 7).
    static final int
    SWT error constant indicating that the underlying operating system was unable to provide count information (value is 36).
    static final int
    SWT error constant indicating that the underlying operating system was unable to provide enabled/disabled state information (value is 31).
    static final int
    SWT error constant indicating that the underlying operating system was unable to provide the value of an item (value is 8).
    static final int
    SWT error constant indicating that the underlying operating system was unable to provide the height of an item (value is 11).
    static final int
    SWT error constant indicating that the underlying operating system was unable to provide the selection (value is 9).
    static final int
    SWT error constant indicating that the underlying operating system was unable to provide the text of a widget (value is 12).
    static final int
    SWT error constant indicating that the matrix is not invertible (value is 10).
    static final int
    SWT error constant indicating that the underlying operating system was unable to set the enabled state (value is 30).
    static final int
    SWT error constant indicating that the underlying operating system was unable to set the menu (value is 29).
    static final int
    SWT error constant indicating that the underlying operating system was unable to set the selection of a widget (value is 28).
    static final int
    SWT error constant indicating that the underlying operating system was unable to set the text of a widget (value is 13).
    static final int
    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 final int
    SWT error constant indicating that an exception happened when evaluating a javascript expression (value is 50).
    static final int
    SWT error constant indicating that an exception happened when executing a runnable (value is 46).
    static final int
    SWT error constant indicating that an unsatisfied link error occurred while attempting to load a library (value is 47).
    static final int
    SWT error constant indicating that an attempt was made to use an BrowserFunction object which had already been disposed (value is 49).
    static final int
    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 final int
    SWT error constant indicating that an invalid argument was passed in (value is 5).
    static final int
    SWT error constant indicating that a font is not valid (value is 48).
    static final int
    SWT error constant indicating that a graphics operation was attempted with an image having an invalid format (value is 40).
    static final int
    SWT error constant indicating that a provided widget can not be used as a parent in the current operation (value is 32).
    static final int
    SWT error constant indicating that a value was found to be outside the allowable range (value is 6).
    static final int
    SWT error constant indicating that an invalid value was returned (value is 51).
    static final int
    SWT error constant indicating that an attempt was made to subclass an SWT widget class without implementing the checkSubclass() method (value is 43).
    static final int
    SWT error constant indicating that an input/output operation failed during the execution of an SWT operation (value is 39).
    static final int
    SWT error constant indicating that the underlying operating system was unable to add an item (value is 14).
    static final int
    SWT error constant indicating that the underlying operating system was unable to remove an item (value is 15).
    static final int
    SWT error constant indicating that a menu which needed to have the menu bar style had some other style instead (value is 33).
    static final int
    SWT error constant indicating that a menu which needed to have the drop down style had some other style instead (value is 21).
    static final int
    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 final int
    SWT error constant indicating that a menu item which needed to have the cascade style had some other style instead (value is 27).
    static final int
    SWT error constant indicating that the graphics library is not available (value is 16).
    static final int
    SWT error constant indicating that no more handles for an operating system resource are available (value is 2).
    static final int
    SWT error constant indicating that no more callback resources are available (value is 3).
    static final int
    SWT error constant indicating that a particular feature has not been implemented on this platform (value is 20).
    static final int
    SWT error constant indicating that a null argument was passed in (value is 4).
    static final int
    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 final int
    SWT error constant indicating that no error number was specified (value is 1).
    static final int
    SWT error constant indicating that a graphics operation was attempted with an image of an unsupported depth (value is 38).
    static final int
    SWT error constant indicating that a graphics operation was attempted with an image having a valid but unsupported format (value is 42).
    static final int
    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 final char
    ASCII character convenience constant for the escape character (value is the char with value 27).
    static final int
    The expand event type (value is 17).
    static final int
    Keyboard event constant representing the F1 key (value is (1<<24)+10).
    static final int
    Keyboard event constant representing the F10 key (value is (1<<24)+19).
    static final int
    Keyboard event constant representing the F11 key (value is (1<<24)+20).
    static final int
    Keyboard event constant representing the F12 key (value is (1<<24)+21).
    static final int
    Keyboard event constant representing the F13 key (value is (1<<24)+22).
    static final int
    Keyboard event constant representing the F14 key (value is (1<<24)+23).
    static final int
    Keyboard event constant representing the F15 key (value is (1<<24)+24).
    static final int
    Keyboard event constant representing the F16 key (value is (1<<25)+25).
    static final int
    Keyboard event constant representing the F17 key (value is (1<<26)+26).
    static final int
    Keyboard event constant representing the F18 key (value is (1<<27)+27).
    static final int
    Keyboard event constant representing the F19 key (value is (1<<28)+28).
    static final int
    Keyboard event constant representing the F2 key (value is (1<<24)+11).
    static final int
    Keyboard event constant representing the F20 key (value is (1<<29)+29).
    static final int
    Keyboard event constant representing the F3 key (value is (1<<24)+12).
    static final int
    Keyboard event constant representing the F4 key (value is (1<<24)+13).
    static final int
    Keyboard event constant representing the F5 key (value is (1<<24)+14).
    static final int
    Keyboard event constant representing the F6 key (value is (1<<24)+15).
    static final int
    Keyboard event constant representing the F7 key (value is (1<<24)+16).
    static final int
    Keyboard event constant representing the F8 key (value is (1<<24)+17).
    static final int
    Keyboard event constant representing the F9 key (value is (1<<24)+18).
    static final int
    Style constant for alignment or orientation behavior (value is 4).
    static final int
    Even odd rule for filling operations (value is 1).
    static final int
    Winding rule for filling operations (value is 2).
    static final int
    Style constant for flat appearance.
    static final int
    Style constant to indicate base text direction (value is 1<<31).
    static final int
    Event detail field that indicates a user-interface component state is focused (value is 1<<2).
    static final int
    The focus in event type (value is 15).
    static final int
    The focus out event type (value is 16).
    static final int
    Event detail field that indicates a user-interface component draws the foreground (value is 1<<4).
    static final int
    Style constant for full row selection behavior and selection constant indicating that a full line should be drawn.
    static final int
    The gesture event type (value is 48).
    static final int
    Gesture event detail field value indicating that a continuous gesture is about to begin.
    static final int
    Gesture event detail field value indicating that a continuous gesture has ended.
    static final int
    Gesture event detail field value indicating that a magnification gesture has happened.
    static final int
    Gesture event detail field value indicating that a panning (two-finger scroll) gesture has happened.
    static final int
    Gesture event detail field value indicating that a rotation gesture has happened.
    static final int
    Gesture event detail field value indicating that a swipe gesture has happened.
    static final int
    Style constant for horizontal scrollbar behavior (value is 1<<8).
    static final int
    The hardware key down event type (value is 33).
    static final int
    The hardware key up event type (value is 34).
    static final int
    The help event type (value is 28).
    static final int
    Keyboard event constant representing the help key (value is (1<<24)+81).
    static final int
    The hide event type (value is 23).
    static final int
    Style constant for selection hiding behavior when the widget loses focus (value is 1<<15).
    static final int
    Indicates high quality (value is 2).
    static final int
    Keyboard event constant representing the HOME key (value is (1<<24)+7).
    static final int
    Style constant for horizontal alignment or orientation behavior (value is 1<<8).
    static final int
    Event detail field that indicates a user-interface component state is hot (value is 1<<5).
    static final int
    Constant indicating that an image or operation is of type icon (value is 1).
    static final int
    The style constant for "cancel" icon.
    static final int
    The MessageBox style constant for error icon behavior (value is 1).
    static final int
    The MessageBox style constant for information icon behavior (value is 1<<1).
    static final int
    The MessageBox style constant for question icon behavior (value is 1<<2).
    static final int
    The style constant for "search" icon.
    static final int
    The MessageBox style constant for warning icon behavior (value is 1<<3).
    static final int
    The MessageBox style constant for "working" icon behavior (value is 1<<4).
    static final int
    The iconify event type (value is 19).
    static final int
    ID for the About menu item (value is -1).
    static final int
    ID for the Hide menu item (value is -3).
    static final int
    ID for the Hide Others menu item (value is -4).
    static final int
    ID for the Preferences menu item (value is -2).
    static final int
    ID for the Quit menu item (value is -6).
    static final int
    ID for the Show All menu item (value is -5).
    static final int
    The MessageBox style constant for an IGNORE button; the only valid combination is ABORT|RETRY|IGNORE (value is 1<<11).
    static final int
    Image format constant indicating a Windows BMP format image (value is 0).
    static final int
    Image format constant indicating a run-length encoded Windows BMP format image (value is 1).
    static final int
    The Image constructor argument indicating that the new image should be a copy of the image provided as an argument (value is 0).
    static final int
    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 final int
    Image format constant indicating a GIF format image (value is 2).
    static final int
    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 final int
    Image format constant indicating a ICO format image (value is 3).
    static final int
    Image format constant indicating a JPEG format image (value is 4).
    static final int
    Image format constant indicating an OS/2 BMP format image (value is 7).
    static final int
    Image format constant indicating a PNG format image (value is 5).
    static final int
    Image format constant indicating a SVG format image (value is 8).
    static final int
    Image format constant indicating a TIFF format image (value is 6).
    static final int
    Image format constant indicating an unknown image type (value is -1).
    static final int
    The IME composition event type (value is 43).
    static final int
    Style constant for progress bar behavior (value is 1<<1).
    static final int
    The Composite constant to indicate that an attribute (such as background) is inherited by children who choose this value as their "default" (value is 1).
    static final int
    The Composite constant to indicate that an attribute (such as background) is inherited by all children.
    static final int
    The Composite constant to indicate that an attribute (such as background) is not inherited by the children (value is 0).
    static final int
    Keyboard event constant representing the INSERT key (value is (1<<24)+9).
    static final int
    The font style constant indicating an italic font (value is 1<<1).
    static final int
    Line drawing style for bevel joins (value is 3).
    static final int
    Line drawing style for miter joins (value is 1).
    static final int
    Line drawing style for rounded joins (value is 2).
    static final int
    Accelerator constant used to extract the key stroke portion of an accelerator.
    static final int
    Accelerator constant used to differentiate a key code from a unicode character.
    static final int
    The key down event type (value is 1).
    static final int
    Keyboard event constant representing the keypad location.
    static final int
    Keyboard event constant representing the numeric key pad zero key (value is (1<<24)+48).
    static final int
    Keyboard event constant representing the numeric key pad one key (value is (1<<24)+49).
    static final int
    Keyboard event constant representing the numeric key pad two key (value is (1<<24)+50).
    static final int
    Keyboard event constant representing the numeric key pad three key (value is (1<<24)+51).
    static final int
    Keyboard event constant representing the numeric key pad four key (value is (1<<24)+52).
    static final int
    Keyboard event constant representing the numeric key pad five key (value is (1<<24)+53).
    static final int
    Keyboard event constant representing the numeric key pad six key (value is (1<<24)+54).
    static final int
    Keyboard event constant representing the numeric key pad seven key (value is (1<<24)+55).
    static final int
    Keyboard event constant representing the numeric key pad eight key (value is (1<<24)+56).
    static final int
    Keyboard event constant representing the numeric key pad nine key (value is (1<<24)+57).
    static final int
    Keyboard event constant representing the numeric key pad add key (value is (1<<24)+43).
    static final int
    Keyboard event constant representing the numeric key pad enter key (value is (1<<24)+80).
    static final int
    Keyboard event constant representing the numeric key pad decimal key (value is (1<<24)+46).
    static final int
    Keyboard event constant representing the numeric key pad divide key (value is (1<<24)+47).
    static final int
    Keyboard event constant representing the numeric key pad equal key (value is (1<<24)+61).
    static final int
    Keyboard event constant representing the numeric key pad multiply key (value is (1<<24)+42).
    static final int
    Keyboard event constant representing the numeric key pad subtract key (value is (1<<24)+45).
    static final int
    The key up event type (value is 2).
    static final int
    Selection constant indicating that the last line is selected to the end and should be drawn using either a line delimiter or full line selection (value is 1<<20).
    static final int
    Style constant for leading alignment (value is 1<<14).
    static final int
    Style constant for align left behavior (value is 1<<14).
    static final int
    Style constant for left to right orientation (value is 1<<25).
    static final char
    ASCII character convenience constant for the line feed character (value is the char '\n').
    static final int
    Line drawing style for custom dashed lines (value is 6).
    static final int
    Line drawing style for dashed lines (value is 2).
    static final int
    Line drawing style for alternating dash-dot lines (value is 4).
    static final int
    Line drawing style for dash-dot-dot lines (value is 5).
    static final int
    Line drawing style for dotted lines (value is 3).
    static final int
    Line drawing style for solid lines (value is 1).
    static final int
    Style constant for long date/time format (value is 1<<28).
    static final int
    Indicates low quality (value is 1).
    static final int
    Style constant for maximize box trim (value is 1<<10).
    static final int
    The measure item event type (value is 41).
    static final int
    Style constant for medium date/time format (value is 1<<16).
    static final int
    Style constant for shell menu trim (value is 1<<6, since we do not distinguish between CLOSE style and MENU style).
    static final int
    MenuDetect event detail value indicating that a context menu was requested by a keyboard or other focus-based device (value is 1).
    static final int
    MenuDetect event detail value indicating that a context menu was requested by a mouse or other pointing device (value is 0).
    static final int
    The menu detect event type (value is 35).
    static final int
    Style constant for minimize box trim (value is 1<<7).
    static final int
    Style constant to indicate coordinate mirroring (value is 1<<27).
    static final int
    Keyboard and/or mouse event mask indicating that the MOD1 key was pushed on the keyboard when the event was generated.
    static final int
    Keyboard and/or mouse event mask indicating that the MOD2 key was pushed on the keyboard when the event was generated.
    static final int
    Keyboard and/or mouse event mask indicating that the MOD3 key was pushed on the keyboard when the event was generated.
    static final int
    Keyboard and/or mouse event mask indicating that the MOD4 key was pushed on the keyboard when the event was generated.
    static final int
    Style constant for modeless behavior (value is 0).
    static final int
    Keyboard and/or mouse event mask indicating all possible keyboard modifiers.
    static final int
    The modify event type (value is 24).
    static final int
    The mouse double click event type (value is 8).
    static final int
    The mouse down event type (value is 3).
    static final int
    The mouse enter event type (value is 6).
    static final int
    The mouse exit event type (value is 7).
    static final int
    The mouse horizontal wheel event type (value is 38).
    static final int
    The mouse hover event type (value is 32).
    static final int
    The mouse move event type (value is 5).
    static final int
    The mouse up event type (value is 4).
    static final int
    The mouse vertical wheel event type (value is 37).
    static final int
    The mouse wheel event type (value is 37).
    static final int
    The move event type (value is 10).
    static final int
    The character movement type (value is 1<<0).
    static final int
    The cluster movement type (value is 1<<1).
    static final int
    The word movement type (value is 1<<2).
    static final int
    The word end movement type (value is 1<<3).
    static final int
    The word start movement type (value is 1<<4).
    static final int
    Deprecated.
    This style is deprecated and will be removed in the future.
    static final int
    Style constant for multi-selection behavior in lists and multiple line support on text fields (value is 1<<1).
    static final int
    Input Method Editor style constant for native input behavior (value is 1<<3).
    static final int
    The MessageBox style constant for NO button; valid combinations are YES|NO, YES|NO|CANCEL (value is 1<<7).
    static final int
    Style constant for no background behavior (value is 1<<18).
    static final int
    Style constant for no focus from the mouse behavior (value is 1<<19).
    static final int
    Style constant for no paint event merging behavior (value is 1<<21).
    static final int
    Style constant for the no move behavior (value is 1<<23).
    static final int
    Style constant for preventing child radio group behavior (value is 1<<22).
    static final int
    Style constant for no redraw on resize behavior (value is 1<<20).
    static final int
    Style constant for no scrollbar behavior (value is 1<<4).
    static final int
    Style constant to ensure no trimmings are used (value is 1<<3).
    static final int
    The null event type (value is 0).
    static final int
    A constant known to be zero (0), typically used in operations which take bit flags to indicate that "no bits are set".
    static final int
    The font style constant indicating a normal weight, non-italic font (value is 0).
    static final int
    A constant known to be zero (0), used in operations which take pointers to indicate a null argument.
    static final int
    Keyboard event constant representing the num lock key (value is (1<<24)+83).
    static final int
    Indicates that a property is off (value is 0).
    static final int
    The MessageBox style constant for an OK button; valid combinations are OK, OK|CANCEL (value is 1<<5).
    static final int
    Indicates that a property is on (value is 1).
    static final int
    Style constant for always on top behavior (value is 1<<14).
    static final int
    The FileDialog style constant for open file dialog behavior (value is 1<<12).
    static final int
    The open document event type (value is 46).
    static final int
    The open URL event type (value is 54).
    static final int
    The orientation change event type (value is 44).
    static final int
    Keyboard event constant representing the PAGE DOWN key (value is (1<<24)+6).
    static final int
    Keyboard event constant representing the PAGE UP key (value is (1<<24)+5).
    static final int
    The paint event type (value is 9).
    static final int
    The paint item event type (value is 42).
    static final int
    Style constant for password behavior (value is 1<<22).
    static final int
    Path constant that represents a "close" operation (value is 5).
    static final int
    Path constant that represents a "cubic curve to" operation (value is 4).
    static final int
    Path constant that represents a "line to" operation (value is 2).
    static final int
    Path constant that represents a "move to" operation (value is 1).
    static final int
    Path constant that represents a "quadratic curve to" operation (value is 3).
    static final int
    Keyboard event constant representing the pause key (value is (1<<24)+85).
    static final int
    Constant to a indicate a paused state (value is 4).
    static final int
    Input Method Editor style constant for phonetic input behavior (value is 1<<4).
    static final int
    Style constant for pop up menu behavior (value is 1<<3).
    static final int
    The PostEvent event type (value is 51).
    static final int
    The PostExternalEventDispatch event type (value is 53).
    static final int
    The PreEvent event type (value is 50).
    static final int
    The PreExternalEventDispatch event type (value is 52).
    static final int
    Style constant for primary modal behavior (value is 1<<15).
    static final int
    Keyboard event constant representing the print screen key (value is (1<<24)+87).
    static final int
    Style constant for push button behavior (value is 1<<3).
    static final int
    Style constant for radio button behavior (value is 1<<4).
    static final int
    Style constant for read-only behavior (value is 1<<3).
    static final int
    The resize event type (value is 11).
    static final int
    Style constant for resize box trim (value is 1<<4).
    static final int
    The MessageBox style constant for a RETRY button; valid combinations are ABORT|RETRY|IGNORE, RETRY|CANCEL (value is 1<<10).
    static final int
    Style constant for align right behavior (value is 1<<17).
    static final int
    Style constant for right to left orientation (value is 1<<26).
    static final int
    Input Method Editor style constant for romanicized input behavior (value is 1<<5).
    static final int
    The FileDialog style constant for save file dialog behavior (value is 1<<13).
    static final int
    Constants to indicate line scrolling (value is 1).
    static final int
    Keyboard event constant representing the scroll lock key (value is (1<<24)+84).
    static final int
    Constants to indicate page scrolling (value is 2).
    static final int
    The Scrollable constant to indicate that the receiver is using overlay scrollbars.
    static final int
    Style constant for search behavior (value is 1<<7).
    static final int
    The segments event type (value is 49).
    static final int
    Event detail field that indicates a user-interface component state is selected (value is 1<<1).
    static final int
    The selection event type (value is 13).
    static final int
    Style constant for line separator behavior (value is 1<<1).
    static final int
    Constant representing a flexible space separator in a ToolBar.
    static final int
    The set data event type (value is 36).
    static final int
    The settings changed event type (value is 39).
    static final int
    Style constant for shadow etched in behavior (value is 1<<4).
    static final int
    Style constant for shadow etched out behavior (value is 1<<6).
    static final int
    Style constant for shadow in behavior (value is 1<<2).
    static final int
    Style constant for no shadow behavior (value is 1<<5).
    static final int
    Style constant for shadow out behavior (value is 1<<3).
    static final int
    Style constant for sheet window behavior (value is 1<<28).
    static final int
    Trim style convenience constant for the most common top level shell appearance (value is CLOSE|TITLE|MIN|MAX|RESIZE).
    static final int
    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 final int
    Style constant for short date/time format (value is 1<<15).
    static final int
    The show event type (value is 22).
    static final int
    Style constant for simple (not drop down) behavior (value is 1<<6).
    static final int
    Style constant for single selection behavior in lists and single line support on text fields (value is 1<<2).
    static final int
    The skin event type (value is 45).
    static final String
    Key name for setting and getting the skin class of a widget.
    static final String
    Key name for setting and getting the skin id of a widget.
    static final int
    Deprecated.
    The same as PreExternalEventDispatch (value is 52).
    static final int
    Style constant for smooth appearance.
    static final char
    ASCII character convenience constant for the space character (value is the char ' ').
    static final int
    Style constant for system modal behavior (value is 1<<17).
    static final char
    ASCII character convenience constant for the tab character (value is the char '\t').
    static final int
    Style constant for time display (value is 1<<7).
    static final int
    Style constant for title area trim (value is 1<<5).
    static final int
    Style constant for toggle button behavior (value is 1<<1).
    static final int
    Style constant for tool window behavior (value is 1<<2).
    static final int
    Style constant for align top behavior (value is 1<<7, since align UP and align TOP are considered the same).
    static final int
    The touch event type (value is 47).
    static final int
    A constant indicating that a finger touched the device.
    static final int
    A constant indicating that a finger moved on the device.
    static final int
    A constant indicating that a finger was lifted from the device.
    static final int
    Style constant for trailing alignment (value is 1<<17).
    static final int
    Image transparency constant indicating that the image contains alpha transparency information (value is 1<<0).
    static final int
    Image transparency constant indicating that the image contains a transparency mask (value is 1<<1).
    static final int
    Image transparency constant indicating that the image contains no transparency information (value is 0).
    static final int
    Image transparency constant indicating that the image contains a transparent pixel (value is 1<<2).
    static final int
    Style constant for transparent behavior (value is 1<<30).
    static final int
    The traverse event type (value is 31).
    static final int
    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 final int
    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 final int
    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 final int
    Traversal event detail field value indicating that a mnemonic key sequence was pressed (value is 1<<7).
    static final int
    Traversal event detail field value indicating that no traversal action should be taken (value is 0).
    static final int
    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 final int
    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 final int
    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 final int
    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 final int
    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 final int
    Style constant to indicate double underline (value is 1).
    static final int
    Style constant to indicate error underline (value is 2).
    static final int
    Style constant to indicate link underline (value is 0).
    static final int
    Style constant to indicate single underline (value is 0).
    static final int
    Style constant to indicate squiggle underline (value is 3).
    static final int
    Style constant for align up behavior (value is 1<<7, since align UP and align TOP are considered the same).
    static final int
    Style constant for vertical scrollbar behavior (value is 1<<9).
    static final int
    The verify event type (value is 25).
    static final int
    Style constant for vertical alignment or orientation behavior (value is 1<<9).
    static final int
    Style constant to allow virtual data (value is 1<<28).
    static final int
    Deprecated.
    The same as PostExternalEventDispatch (value is 53).
    static final int
    Style constant specifying that a Browser should use WebKit for rendering its content (value is 1<<16).
    static final int
    Style constant for automatic line wrap behavior (value is 1<<6).
    static final int
    The MessageBox style constant for YES button; valid combinations are YES|NO, YES|NO|CANCEL (value is 1<<6).
    static final int
    The SWT zoom change event type (value is 55).
  • Constructor Summary

    Constructors
    Constructor
    Description
    SWT()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    error(int code)
    Throws an appropriate exception based on the passed in error code.
    static void
    error(int code, Throwable throwable)
    Throws an appropriate exception based on the passed in error code.
    static void
    error(int code, Throwable throwable, String detail)
    Throws an appropriate exception based on the passed in error code.
    static String
    Returns the NLS'ed message for the given argument.
    static String
    getMessage(String key, Object[] args)
    Returns the NLS'ed message for the given arguments.
    static String
    Returns the SWT platform name.
    static int
    Returns the SWT version number as an integer.
    static boolean
    Returns a boolean indicating whether this SWT implementation can be loaded.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait