Class SWT
- Direct Known Subclasses:
OLE
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
Modifier and TypeFieldDescriptionstatic final int
TheMessageBox
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 thechar
'\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
TheMessageBox
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 thechar
'\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 thechar
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 thecheckSubclass()
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 thechar
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
TheMessageBox
style constant for error icon behavior (value is 1).static final int
TheMessageBox
style constant for information icon behavior (value is 1<<1).static final int
TheMessageBox
style constant for question icon behavior (value is 1<<2).static final int
The style constant for "search" icon.static final int
TheMessageBox
style constant for warning icon behavior (value is 1<<3).static final int
TheMessageBox
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
TheMessageBox
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
TheImage
constructor argument indicating that the new image should be a copy of the image provided as an argument (value is 0).static final int
TheImage
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
TheImage
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
TheComposite
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
TheComposite
constant to indicate that an attribute (such as background) is inherited by all children.static final int
TheComposite
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 thechar
'\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
TheMessageBox
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
TheMessageBox
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
TheFileDialog
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
TheMessageBox
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
TheFileDialog
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
TheScrollable
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 thechar
' ').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 thechar
'\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
TheMessageBox
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
error
(int code) Throws an appropriate exception based on the passed in error code.static void
Throws an appropriate exception based on the passed in error code.static void
Throws an appropriate exception based on the passed in error code.static String
getMessage
(String key) 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.
-
Field Details
-
None
public static final int NoneThe null event type (value is 0).- Since:
- 3.0
- See Also:
-
KeyDown
public static final int KeyDownThe key down event type (value is 1).Note:
- Event.keyCode: the constant of the pressed key, even if it is just a modifier (Shift, Ctrl, ...)
- Event.character: the character that the key press created (or 0 if none)
- Event.keyLocation: either SWT.NONE, SWT.LEFT/.RIGHT (e.g. for Shift key) or SWT.KEYPAD
- Event.stateMask: an or-combined bit mask of the modifiers (SWT.BUTTON_MASK, SWT.SHIFT, SWT.CTRL, SWT.CMD, SWT.ALT, SWT.MOD1, SWT.MOD2, SWT.MOD3)
- See Also:
-
Widget.addListener(int, org.eclipse.swt.widgets.Listener)
Display.addFilter(int, org.eclipse.swt.widgets.Listener)
Event
Control.addKeyListener(org.eclipse.swt.events.KeyListener)
Tracker.addKeyListener(org.eclipse.swt.events.KeyListener)
KeyListener.keyPressed(org.eclipse.swt.events.KeyEvent)
KeyEvent
- Constant Field Values
-
KeyUp
public static final int KeyUpThe key up event type (value is 2).- See Also:
-
Widget.addListener(int, org.eclipse.swt.widgets.Listener)
Display.addFilter(int, org.eclipse.swt.widgets.Listener)
Event
Control.addKeyListener(org.eclipse.swt.events.KeyListener)
Tracker.addKeyListener(org.eclipse.swt.events.KeyListener)
KeyListener.keyReleased(org.eclipse.swt.events.KeyEvent)
KeyEvent
- Constant Field Values
-
MouseDown
public static final int MouseDownThe mouse down event type (value is 3).Note:
- Event.button: either 1, 2 or 3 for the mouse button that was pressed
- Event.x, Event.y: the cursor position relative to the control (event.widget)
- Event.stateMask: an or-combined bit mask of the modifiers (SWT.BUTTON_MASK)
-
MouseUp
public static final int MouseUpThe mouse up event type (value is 4). -
MouseMove
public static final int MouseMoveThe mouse move event type (value is 5). -
MouseEnter
public static final int MouseEnterThe mouse enter event type (value is 6).Note: This event is received when the user enters a control's bounds with the mouse cursor.
- See Also:
-
MouseExit
public static final int MouseExitThe mouse exit event type (value is 7).Note: This event is received when the user exits a control's bounds with the mouse cursor. This is not 100% reliable and if you want to have it 100% reliable, use control.setCapture(true).
- See Also:
-
Control.setCapture(boolean)
Widget.addListener(int, org.eclipse.swt.widgets.Listener)
Display.addFilter(int, org.eclipse.swt.widgets.Listener)
Event
Control.addMouseTrackListener(org.eclipse.swt.events.MouseTrackListener)
MouseTrackListener.mouseExit(org.eclipse.swt.events.MouseEvent)
MouseEvent
- Constant Field Values
-
MouseDoubleClick
public static final int MouseDoubleClickThe mouse double click event type (value is 8). -
Paint
public static final int PaintThe paint event type (value is 9).Note:
- Event.gc: the graphic context used for drawing.
- Event.x, Event.y, Event.width, Event.height: the area that needs to be painted
-
Move
public static final int MoveThe move event type (value is 10).- See Also:
-
Widget.addListener(int, org.eclipse.swt.widgets.Listener)
Display.addFilter(int, org.eclipse.swt.widgets.Listener)
Event
Control.addControlListener(org.eclipse.swt.events.ControlListener)
TableColumn.addControlListener(org.eclipse.swt.events.ControlListener)
Tracker.addControlListener(org.eclipse.swt.events.ControlListener)
TreeColumn.addControlListener(org.eclipse.swt.events.ControlListener)
ControlListener.controlMoved(org.eclipse.swt.events.ControlEvent)
ControlEvent
- Constant Field Values
-
Resize
public static final int ResizeThe resize event type (value is 11).- See Also:
-
Widget.addListener(int, org.eclipse.swt.widgets.Listener)
Display.addFilter(int, org.eclipse.swt.widgets.Listener)
Event
Control.addControlListener(org.eclipse.swt.events.ControlListener)
TableColumn.addControlListener(org.eclipse.swt.events.ControlListener)
Tracker.addControlListener(org.eclipse.swt.events.ControlListener)
TreeColumn.addControlListener(org.eclipse.swt.events.ControlListener)
ControlListener.controlResized(org.eclipse.swt.events.ControlEvent)
ControlEvent
- Constant Field Values
-
Dispose
public static final int DisposeThe dispose event type (value is 12).
Note: This event is sent to indicate the beginning of the disposing process. For aComposite
this event is sent before it is sent to its children, before any child has been disposed.Display
still runsDisplay.readAndDispatch()
after sending this event. If you want to dispose any resources, this might cause problems. UseDisplay.disposeExec(java.lang.Runnable)
instead.- See Also:
-
Widget.addListener(int, org.eclipse.swt.widgets.Listener)
Display.addListener(int, org.eclipse.swt.widgets.Listener)
Display.addFilter(int, org.eclipse.swt.widgets.Listener)
Display.disposeExec(java.lang.Runnable)
Event
Widget.addDisposeListener(org.eclipse.swt.events.DisposeListener)
DisposeListener.widgetDisposed(org.eclipse.swt.events.DisposeEvent)
DisposeEvent
- Constant Field Values
-
Selection
public static final int SelectionThe selection event type (value is 13).- See Also:
-
Widget.addListener(int, org.eclipse.swt.widgets.Listener)
Display.addFilter(int, org.eclipse.swt.widgets.Listener)
Event
Button.addSelectionListener(org.eclipse.swt.events.SelectionListener)
Combo.addSelectionListener(org.eclipse.swt.events.SelectionListener)
CoolItem.addSelectionListener(org.eclipse.swt.events.SelectionListener)
Link.addSelectionListener(org.eclipse.swt.events.SelectionListener)
List.addSelectionListener(org.eclipse.swt.events.SelectionListener)
MenuItem.addSelectionListener(org.eclipse.swt.events.SelectionListener)
Sash.addSelectionListener(org.eclipse.swt.events.SelectionListener)
Scale.addSelectionListener(org.eclipse.swt.events.SelectionListener)
ScrollBar.addSelectionListener(org.eclipse.swt.events.SelectionListener)
Slider.addSelectionListener(org.eclipse.swt.events.SelectionListener)
TabFolder.addSelectionListener(org.eclipse.swt.events.SelectionListener)
Table.addSelectionListener(org.eclipse.swt.events.SelectionListener)
TableColumn.addSelectionListener(org.eclipse.swt.events.SelectionListener)
ToolItem.addSelectionListener(org.eclipse.swt.events.SelectionListener)
TrayItem.addSelectionListener(org.eclipse.swt.events.SelectionListener)
Tree.addSelectionListener(org.eclipse.swt.events.SelectionListener)
TreeColumn.addSelectionListener(org.eclipse.swt.events.SelectionListener)
SelectionListener.widgetSelected(org.eclipse.swt.events.SelectionEvent)
SelectionEvent
- Constant Field Values
-
DefaultSelection
public static final int DefaultSelectionThe default selection event type (value is 14).- See Also:
-
Widget.addListener(int, org.eclipse.swt.widgets.Listener)
Display.addFilter(int, org.eclipse.swt.widgets.Listener)
Event
Combo.addSelectionListener(org.eclipse.swt.events.SelectionListener)
List.addSelectionListener(org.eclipse.swt.events.SelectionListener)
Spinner.addSelectionListener(org.eclipse.swt.events.SelectionListener)
Table.addSelectionListener(org.eclipse.swt.events.SelectionListener)
Text.addSelectionListener(org.eclipse.swt.events.SelectionListener)
TrayItem.addSelectionListener(org.eclipse.swt.events.SelectionListener)
Tree.addSelectionListener(org.eclipse.swt.events.SelectionListener)
SelectionListener.widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent)
SelectionEvent
- Constant Field Values
-
FocusIn
public static final int FocusInThe focus in event type (value is 15). -
FocusOut
public static final int FocusOutThe focus out event type (value is 16). -
Expand
public static final int ExpandThe expand event type (value is 17).Note:
- Event.item: the TreeItem which gets expanded
-
Collapse
public static final int CollapseThe collapse event type (value is 18).Note:
- Event.item: the TreeItem which gets collapsed
-
Iconify
public static final int IconifyThe iconify event type (value is 19). -
Deiconify
public static final int DeiconifyThe de-iconify event type (value is 20). -
Close
public static final int CloseThe close event type (value is 21).- See Also:
-
Widget.addListener(int, org.eclipse.swt.widgets.Listener)
Display.addListener(int, org.eclipse.swt.widgets.Listener)
Display.addFilter(int, org.eclipse.swt.widgets.Listener)
Event
Shell.addShellListener(org.eclipse.swt.events.ShellListener)
ShellListener.shellClosed(org.eclipse.swt.events.ShellEvent)
ShellEvent
- Constant Field Values
-
Show
public static final int ShowThe show event type (value is 22). -
Hide
public static final int HideThe hide event type (value is 23). -
Modify
public static final int ModifyThe modify event type (value is 24).- See Also:
-
Widget.addListener(int, org.eclipse.swt.widgets.Listener)
Display.addFilter(int, org.eclipse.swt.widgets.Listener)
Event
Combo.addModifyListener(org.eclipse.swt.events.ModifyListener)
Spinner.addModifyListener(org.eclipse.swt.events.ModifyListener)
Text.addModifyListener(org.eclipse.swt.events.ModifyListener)
ModifyListener.modifyText(org.eclipse.swt.events.ModifyEvent)
ModifyEvent
- Constant Field Values
-
Verify
public static final int VerifyThe verify event type (value is 25).Note:This event is sent before the actual change happens and the listener is able to prevent the change by setting event.doit to false.
- Event.text: the new text
- Event.start: the start position where the new text is inserted/replaced
- Event.end: the end position where the new text is inserted/replaced
- Event.character/.keyCode/.stateMask: if the change is caused by a key event, these fields are taken from the key event
- See Also:
-
Widget.addListener(int, org.eclipse.swt.widgets.Listener)
Display.addFilter(int, org.eclipse.swt.widgets.Listener)
Event
CCombo.addVerifyListener(org.eclipse.swt.events.VerifyListener)
Combo.addVerifyListener(org.eclipse.swt.events.VerifyListener)
StyledText.addVerifyListener(org.eclipse.swt.events.VerifyListener)
Text.addVerifyListener(org.eclipse.swt.events.VerifyListener)
VerifyListener.verifyText(org.eclipse.swt.events.VerifyEvent)
VerifyEvent
- Constant Field Values
-
Activate
public static final int ActivateThe activate event type (value is 26). -
Deactivate
public static final int DeactivateThe deactivate event type (value is 27). -
Help
public static final int HelpThe help event type (value is 28).- See Also:
-
Widget.addListener(int, org.eclipse.swt.widgets.Listener)
Display.addFilter(int, org.eclipse.swt.widgets.Listener)
Event
Control.addHelpListener(org.eclipse.swt.events.HelpListener)
Menu.addHelpListener(org.eclipse.swt.events.HelpListener)
MenuItem.addHelpListener(org.eclipse.swt.events.HelpListener)
HelpListener.helpRequested(org.eclipse.swt.events.HelpEvent)
HelpEvent
- Constant Field Values
-
DragDetect
public static final int DragDetectThe drag detect event type (value is 29).- See Also:
-
Widget.addListener(int, org.eclipse.swt.widgets.Listener)
Display.addFilter(int, org.eclipse.swt.widgets.Listener)
Event
Control.addDragDetectListener(org.eclipse.swt.events.DragDetectListener)
DragDetectListener.dragDetected(org.eclipse.swt.events.DragDetectEvent)
DragDetectEvent
DragSource
- Constant Field Values
-
Arm
public static final int ArmThe arm event type (value is 30). -
Traverse
public static final int TraverseThe traverse event type (value is 31).Note: Event.detail: one of the SWT.TRAVERSE_* constants
- Event.stateMask: the or-combined bit masks of pressed modifiers, e.g. SWT.MOD1
- Event.doit: set to false if no default behavior should happen
- See Also:
-
MouseHover
public static final int MouseHoverThe mouse hover event type (value is 32).Note: This event is sent if the cursor stays over the same position for a short time, e.g. to show a tool-tip
- See Also:
-
HardKeyDown
public static final int HardKeyDownThe hardware key down event type (value is 33). -
HardKeyUp
public static final int HardKeyUpThe hardware key up event type (value is 34). -
MenuDetect
public static final int MenuDetectThe menu detect event type (value is 35).Note:
- Event.detail: either SWT.MENU_MOUSE or SWT.MENU_KEYBOARD
- Event.x, Event.y: cursor position in display coordinates
- Since:
- 3.0
- See Also:
-
Widget.addListener(int, org.eclipse.swt.widgets.Listener)
Display.addFilter(int, org.eclipse.swt.widgets.Listener)
Event
Control.addMenuDetectListener(org.eclipse.swt.events.MenuDetectListener)
TrayItem.addMenuDetectListener(org.eclipse.swt.events.MenuDetectListener)
MenuDetectListener.menuDetected(org.eclipse.swt.events.MenuDetectEvent)
MenuDetectEvent
- Constant Field Values
-
SetData
public static final int SetDataThe set data event type (value is 36). -
MouseVerticalWheel
public static final int MouseVerticalWheelThe mouse vertical wheel event type (value is 37). -
MouseHorizontalWheel
public static final int MouseHorizontalWheelThe mouse horizontal wheel event type (value is 38). -
MouseWheel
public static final int MouseWheelThe mouse wheel event type (value is 37). This is a synonym forMouseVerticalWheel
(value is 37). Newer applications should useMouseVerticalWheel
instead ofMouseWheel
to make code more understandable. -
Settings
public static final int SettingsThe settings changed event type (value is 39).The settings changed event is sent when an operating system property, such as a system font or color, has been changed. The event occurs after the property has been changed, but before any widget is redrawn. Applications that cache operating system properties can use this event to update their caches. A specific property change can be detected by querying the new value of a property and comparing it with the equivalent cached value. The operating system automatically redraws and lays out all widgets after this event is sent.
- Since:
- 3.2
- See Also:
-
EraseItem
public static final int EraseItemThe erase item event type (value is 40).Note:
- Event.detail: an or-combined bit mask of the current state, e.g. SWT.SELECTED, SWT.HOT
- Event.gc: the graphics context to draw or modify colors
- Event.x, Event.y, Event.width, Event.height: the cell's bounds
- Event.item: the TreeItem or TableItem
- Event.index: the column of the cell
-
MeasureItem
public static final int MeasureItemThe measure item event type (value is 41).Note:
- Event.detail: an or-combined bit mask of the current state, e.g. SWT.SELECTED, SWT.HOT
- Event.gc: the graphics context to draw or modify colors
- Event.x, Event.y, Event.width, Event.height: the cell's bounds, used as input and output
- Event.item: the TreeItem or TableItem
- Event.index: the column of the cell
-
PaintItem
public static final int PaintItemThe paint item event type (value is 42).Note:
- Event.detail: an or-combined bit mask of the current state, e.g. SWT.SELECTED, SWT.HOT
- Event.gc: the graphics context to draw or modify colors
- Event.x, Event.y, Event.width, Event.height: the cell's bounds
- Event.item: the TreeItem or TableItem
- Event.index: the column of the cell
-
ImeComposition
public static final int ImeCompositionThe IME composition event type (value is 43).The IME composition event is sent to allow custom text editors to implement in-line editing of international text.
The detail field indicates the action to be taken: -
OrientationChange
public static final int OrientationChangeThe orientation change event type (value is 44).On some platforms the orientation of text widgets can be changed by keyboard shortcut. The application can use the
doit
field of the event to stop the change from happening. -
Skin
public static final int SkinThe skin event type (value is 45).The skin event is sent by the display when a widget needs to be skinned.
-
OpenDocument
public static final int OpenDocumentThe open document event type (value is 46).This event is sent when SWT receives notification that a document should be opened.
- Since:
- 3.6
- See Also:
-
Touch
public static final int TouchThe touch event type (value is 47).This event is sent when a touch has been performed on a touch-based input source.
- Since:
- 3.7
- See Also:
-
Gesture
public static final int GestureThe gesture event type (value is 48).This event is sent when a gesture has been performed.
-
Segments
public static final int SegmentsThe segments event type (value is 49).This event is sent when text content has been changed.
-
PreEvent
public static final int PreEventThe PreEvent event type (value is 50).This event is sent before an event other than
PreExternalEventDispatch
orPostExternalEventDispatch
is dispatched.The detail field of the event contains the type of the following event.
- Since:
- 3.103
- See Also:
-
PostEvent
public static final int PostEventThe PostEvent event type (value is 51).This event is sent after an event other than
PreExternalEventDispatch
orPostExternalEventDispatch
is dispatched.The detail field of the event contains the type of the prior event.
- Since:
- 3.103
- See Also:
-
PreExternalEventDispatch
public static final int PreExternalEventDispatchThe PreExternalEventDispatch event type (value is 52).This event is sent before calling a blocking method that does its own event dispatch outside of the SWT code.
- Since:
- 3.104
- See Also:
-
PostExternalEventDispatch
public static final int PostExternalEventDispatchThe PostExternalEventDispatch event type (value is 53).This event is sent after calling a blocking method that does its own event dispatch outside of the SWT code.
- Since:
- 3.104
- See Also:
-
Sleep
Deprecated.The same as PreExternalEventDispatch (value is 52).- Since:
- 3.103
- See Also:
-
Wakeup
Deprecated.The same as PostExternalEventDispatch (value is 53).- Since:
- 3.103
- See Also:
-
OpenUrl
public static final int OpenUrlThe open URL event type (value is 54).This event is sent when SWT receives notification that a URL should be opened.
- Since:
- 3.107
- See Also:
-
ZoomChanged
public static final int ZoomChangedThe SWT zoom change event type (value is 55).This event is sent on
Shell
when the SWT zoom has changed. The SWT zoom changes when the operating system DPI or scale factor changes dynamically.Note that this is a HINT and is not sent on platforms that do not support dynamic DPI changes. This event is currently sent on Windows 10 and GTK only.
-
EmptinessChanged
public static final int EmptinessChangedThe SWT emptiness change event type (value is 56).This event is sent on
Tree
when the firstTreeItem
was added to it (with thedetail
field set to 0) or the lastTreeItem
was removed from it (with thedetail
field set to 1).- Since:
- 3.118
- See Also:
-
COMPOSITION_CHANGED
public static final int COMPOSITION_CHANGEDThe IME composition event detail that indicates a change in the IME composition. The text field of the event is the new composition text. The start and end indicate the offsets where the composition text should be inserted. The styles and ranges are stored in the IME object (value is 1).- Since:
- 3.4
- See Also:
-
COMPOSITION_OFFSET
public static final int COMPOSITION_OFFSETThe IME composition event detail that indicates that the IME needs the offset for a given location. The x and y fields of the event are used by the application to determine the offset. The index field of the event should be set to the text offset at that location. The count field should be set to indicate whether the location is closer to the leading edge (0) or the trailing edge (1) (value is 2).- Since:
- 3.4
- See Also:
-
COMPOSITION_SELECTION
public static final int COMPOSITION_SELECTIONThe IME composition event detail that indicates that IME needs the selected text and its start and end offsets (value is 3).- Since:
- 3.4
- See Also:
-
DRAG
public static final int DRAGIndicates that a user-interface component is being dragged, for example dragging the thumb of a scroll bar (value is 1).- See Also:
-
SELECTED
public static final int SELECTEDEvent detail field that indicates a user-interface component state is selected (value is 1<<1).- Since:
- 3.2
- See Also:
-
FOCUSED
public static final int FOCUSEDEvent detail field that indicates a user-interface component state is focused (value is 1<<2).- Since:
- 3.2
- See Also:
-
BACKGROUND
public static final int BACKGROUNDEvent detail field that indicates a user-interface component draws the background (value is 1<<3).- Since:
- 3.2
- See Also:
-
FOREGROUND
public static final int FOREGROUNDEvent detail field that indicates a user-interface component draws the foreground (value is 1<<4).- Since:
- 3.2
- See Also:
-
HOT
public static final int HOTEvent detail field that indicates a user-interface component state is hot (value is 1<<5).- Since:
- 3.3
- See Also:
-
TRAVERSE_NONE
public static final int TRAVERSE_NONETraversal event detail field value indicating that no traversal action should be taken (value is 0).- See Also:
-
TRAVERSE_ESCAPE
public static final int TRAVERSE_ESCAPETraversal 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).- See Also:
-
TRAVERSE_RETURN
public static final int TRAVERSE_RETURNTraversal 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).- See Also:
-
TRAVERSE_TAB_PREVIOUS
public static final int TRAVERSE_TAB_PREVIOUSTraversal 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).- See Also:
-
TRAVERSE_TAB_NEXT
public static final int TRAVERSE_TAB_NEXTTraversal 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).- See Also:
-
TRAVERSE_ARROW_PREVIOUS
public static final int TRAVERSE_ARROW_PREVIOUSTraversal 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).- See Also:
-
TRAVERSE_ARROW_NEXT
public static final int TRAVERSE_ARROW_NEXTTraversal 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).- See Also:
-
TRAVERSE_MNEMONIC
public static final int TRAVERSE_MNEMONICTraversal event detail field value indicating that a mnemonic key sequence was pressed (value is 1<<7).- See Also:
-
TRAVERSE_PAGE_PREVIOUS
public static final int TRAVERSE_PAGE_PREVIOUSTraversal 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).- See Also:
-
TRAVERSE_PAGE_NEXT
public static final int TRAVERSE_PAGE_NEXTTraversal 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).- See Also:
-
GESTURE_BEGIN
public static final int GESTURE_BEGINGesture event detail field value indicating that a continuous gesture is about to begin.- Since:
- 3.7
- See Also:
-
GESTURE_END
public static final int GESTURE_ENDGesture event detail field value indicating that a continuous gesture has ended.- Since:
- 3.7
- See Also:
-
GESTURE_ROTATE
public static final int GESTURE_ROTATEGesture event detail field value indicating that a rotation gesture has happened. Only the rotation field of the event is valid.- Since:
- 3.7
- See Also:
-
GESTURE_SWIPE
public static final int GESTURE_SWIPEGesture event detail field value indicating that a swipe gesture has happened.- Since:
- 3.7
- See Also:
-
GESTURE_MAGNIFY
public static final int GESTURE_MAGNIFYGesture event detail field value indicating that a magnification gesture has happened.- Since:
- 3.7
- See Also:
-
GESTURE_PAN
public static final int GESTURE_PANGesture event detail field value indicating that a panning (two-finger scroll) gesture has happened.- Since:
- 3.7
- See Also:
-
TOUCHSTATE_DOWN
public static final int TOUCHSTATE_DOWNA constant indicating that a finger touched the device.- Since:
- 3.7
- See Also:
-
TOUCHSTATE_MOVE
public static final int TOUCHSTATE_MOVEA constant indicating that a finger moved on the device.- Since:
- 3.7
- See Also:
-
TOUCHSTATE_UP
public static final int TOUCHSTATE_UPA constant indicating that a finger was lifted from the device.- Since:
- 3.7
- See Also:
-
MENU_MOUSE
public static final int MENU_MOUSEMenuDetect event detail value indicating that a context menu was requested by a mouse or other pointing device (value is 0).- Since:
- 3.8
- See Also:
-
MENU_KEYBOARD
public static final int MENU_KEYBOARDMenuDetect event detail value indicating that a context menu was requested by a keyboard or other focus-based device (value is 1).- Since:
- 3.8
- See Also:
-
CHANGED
public static final int CHANGEDA constant indicating that widgets have changed. (value is 1<<1).Used By:
Composite
layout
- Since:
- 3.6
- See Also:
-
DEFER
public static final int DEFERA constant indicating that a given operation should be deferred. (value is 1<<2).Used By:
Composite
layout
- Since:
- 3.6
- See Also:
-
NONE
public static final int NONEA constant known to be zero (0), typically used in operations which take bit flags to indicate that "no bits are set".- See Also:
-
NULL
public static final int NULLA constant known to be zero (0), used in operations which take pointers to indicate a null argument.- See Also:
-
DEFAULT
public static final int DEFAULTIndicates that a default should be used (value is -1).- See Also:
-
OFF
public static final int OFFIndicates that a property is off (value is 0).- Since:
- 3.1
- See Also:
-
ON
public static final int ONIndicates that a property is on (value is 1).- Since:
- 3.1
- See Also:
-
LOW
public static final int LOWIndicates low quality (value is 1).- Since:
- 3.1
- See Also:
-
HIGH
public static final int HIGHIndicates high quality (value is 2).- Since:
- 3.1
- See Also:
-
BAR
public static final int BARStyle constant for menu bar behavior (value is 1<<1).Used By:
Menu
- See Also:
-
DROP_DOWN
public static final int DROP_DOWNStyle constant for drop down menu/list behavior (value is 1<<2).Used By:
Menu
ToolItem
CoolItem
Combo
DateTime
- See Also:
-
POP_UP
public static final int POP_UPStyle constant for pop up menu behavior (value is 1<<3).Used By:
Menu
- See Also:
-
SEPARATOR
public static final int SEPARATORStyle constant for line separator behavior (value is 1<<1).Used By:
Label
MenuItem
ToolItem
- See Also:
-
SEPARATOR_FILL
public static final int SEPARATOR_FILLConstant representing a flexible space separator in a ToolBar.Used By:
ToolItem.setWidth()
- Since:
- 3.7
- See Also:
-
TOGGLE
public static final int TOGGLEStyle constant for toggle button behavior (value is 1<<1).Used By:
Button
- See Also:
-
ARROW
public static final int ARROWStyle constant for arrow button behavior (value is 1<<2).Used By:
Button
- See Also:
-
PUSH
public static final int PUSHStyle constant for push button behavior (value is 1<<3).Used By:
Button
MenuItem
ToolItem
- See Also:
-
RADIO
public static final int RADIOStyle constant for radio button behavior (value is 1<<4).Used By:
Button
MenuItem
ToolItem
- See Also:
-
CHECK
public static final int CHECKStyle constant for check box behavior (value is 1<<5).Used By:
Button
MenuItem
ToolItem
Table
Tree
- See Also:
-
CASCADE
public static final int CASCADEStyle constant for cascade behavior (value is 1<<6).Used By:
MenuItem
- See Also:
-
MULTI
public static final int MULTIStyle constant for multi-selection behavior in lists and multiple line support on text fields (value is 1<<1).Used By:
Text
List
Table
Tree
FileDialog
- See Also:
-
SINGLE
public static final int SINGLEStyle constant for single selection behavior in lists and single line support on text fields (value is 1<<2).Used By:
Text
List
Table
Tree
- See Also:
-
READ_ONLY
public static final int READ_ONLYStyle constant for read-only behavior (value is 1<<3).Used By:
Combo
Text
- See Also:
-
WRAP
public static final int WRAPStyle constant for automatic line wrap behavior (value is 1<<6).Used By:
Button
Label
Text
ToolBar
Spinner
- See Also:
-
SEARCH
public static final int SEARCHStyle constant for search behavior (value is 1<<7).Used By:
Text
- Since:
- 3.3
- See Also:
-
SIMPLE
public static final int SIMPLEStyle constant for simple (not drop down) behavior (value is 1<<6).
Note that this is a HINT.Used By:
Combo
- See Also:
-
PASSWORD
public static final int PASSWORDStyle constant for password behavior (value is 1<<22).Used By:
Text
- Since:
- 3.0
- See Also:
-
SHADOW_IN
public static final int SHADOW_INStyle constant for shadow in behavior (value is 1<<2).
Note that this is a HINT.Used By:
Label
Group
- See Also:
-
SHADOW_OUT
public static final int SHADOW_OUTStyle constant for shadow out behavior (value is 1<<3).
Note that this is a HINT.Used By:
Label
Group
ToolBar
- See Also:
-
SHADOW_ETCHED_IN
public static final int SHADOW_ETCHED_INStyle constant for shadow etched in behavior (value is 1<<4).
Note that this is a HINT. It is currently ignored on all platforms.Used By:
Group
- See Also:
-
SHADOW_ETCHED_OUT
public static final int SHADOW_ETCHED_OUTStyle constant for shadow etched out behavior (value is 1<<6).
Note that this is a HINT. It is currently ignored on all platforms.Used By:
Group
- See Also:
-
SHADOW_NONE
public static final int SHADOW_NONEStyle constant for no shadow behavior (value is 1<<5).
Note that this is a HINT.Used By:
Label
Group
- See Also:
-
INDETERMINATE
public static final int INDETERMINATEStyle constant for progress bar behavior (value is 1<<1).Used By:
ProgressBar
- See Also:
-
TOOL
public static final int TOOLStyle 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:
Decorations
and subclasses
- See Also:
-
NO_TRIM
public static final int NO_TRIMStyle constant to ensure no trimmings are used (value is 1<<3).
Note that this overrides all other trim styles.Used By:
Decorations
and subclasses
- See Also:
-
RESIZE
public static final int RESIZEStyle constant for resize box trim (value is 1<<4).Used By:
Decorations
and subclassesTracker
- See Also:
-
TITLE
public static final int TITLEStyle constant for title area trim (value is 1<<5).Used By:
Decorations
and subclasses
- See Also:
-
CLOSE
public static final int CLOSEStyle constant for close box trim (value is 1<<6, since we do not distinguish between CLOSE style and MENU style).Used By:
Decorations
and subclasses
- See Also:
-
MENU
public static final int MENUStyle constant for shell menu trim (value is 1<<6, since we do not distinguish between CLOSE style and MENU style).Used By:
Decorations
and subclasses
- See Also:
-
MIN
public static final int MINStyle constant for minimize box trim (value is 1<<7).Used By:
Decorations
and subclasses
- See Also:
-
MAX
public static final int MAXStyle constant for maximize box trim (value is 1<<10).Used By:
Decorations
and subclasses
- See Also:
-
NO_MOVE
public static final int NO_MOVEStyle constant for the no move behavior (value is 1<<23). Creates the title trim when no other trim style is specified. Doesn't create the title trim when NO_TRIM is specified.Note that this is a HINT.
Used By:
Shell
- Since:
- 3.105
- See Also:
-
H_SCROLL
public static final int H_SCROLLStyle constant for horizontal scrollbar behavior (value is 1<<8).Used By:
Scrollable
and subclasses
- See Also:
-
V_SCROLL
public static final int V_SCROLLStyle constant for vertical scrollbar behavior (value is 1<<9).Used By:
Scrollable
and subclasses
- See Also:
-
NO_SCROLL
public static final int NO_SCROLLStyle constant for no scrollbar behavior (value is 1<<4).When neither H_SCROLL or V_SCROLL are specified, controls are free to create the default scroll bars for the control. Using NO_SCROLL overrides the default and forces the control to have no scroll bars. Used By:
Tree
Table
- Since:
- 3.4
- See Also:
-
BORDER
public static final int BORDERStyle constant for bordered behavior (value is 1<<11).
Note that this is a HINT.Used By:
Control
and subclasses
- See Also:
-
CLIP_CHILDREN
public static final int CLIP_CHILDRENStyle 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:
Control
and subclasses
- See Also:
-
CLIP_SIBLINGS
public static final int CLIP_SIBLINGSStyle 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:
Control
and subclasses
- See Also:
-
ON_TOP
public static final int ON_TOPStyle constant for always on top behavior (value is 1<<14).
Note that this is a HINT.Used By:
Shell
and subclasses
- See Also:
-
SHEET
public static final int SHEETStyle constant for sheet window behavior (value is 1<<28).A sheet window is a window intended to be used as a temporary modal dialog that is attached to a parent window. It is typically used to prompt the user before proceeding. The window trim, positioning and general look of a sheet window is platform specific. For example, on the Macintosh, at the time this documentation was written, the window title is not visible.
Note that this is a HINT.Used By:
Dialog
and subclassesShell
and subclasses
- Since:
- 3.5
- See Also:
-
SHELL_TRIM
public static final int SHELL_TRIMTrim style convenience constant for the most common top level shell appearance (value is CLOSE|TITLE|MIN|MAX|RESIZE).Used By:
Shell
- See Also:
-
DIALOG_TRIM
public static final int DIALOG_TRIMTrim style convenience constant for the most common dialog shell appearance (value is CLOSE|TITLE|BORDER).Used By:
Shell
- See Also:
-
MODELESS
public static final int MODELESSStyle constant for modeless behavior (value is 0).
Note that this is a HINT.Used By:
Dialog
Shell
- See Also:
-
PRIMARY_MODAL
public static final int PRIMARY_MODALStyle constant for primary modal behavior (value is 1<<15).
Note that this is a HINT.Used By:
Dialog
Shell
- See Also:
-
APPLICATION_MODAL
public static final int APPLICATION_MODALStyle constant for application modal behavior (value is 1<<16).
Note that this is a HINT.Used By:
Dialog
Shell
- See Also:
-
SYSTEM_MODAL
public static final int SYSTEM_MODALStyle constant for system modal behavior (value is 1<<17).
Note that this is a HINT.Used By:
Dialog
Shell
- See Also:
-
HIDE_SELECTION
public static final int HIDE_SELECTIONStyle constant for selection hiding behavior when the widget loses focus (value is 1<<15).
Note that this is a HINT.Used By:
Table
- See Also:
-
FULL_SELECTION
public static final int FULL_SELECTIONStyle constant for full row selection behavior and selection constant indicating that a full line should be drawn. (value is 1<<16).
Note that for some widgets this is a HINT.Used By:
Table
Tree
StyledText
TextLayout
- See Also:
-
FLAT
public static final int FLATStyle constant for flat appearance. (value is 1<<23).
Note that this is a HINT.Used By:
Button
ToolBar
- See Also:
-
SMOOTH
public static final int SMOOTHStyle constant for smooth appearance. (value is 1<<16).
Note that this is a HINT.Used By:
ProgressBar
Sash
- See Also:
-
NO_BACKGROUND
public static final int NO_BACKGROUNDStyle constant for no background behavior (value is 1<<18).By default, before a widget paints, the client area is filled with the current background. When this style is specified, the background is not filled, and the application is responsible for filling every pixel of the client area. This style might be used as an alternative to "double-buffering" in order to reduce flicker. This style does not mean "transparent" - widgets that are obscured will not draw through.
Used By:
Composite
- See Also:
-
NO_FOCUS
public static final int NO_FOCUSStyle constant for no focus from the mouse behavior (value is 1<<19).Normally, when the user clicks on a control, focus is assigned to that control, providing the control has no children. Some controls, such as tool bars and sashes, don't normally take focus when the mouse is clicked or accept focus when assigned from within the program. This style allows Composites to implement "no focus" mouse behavior.
Note that this is a HINT.Used By:
Composite
- See Also:
-
NO_REDRAW_RESIZE
public static final int NO_REDRAW_RESIZEStyle 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.
Note that this is a HINT.Used By:
Composite
- See Also:
-
NO_MERGE_PAINTS
public static final int NO_MERGE_PAINTSStyle constant for no paint event merging behavior (value is 1<<21).
Note that this is a HINT.Used By:
Composite
- See Also:
-
NO_RADIO_GROUP
public static final int NO_RADIO_GROUPStyle constant for preventing child radio group behavior (value is 1<<22).Used By:
Composite
Menu
- See Also:
-
LEFT_TO_RIGHT
public static final int LEFT_TO_RIGHTStyle 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.
Note that this is a HINT.Used By:
Control
Menu
GC
- Since:
- 2.1.2
- See Also:
-
RIGHT_TO_LEFT
public static final int RIGHT_TO_LEFTStyle 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.
Note that this is a HINT.Used By:
Control
Menu
GC
- Since:
- 2.1.2
- See Also:
-
MIRRORED
public static final int MIRROREDStyle constant to indicate coordinate mirroring (value is 1<<27).Used By:
Control
Menu
- Since:
- 2.1.2
- See Also:
-
EMBEDDED
public static final int EMBEDDEDStyle constant to allow embedding (value is 1<<24).Used By:
Composite
- Since:
- 3.0
- See Also:
-
VIRTUAL
public static final int VIRTUALStyle constant to allow virtual data (value is 1<<28).Used By:
Table
Tree
- Since:
- 3.0
- See Also:
-
DOUBLE_BUFFERED
public static final int DOUBLE_BUFFEREDStyle constant to indicate double buffering (value is 1<<29).Used By:
Control
- Since:
- 3.1
- See Also:
-
TRANSPARENT
public static final int TRANSPARENTStyle constant for transparent behavior (value is 1<<30).By default, before a widget paints, the client area is filled with the current background. When this style is specified, the background is not filled and widgets that are obscured will draw through.
Used By:
Composite
- Since:
- 3.4 WARNING: THIS API IS UNDER CONSTRUCTION AND SHOULD NOT BE USED
- See Also:
-
FLIP_TEXT_DIRECTION
public static final int FLIP_TEXT_DIRECTIONStyle constant to indicate base text direction (value is 1<<31).When the bit is set, text direction mismatches the widget orientation.
Note that this is a HINT.Used By:
Control
- Since:
- 3.102
- See Also:
-
AUTO_TEXT_DIRECTION
public static final int AUTO_TEXT_DIRECTIONA bit mask to indicate Bidi "auto" text direction.When the bit is set, text direction is derived from the direction of the first strong Bidi character.
Note that this is a HINT and it works on Windows only.Used By:
Control
TextLayout
- Since:
- 3.105
- See Also:
-
UP
public static final int UPStyle constant for align up behavior (value is 1<<7, since align UP and align TOP are considered the same).Used By:
Button
withARROW
styleTracker
Table
Tree
- See Also:
-
UNDERLINE_SINGLE
public static final int UNDERLINE_SINGLEStyle constant to indicate single underline (value is 0).Used By:
TextStyle
- Since:
- 3.4
- See Also:
-
UNDERLINE_DOUBLE
public static final int UNDERLINE_DOUBLEStyle constant to indicate double underline (value is 1).Used By:
TextStyle
- Since:
- 3.4
- See Also:
-
UNDERLINE_ERROR
public static final int UNDERLINE_ERRORStyle constant to indicate error underline (value is 2).Used By:
TextStyle
- Since:
- 3.4
- See Also:
-
UNDERLINE_SQUIGGLE
public static final int UNDERLINE_SQUIGGLEStyle constant to indicate squiggle underline (value is 3).Used By:
TextStyle
- Since:
- 3.4
- See Also:
-
UNDERLINE_LINK
public static final int UNDERLINE_LINKStyle constant to indicate link underline (value is 0).If the text color or the underline color are not set in the range the usage of
UNDERLINE_LINK
will change these colors to the preferred link color of the platform.
Note that clients that use this style, such asStyledText
, will include code to track the mouse and change the cursor to the hand cursor when mouse is over the link.Used By:
TextStyle
- Since:
- 3.5
- See Also:
-
BORDER_SOLID
public static final int BORDER_SOLIDStyle constant to indicate solid border (value is 1).Used By:
TextStyle
- Since:
- 3.4
- See Also:
-
BORDER_DASH
public static final int BORDER_DASHStyle constant to indicate dashed border (value is 2).Used By:
TextStyle
- Since:
- 3.4
- See Also:
-
BORDER_DOT
public static final int BORDER_DOTStyle constant to indicate dotted border (value is 4).Used By:
TextStyle
- Since:
- 3.4
- See Also:
-
TOP
public static final int TOPStyle constant for align top behavior (value is 1<<7, since align UP and align TOP are considered the same).Used By:
FormAttachment
in aFormLayout
BoderData
in aBoderLayout
- See Also:
-
DOWN
public static final int DOWNStyle constant for align down behavior (value is 1<<10, since align DOWN and align BOTTOM are considered the same).Used By:
Button
withARROW
styleTracker
Table
Tree
- See Also:
-
BOTTOM
public static final int BOTTOMStyle constant for align bottom behavior (value is 1<<10, since align DOWN and align BOTTOM are considered the same).Used By:
FormAttachment
in aFormLayout
TabFolder
BoderData
in aBoderLayout
- See Also:
-
LEAD
public static final int LEADStyle constant for leading alignment (value is 1<<14).Used By:
Button
Label
Text
TableColumn
TreeColumn
Tracker
FormAttachment
in aFormLayout
- Since:
- 2.1.2
- See Also:
-
LEFT
public static final int LEFTStyle constant for align left behavior (value is 1<<14). This is a synonym forLEAD
(value is 1<<14). Newer applications should useLEAD
instead ofLEFT
to make code more understandable on right-to-left platforms.This constant can also be used to representing the left keyboard location during a key event.
Used By:
BoderData
in aBoderLayout
- See Also:
-
TRAIL
public static final int TRAILStyle constant for trailing alignment (value is 1<<17).Used By:
Button
Label
Text
TableColumn
TreeColumn
Tracker
FormAttachment
in aFormLayout
- Since:
- 2.1.2
- See Also:
-
RIGHT
public static final int RIGHTStyle constant for align right behavior (value is 1<<17). This is a synonym forTRAIL
(value is 1<<17). Newer applications should useTRAIL
instead ofRIGHT
to make code more understandable on right-to-left platforms.This constant can also be used to representing the right keyboard location during a key event.
Used By:
BoderData
in aBoderLayout
- See Also:
-
CENTER
public static final int CENTERStyle constant for align center behavior (value is 1<<24).Used By:
Button
Label
TableColumn
FormAttachment
in aFormLayout
BoderData
in aBoderLayout
- See Also:
-
HORIZONTAL
public static final int HORIZONTALStyle constant for horizontal alignment or orientation behavior (value is 1<<8).Used By:
Label
ProgressBar
Sash
Scale
ScrollBar
Slider
ToolBar
FillLayout
typeRowLayout
type
- See Also:
-
VERTICAL
public static final int VERTICALStyle constant for vertical alignment or orientation behavior (value is 1<<9).Used By:
Label
ProgressBar
Sash
Scale
ScrollBar
Slider
ToolBar
CoolBar
FillLayout
typeRowLayout
type
- See Also:
-
DATE
public static final int DATEStyle constant for date display (value is 1<<5).Used By:
DateTime
- Since:
- 3.3
- See Also:
-
TIME
public static final int TIMEStyle constant for time display (value is 1<<7).Used By:
DateTime
- Since:
- 3.3
- See Also:
-
CALENDAR
public static final int CALENDARStyle constant for calendar display (value is 1<<10).Used By:
DateTime
- Since:
- 3.3
- See Also:
-
CALENDAR_WEEKNUMBERS
public static final int CALENDAR_WEEKNUMBERSStyle constant for displaying week numbers in the calendar.
Note that this is a HINT and is supported on Windows & GTK platforms only.Used By:
DateTime
- Since:
- 3.108
- See Also:
-
SHORT
public static final int SHORTStyle constant for short date/time format (value is 1<<15).A short date displays the month and year. A short time displays hours and minutes.
Note that this is a HINT.Used By:
DateTime
- Since:
- 3.3
- See Also:
-
MEDIUM
public static final int MEDIUMStyle constant for medium date/time format (value is 1<<16).A medium date displays the day, month and year. A medium time displays hours, minutes, and seconds.
Note that this is a HINT.Used By:
DateTime
- Since:
- 3.3
- See Also:
-
LONG
public static final int LONGStyle constant for long date/time format (value is 1<<28).A long date displays the day, month and year. A long time displays hours, minutes, and seconds. The day and month names may be displayed.
Note that this is a HINT.Used By:
DateTime
- Since:
- 3.3
- See Also:
-
MOZILLA
Deprecated.This style is deprecated and will be removed in the future. XULRunner as a browser renderer is no longer supported. UseSWT.WEBKIT
orSWT.NONE
instead.Style constant specifying that a Browser should use a Mozilla GRE for rendering its content (value is 1<<15).Used By:
Browser
- Since:
- 3.3
- See Also:
-
WEBKIT
public static final int WEBKITStyle constant specifying that a Browser should use WebKit for rendering its content (value is 1<<16).Used By:
Browser
- Since:
- 3.7
- See Also:
-
CHROMIUM
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. See bug report for detailsStyle constant specifying that a Browser should use Chromium Embedded Framework for rendering its content (value is 1<<17).Note: No longer supported and ignored.
Used By:
Browser
- Since:
- 3.115
- See Also:
-
EDGE
public static final int EDGEStyle constant specifying that a Browser should use Edge (WebView2) for rendering its content (value is 1<<18).NOTE: Edge integration is experimental, it isn't a drop-in replacement for Internet Explorer.
Used By:
Browser
- Since:
- 3.116
- See Also:
-
BALLOON
public static final int BALLOONStyle constant for balloon behavior (value is 1<<12).Used By:
ToolTip
- Since:
- 3.2
- See Also:
-
BEGINNING
public static final int BEGINNINGStyle constant for alignment or orientation behavior (value is 1).Used By:
GridLayout
type
- See Also:
-
FILL
public static final int FILLStyle constant for alignment or orientation behavior (value is 4).Used By:
GridLayout
type
- See Also:
-
DBCS
public static final int DBCSInput Method Editor style constant for double byte input behavior (value is 1<<1).- See Also:
-
ALPHA
public static final int ALPHAInput Method Editor style constant for alpha input behavior (value is 1<<2).- See Also:
-
NATIVE
public static final int NATIVEInput Method Editor style constant for native input behavior (value is 1<<3).- See Also:
-
PHONETIC
public static final int PHONETICInput Method Editor style constant for phonetic input behavior (value is 1<<4).- See Also:
-
ROMAN
public static final int ROMANInput Method Editor style constant for romanicized input behavior (value is 1<<5).- See Also:
-
BS
public static final char BSASCII character convenience constant for the backspace character (value is thechar
'\b').- See Also:
-
CR
public static final char CRASCII character convenience constant for the carriage return character (value is thechar
'\r').- See Also:
-
DEL
public static final char DELASCII character convenience constant for the delete character (value is thechar
with value 127).- See Also:
-
ESC
public static final char ESCASCII character convenience constant for the escape character (value is thechar
with value 27).- See Also:
-
LF
public static final char LFASCII character convenience constant for the line feed character (value is thechar
'\n').- See Also:
-
TAB
public static final char TABASCII character convenience constant for the tab character (value is thechar
'\t').- Since:
- 2.1
- See Also:
-
SPACE
public static final char SPACEASCII character convenience constant for the space character (value is thechar
' ').- Since:
- 3.7
- See Also:
-
ALT_GR
public static final int ALT_GRKeyboard 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).- Since:
- 3.108
- See Also:
-
ALT
public static final int ALTkeyboard and/or mouse event mask indicating that the ALT key was pushed on the keyboard when the event was generated (value is 1<<16).- See Also:
-
SHIFT
public static final int SHIFTKeyboard and/or mouse event mask indicating that the SHIFT key was pushed on the keyboard when the event was generated (value is 1<<17).- See Also:
-
CTRL
public static final int CTRLKeyboard and/or mouse event mask indicating that the CTRL key was pushed on the keyboard when the event was generated (value is 1<<18).- See Also:
-
CONTROL
public static final int CONTROLKeyboard 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).- See Also:
-
COMMAND
public static final int COMMANDKeyboard 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
- See Also:
-
MODIFIER_MASK
public static final int MODIFIER_MASKKeyboard 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 modifier 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 BUTTON1Keyboard and/or mouse event mask indicating that mouse button one (usually 'left') was pushed when the event was generated. (value is 1<<19).- See Also:
-
BUTTON2
public static final int BUTTON2Keyboard and/or mouse event mask indicating that mouse button two (usually 'middle') was pushed when the event was generated. (value is 1<<20).- See Also:
-
BUTTON3
public static final int BUTTON3Keyboard and/or mouse event mask indicating that mouse button three (usually 'right') was pushed when the event was generated. (value is 1<<21).- See Also:
-
BUTTON4
public static final int BUTTON4Keyboard and/or mouse event mask indicating that mouse button four was pushed when the event was generated. (value is 1<<23).- Since:
- 3.1
- See Also:
-
BUTTON5
public static final int BUTTON5Keyboard and/or mouse event mask indicating that mouse button five was pushed when the event was generated. (value is 1<<25).- Since:
- 3.1
- See Also:
-
BUTTON_MASK
public static final int BUTTON_MASKKeyboard 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 MOD1Keyboard 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 MOD2Keyboard 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.SHIFT
on most platforms.- Since:
- 2.1
-
MOD3
public static final int MOD3Keyboard and/or mouse event mask indicating that the MOD3 key was pushed on the keyboard when the event was generated.ALT
on most platforms.- Since:
- 2.1
-
MOD4
public static final int MOD4Keyboard and/or mouse event mask indicating that the MOD4 key was pushed on the keyboard when the event was generated.Undefined on most platforms (
CTRL
on the Mac).- Since:
- 2.1
-
SCROLL_LINE
public static final int SCROLL_LINEConstants to indicate line scrolling (value is 1).Used By:
Control
- Since:
- 3.1
- See Also:
-
SCROLL_PAGE
public static final int SCROLL_PAGEConstants to indicate page scrolling (value is 2).Used By:
Control
- Since:
- 3.1
- See Also:
-
KEYCODE_BIT
public static final int KEYCODE_BITAccelerator 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
- See Also:
-
KEY_MASK
public static final int KEY_MASKAccelerator 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 codeKEYCODE_BIT
will be set.- Since:
- 2.1
- See Also:
-
ARROW_UP
public static final int ARROW_UPKeyboard event constant representing the UP ARROW key (value is (1<<24)+1).- See Also:
-
ARROW_DOWN
public static final int ARROW_DOWNKeyboard event constant representing the DOWN ARROW key (value is (1<<24)+2).- See Also:
-
ARROW_LEFT
public static final int ARROW_LEFTKeyboard event constant representing the LEFT ARROW key (value is (1<<24)+3).- See Also:
-
ARROW_RIGHT
public static final int ARROW_RIGHTKeyboard event constant representing the RIGHT ARROW key (value is (1<<24)+4).- See Also:
-
PAGE_UP
public static final int PAGE_UPKeyboard event constant representing the PAGE UP key (value is (1<<24)+5).- See Also:
-
PAGE_DOWN
public static final int PAGE_DOWNKeyboard event constant representing the PAGE DOWN key (value is (1<<24)+6).- See Also:
-
HOME
public static final int HOMEKeyboard event constant representing the HOME key (value is (1<<24)+7).- See Also:
-
END
public static final int ENDKeyboard event constant representing the END key (value is (1<<24)+8).Additional this constant is used by GridLayout for alignments.
- See Also:
-
INSERT
public static final int INSERTKeyboard event constant representing the INSERT key (value is (1<<24)+9).- See Also:
-
F1
public static final int F1Keyboard event constant representing the F1 key (value is (1<<24)+10).- See Also:
-
F2
public static final int F2Keyboard event constant representing the F2 key (value is (1<<24)+11).- See Also:
-
F3
public static final int F3Keyboard event constant representing the F3 key (value is (1<<24)+12).- See Also:
-
F4
public static final int F4Keyboard event constant representing the F4 key (value is (1<<24)+13).- See Also:
-
F5
public static final int F5Keyboard event constant representing the F5 key (value is (1<<24)+14).- See Also:
-
F6
public static final int F6Keyboard event constant representing the F6 key (value is (1<<24)+15).- See Also:
-
F7
public static final int F7Keyboard event constant representing the F7 key (value is (1<<24)+16).- See Also:
-
F8
public static final int F8Keyboard event constant representing the F8 key (value is (1<<24)+17).- See Also:
-
F9
public static final int F9Keyboard event constant representing the F9 key (value is (1<<24)+18).- See Also:
-
F10
public static final int F10Keyboard event constant representing the F10 key (value is (1<<24)+19).- See Also:
-
F11
public static final int F11Keyboard event constant representing the F11 key (value is (1<<24)+20).- See Also:
-
F12
public static final int F12Keyboard event constant representing the F12 key (value is (1<<24)+21).- See Also:
-
F13
public static final int F13Keyboard event constant representing the F13 key (value is (1<<24)+22).- Since:
- 3.0
- See Also:
-
F14
public static final int F14Keyboard event constant representing the F14 key (value is (1<<24)+23).- Since:
- 3.0
- See Also:
-
F15
public static final int F15Keyboard event constant representing the F15 key (value is (1<<24)+24).- Since:
- 3.0
- See Also:
-
F16
public static final int F16Keyboard event constant representing the F16 key (value is (1<<25)+25).- Since:
- 3.6
- See Also:
-
F17
public static final int F17Keyboard event constant representing the F17 key (value is (1<<26)+26).- Since:
- 3.6
- See Also:
-
F18
public static final int F18Keyboard event constant representing the F18 key (value is (1<<27)+27).- Since:
- 3.6
- See Also:
-
F19
public static final int F19Keyboard event constant representing the F19 key (value is (1<<28)+28).- Since:
- 3.6
- See Also:
-
F20
public static final int F20Keyboard event constant representing the F20 key (value is (1<<29)+29).- Since:
- 3.6
- See Also:
-
KEYPAD
public static final int KEYPADKeyboard event constant representing the keypad location. (value is 1<<1).- Since:
- 3.6
- See Also:
-
KEYPAD_MULTIPLY
public static final int KEYPAD_MULTIPLYKeyboard event constant representing the numeric key pad multiply key (value is (1<<24)+42).- Since:
- 3.0
- See Also:
-
KEYPAD_ADD
public static final int KEYPAD_ADDKeyboard event constant representing the numeric key pad add key (value is (1<<24)+43).- Since:
- 3.0
- See Also:
-
KEYPAD_SUBTRACT
public static final int KEYPAD_SUBTRACTKeyboard event constant representing the numeric key pad subtract key (value is (1<<24)+45).- Since:
- 3.0
- See Also:
-
KEYPAD_DECIMAL
public static final int KEYPAD_DECIMALKeyboard event constant representing the numeric key pad decimal key (value is (1<<24)+46).- Since:
- 3.0
- See Also:
-
KEYPAD_DIVIDE
public static final int KEYPAD_DIVIDEKeyboard event constant representing the numeric key pad divide key (value is (1<<24)+47).- Since:
- 3.0
- See Also:
-
KEYPAD_0
public static final int KEYPAD_0Keyboard event constant representing the numeric key pad zero key (value is (1<<24)+48).- Since:
- 3.0
- See Also:
-
KEYPAD_1
public static final int KEYPAD_1Keyboard event constant representing the numeric key pad one key (value is (1<<24)+49).- Since:
- 3.0
- See Also:
-
KEYPAD_2
public static final int KEYPAD_2Keyboard event constant representing the numeric key pad two key (value is (1<<24)+50).- Since:
- 3.0
- See Also:
-
KEYPAD_3
public static final int KEYPAD_3Keyboard event constant representing the numeric key pad three key (value is (1<<24)+51).- Since:
- 3.0
- See Also:
-
KEYPAD_4
public static final int KEYPAD_4Keyboard event constant representing the numeric key pad four key (value is (1<<24)+52).- Since:
- 3.0
- See Also:
-
KEYPAD_5
public static final int KEYPAD_5Keyboard event constant representing the numeric key pad five key (value is (1<<24)+53).- Since:
- 3.0
- See Also:
-
KEYPAD_6
public static final int KEYPAD_6Keyboard event constant representing the numeric key pad six key (value is (1<<24)+54).- Since:
- 3.0
- See Also:
-
KEYPAD_7
public static final int KEYPAD_7Keyboard event constant representing the numeric key pad seven key (value is (1<<24)+55).- Since:
- 3.0
- See Also:
-
KEYPAD_8
public static final int KEYPAD_8Keyboard event constant representing the numeric key pad eight key (value is (1<<24)+56).- Since:
- 3.0
- See Also:
-
KEYPAD_9
public static final int KEYPAD_9Keyboard event constant representing the numeric key pad nine key (value is (1<<24)+57).- Since:
- 3.0
- See Also:
-
KEYPAD_EQUAL
public static final int KEYPAD_EQUALKeyboard event constant representing the numeric key pad equal key (value is (1<<24)+61).- Since:
- 3.0
- See Also:
-
KEYPAD_CR
public static final int KEYPAD_CRKeyboard event constant representing the numeric key pad enter key (value is (1<<24)+80).- Since:
- 3.0
- See Also:
-
HELP
public static final int HELPKeyboard event constant representing the help key (value is (1<<24)+81). NOTE: The HELP key maps to the key labeled "help", not "F1". If your keyboard does not have a HELP key, you will never see this key press. To listen for help on a control, use SWT.Help.- Since:
- 3.0
- See Also:
-
CAPS_LOCK
public static final int CAPS_LOCKKeyboard event constant representing the caps lock key (value is (1<<24)+82).- Since:
- 3.0
- See Also:
-
NUM_LOCK
public static final int NUM_LOCKKeyboard event constant representing the num lock key (value is (1<<24)+83).- Since:
- 3.0
- See Also:
-
SCROLL_LOCK
public static final int SCROLL_LOCKKeyboard event constant representing the scroll lock key (value is (1<<24)+84).- Since:
- 3.0
- See Also:
-
PAUSE
public static final int PAUSEKeyboard event constant representing the pause key (value is (1<<24)+85).- Since:
- 3.0
- See Also:
-
BREAK
public static final int BREAKKeyboard event constant representing the break key (value is (1<<24)+86).- Since:
- 3.0
- See Also:
-
PRINT_SCREEN
public static final int PRINT_SCREENKeyboard event constant representing the print screen key (value is (1<<24)+87).- Since:
- 3.0
- See Also:
-
ICON_ERROR
public static final int ICON_ERRORTheMessageBox
style constant for error icon behavior (value is 1).- See Also:
-
ICON_INFORMATION
public static final int ICON_INFORMATIONTheMessageBox
style constant for information icon behavior (value is 1<<1).- See Also:
-
ICON_QUESTION
public static final int ICON_QUESTIONTheMessageBox
style constant for question icon behavior (value is 1<<2).- See Also:
-
ICON_WARNING
public static final int ICON_WARNINGTheMessageBox
style constant for warning icon behavior (value is 1<<3).- See Also:
-
ICON_WORKING
public static final int ICON_WORKINGTheMessageBox
style constant for "working" icon behavior (value is 1<<4).- See Also:
-
ICON_SEARCH
public static final int ICON_SEARCHThe style constant for "search" icon. This style constant is used withText
in combination withSWT.SEARCH
(value is 1<<9).Used By:
Text
- Since:
- 3.5
- See Also:
-
ICON_CANCEL
public static final int ICON_CANCELThe style constant for "cancel" icon. This style constant is used withText
in combination withSWT.SEARCH
(value is 1<<8).Used By:
Text
- Since:
- 3.5
- See Also:
-
OK
public static final int OKTheMessageBox
style constant for an OK button; valid combinations are OK, OK|CANCEL (value is 1<<5).- See Also:
-
YES
public static final int YESTheMessageBox
style constant for YES button; valid combinations are YES|NO, YES|NO|CANCEL (value is 1<<6).- See Also:
-
NO
public static final int NOTheMessageBox
style constant for NO button; valid combinations are YES|NO, YES|NO|CANCEL (value is 1<<7).- See Also:
-
CANCEL
public static final int CANCELTheMessageBox
style constant for a CANCEL button; valid combinations are OK|CANCEL, YES|NO|CANCEL, RETRY|CANCEL (value is 1<<8).Used By:
MessageBox
- See Also:
-
ABORT
public static final int ABORTTheMessageBox
style constant for an ABORT button; the only valid combination is ABORT|RETRY|IGNORE (value is 1<<9).- See Also:
-
RETRY
public static final int RETRYTheMessageBox
style constant for a RETRY button; valid combinations are ABORT|RETRY|IGNORE, RETRY|CANCEL (value is 1<<10).- See Also:
-
IGNORE
public static final int IGNORETheMessageBox
style constant for an IGNORE button; the only valid combination is ABORT|RETRY|IGNORE (value is 1<<11).- See Also:
-
OPEN
public static final int OPENTheFileDialog
style constant for open file dialog behavior (value is 1<<12).- See Also:
-
SAVE
public static final int SAVETheFileDialog
style constant for save file dialog behavior (value is 1<<13).- See Also:
-
INHERIT_NONE
public static final int INHERIT_NONETheComposite
constant to indicate that an attribute (such as background) is not inherited by the children (value is 0).- Since:
- 3.2
- See Also:
-
INHERIT_DEFAULT
public static final int INHERIT_DEFAULTTheComposite
constant to indicate that an attribute (such as background) is inherited by children who choose this value as their "default" (value is 1). For example, a label child will typically choose to inherit the background color of a composite while a list or table will not.- Since:
- 3.2
- See Also:
-
INHERIT_FORCE
public static final int INHERIT_FORCETheComposite
constant to indicate that an attribute (such as background) is inherited by all children.- Since:
- 3.2
- See Also:
-
COLOR_WHITE
public static final int COLOR_WHITEDefault color white (value is 1).- See Also:
-
COLOR_BLACK
public static final int COLOR_BLACKDefault color black (value is 2).- See Also:
-
COLOR_RED
public static final int COLOR_REDDefault color red (value is 3).- See Also:
-
COLOR_DARK_RED
public static final int COLOR_DARK_REDDefault color dark red (value is 4).- See Also:
-
COLOR_GREEN
public static final int COLOR_GREENDefault color green (value is 5).- See Also:
-
COLOR_DARK_GREEN
public static final int COLOR_DARK_GREENDefault color dark green (value is 6).- See Also:
-
COLOR_YELLOW
public static final int COLOR_YELLOWDefault color yellow (value is 7).- See Also:
-
COLOR_DARK_YELLOW
public static final int COLOR_DARK_YELLOWDefault color dark yellow (value is 8).- See Also:
-
COLOR_BLUE
public static final int COLOR_BLUEDefault color blue (value is 9).- See Also:
-
COLOR_DARK_BLUE
public static final int COLOR_DARK_BLUEDefault color dark blue (value is 10).- See Also:
-
COLOR_MAGENTA
public static final int COLOR_MAGENTADefault color magenta (value is 11).- See Also:
-
COLOR_DARK_MAGENTA
public static final int COLOR_DARK_MAGENTADefault color dark magenta (value is 12).- See Also:
-
COLOR_CYAN
public static final int COLOR_CYANDefault color cyan (value is 13).- See Also:
-
COLOR_DARK_CYAN
public static final int COLOR_DARK_CYANDefault color dark cyan (value is 14).- See Also:
-
COLOR_GRAY
public static final int COLOR_GRAYDefault color gray (value is 15).- See Also:
-
COLOR_DARK_GRAY
public static final int COLOR_DARK_GRAYDefault color dark gray (value is 16).- See Also:
-
COLOR_WIDGET_DARK_SHADOW
public static final int COLOR_WIDGET_DARK_SHADOWSystem color used to paint dark shadow areas (value is 17).- See Also:
-
COLOR_WIDGET_NORMAL_SHADOW
public static final int COLOR_WIDGET_NORMAL_SHADOWSystem color used to paint normal shadow areas (value is 18).- See Also:
-
COLOR_WIDGET_LIGHT_SHADOW
public static final int COLOR_WIDGET_LIGHT_SHADOWSystem color used to paint light shadow areas (value is 19).- See Also:
-
COLOR_WIDGET_HIGHLIGHT_SHADOW
public static final int COLOR_WIDGET_HIGHLIGHT_SHADOWSystem color used to paint highlight shadow areas (value is 20).- See Also:
-
COLOR_WIDGET_FOREGROUND
public static final int COLOR_WIDGET_FOREGROUNDSystem color used to paint foreground areas (value is 21).- See Also:
-
COLOR_WIDGET_BACKGROUND
public static final int COLOR_WIDGET_BACKGROUNDSystem color used to paint background areas (value is 22).- See Also:
-
COLOR_WIDGET_BORDER
public static final int COLOR_WIDGET_BORDERSystem color used to paint border areas (value is 23).- See Also:
-
COLOR_LIST_FOREGROUND
public static final int COLOR_LIST_FOREGROUNDSystem color used to paint list foreground areas (value is 24).- See Also:
-
COLOR_LIST_BACKGROUND
public static final int COLOR_LIST_BACKGROUNDSystem color used to paint list background areas (value is 25).- See Also:
-
COLOR_LIST_SELECTION
public static final int COLOR_LIST_SELECTIONSystem color used to paint list selection background areas (value is 26).- See Also:
-
COLOR_LIST_SELECTION_TEXT
public static final int COLOR_LIST_SELECTION_TEXTSystem color used to paint list selected text (value is 27).- See Also:
-
COLOR_INFO_FOREGROUND
public static final int COLOR_INFO_FOREGROUNDSystem color used to paint tooltip text (value is 28).- See Also:
-
COLOR_INFO_BACKGROUND
public static final int COLOR_INFO_BACKGROUNDSystem color used to paint tooltip background areas (value is 29).- See Also:
-
COLOR_TITLE_FOREGROUND
public static final int COLOR_TITLE_FOREGROUNDSystem color used to paint title text (value is 30).- See Also:
-
COLOR_TITLE_BACKGROUND
public static final int COLOR_TITLE_BACKGROUNDSystem color used to paint title background areas (value is 31).- See Also:
-
COLOR_TITLE_BACKGROUND_GRADIENT
public static final int COLOR_TITLE_BACKGROUND_GRADIENTSystem color used to paint title background gradient (value is 32).- See Also:
-
COLOR_TITLE_INACTIVE_FOREGROUND
public static final int COLOR_TITLE_INACTIVE_FOREGROUNDSystem color used to paint inactive title text (value is 33).- See Also:
-
COLOR_TITLE_INACTIVE_BACKGROUND
public static final int COLOR_TITLE_INACTIVE_BACKGROUNDSystem color used to paint inactive title background areas (value is 34).- See Also:
-
COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT
public static final int COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENTSystem color used to paint inactive title background gradient (value is 35).- See Also:
-
COLOR_LINK_FOREGROUND
public static final int COLOR_LINK_FOREGROUNDSystem color used to paint link text (value is 36).- Since:
- 3.102
- See Also:
-
COLOR_TRANSPARENT
public static final int COLOR_TRANSPARENTSystem color used to paint with alpha 0 (value is 37).This pseudo-color can be used to set a transparent background on SWT controls.
Note that this is a HINT and may be overridden by the platform. For example:- Since:
- 3.104
- See Also:
-
COLOR_TEXT_DISABLED_BACKGROUND
public static final int COLOR_TEXT_DISABLED_BACKGROUNDSystem color used to paint disabled text background areas (value is 38).- Since:
- 3.112
- See Also:
-
COLOR_WIDGET_DISABLED_FOREGROUND
public static final int COLOR_WIDGET_DISABLED_FOREGROUNDSystem color used to paint disabled foreground areas (value is 39).- Since:
- 3.112
- See Also:
-
DRAW_TRANSPARENT
public static final int DRAW_TRANSPARENTDraw constant indicating whether the drawing operation should fill the background (value is 1<<0).- See Also:
-
DRAW_DELIMITER
public static final int DRAW_DELIMITERDraw constant indicating whether the string drawing operation should handle line-delimiters (value is 1<<1).- See Also:
-
DRAW_TAB
public static final int DRAW_TABDraw constant indicating whether the string drawing operation should expand TAB characters (value is 1<<2).- See Also:
-
DRAW_MNEMONIC
public static final int DRAW_MNEMONICDraw constant indicating whether the string drawing operation should handle mnemonics (value is 1<<3).- See Also:
-
DELIMITER_SELECTION
public static final int DELIMITER_SELECTIONSelection constant indicating that a line delimiter should be drawn (value is 1<<17).Used By:
TextLayout
- Since:
- 3.3
- See Also:
-
LAST_LINE_SELECTION
public static final int LAST_LINE_SELECTIONSelection 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).Used By:
TextLayout
- Since:
- 3.3
- See Also:
-
ERROR_UNSPECIFIED
public static final int ERROR_UNSPECIFIEDSWT error constant indicating that no error number was specified (value is 1).- See Also:
-
ERROR_NO_HANDLES
public static final int ERROR_NO_HANDLESSWT error constant indicating that no more handles for an operating system resource are available (value is 2).- See Also:
-
ERROR_NO_MORE_CALLBACKS
public static final int ERROR_NO_MORE_CALLBACKSSWT error constant indicating that no more callback resources are available (value is 3).- See Also:
-
ERROR_NULL_ARGUMENT
public static final int ERROR_NULL_ARGUMENTSWT error constant indicating that a null argument was passed in (value is 4).- See Also:
-
ERROR_INVALID_ARGUMENT
public static final int ERROR_INVALID_ARGUMENTSWT error constant indicating that an invalid argument was passed in (value is 5).- See Also:
-
ERROR_INVALID_RANGE
public static final int ERROR_INVALID_RANGESWT error constant indicating that a value was found to be outside the allowable range (value is 6).- See Also:
-
ERROR_CANNOT_BE_ZERO
public static final int ERROR_CANNOT_BE_ZEROSWT error constant indicating that a value which can not be zero was found to be (value is 7).- See Also:
-
ERROR_CANNOT_GET_ITEM
public static final int ERROR_CANNOT_GET_ITEMSWT error constant indicating that the underlying operating system was unable to provide the value of an item (value is 8).- See Also:
-
ERROR_CANNOT_GET_SELECTION
public static final int ERROR_CANNOT_GET_SELECTIONSWT error constant indicating that the underlying operating system was unable to provide the selection (value is 9).- See Also:
-
ERROR_CANNOT_INVERT_MATRIX
public static final int ERROR_CANNOT_INVERT_MATRIXSWT error constant indicating that the matrix is not invertible (value is 10).- Since:
- 3.1
- See Also:
-
ERROR_CANNOT_GET_ITEM_HEIGHT
public static final int ERROR_CANNOT_GET_ITEM_HEIGHTSWT error constant indicating that the underlying operating system was unable to provide the height of an item (value is 11).- See Also:
-
ERROR_CANNOT_GET_TEXT
public static final int ERROR_CANNOT_GET_TEXTSWT error constant indicating that the underlying operating system was unable to provide the text of a widget (value is 12).- See Also:
-
ERROR_CANNOT_SET_TEXT
public static final int ERROR_CANNOT_SET_TEXTSWT error constant indicating that the underlying operating system was unable to set the text of a widget (value is 13).- See Also:
-
ERROR_ITEM_NOT_ADDED
public static final int ERROR_ITEM_NOT_ADDEDSWT error constant indicating that the underlying operating system was unable to add an item (value is 14).- See Also:
-
ERROR_ITEM_NOT_REMOVED
public static final int ERROR_ITEM_NOT_REMOVEDSWT error constant indicating that the underlying operating system was unable to remove an item (value is 15).- See Also:
-
ERROR_NO_GRAPHICS_LIBRARY
public static final int ERROR_NO_GRAPHICS_LIBRARYSWT error constant indicating that the graphics library is not available (value is 16).- See Also:
-
ERROR_NOT_IMPLEMENTED
public static final int ERROR_NOT_IMPLEMENTEDSWT error constant indicating that a particular feature has not been implemented on this platform (value is 20).- See Also:
-
ERROR_MENU_NOT_DROP_DOWN
public static final int ERROR_MENU_NOT_DROP_DOWNSWT error constant indicating that a menu which needed to have the drop down style had some other style instead (value is 21).- See Also:
-
ERROR_THREAD_INVALID_ACCESS
public static final int ERROR_THREAD_INVALID_ACCESSSWT 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).- See Also:
-
ERROR_WIDGET_DISPOSED
public static final int ERROR_WIDGET_DISPOSEDSWT error constant indicating that an attempt was made to invoke an SWT operation using a widget which had already been disposed (value is 24).- See Also:
-
ERROR_MENUITEM_NOT_CASCADE
public static final int ERROR_MENUITEM_NOT_CASCADESWT error constant indicating that a menu item which needed to have the cascade style had some other style instead (value is 27).- See Also:
-
ERROR_CANNOT_SET_SELECTION
public static final int ERROR_CANNOT_SET_SELECTIONSWT error constant indicating that the underlying operating system was unable to set the selection of a widget (value is 28).- See Also:
-
ERROR_CANNOT_SET_MENU
public static final int ERROR_CANNOT_SET_MENUSWT error constant indicating that the underlying operating system was unable to set the menu (value is 29).- See Also:
-
ERROR_CANNOT_SET_ENABLED
public static final int ERROR_CANNOT_SET_ENABLEDSWT error constant indicating that the underlying operating system was unable to set the enabled state (value is 30).- See Also:
-
ERROR_CANNOT_GET_ENABLED
public static final int ERROR_CANNOT_GET_ENABLEDSWT error constant indicating that the underlying operating system was unable to provide enabled/disabled state information (value is 31).- See Also:
-
ERROR_INVALID_PARENT
public static final int ERROR_INVALID_PARENTSWT error constant indicating that a provided widget can not be used as a parent in the current operation (value is 32).- See Also:
-
ERROR_MENU_NOT_BAR
public static final int ERROR_MENU_NOT_BARSWT error constant indicating that a menu which needed to have the menu bar style had some other style instead (value is 33).- See Also:
-
ERROR_CANNOT_GET_COUNT
public static final int ERROR_CANNOT_GET_COUNTSWT error constant indicating that the underlying operating system was unable to provide count information (value is 36).- See Also:
-
ERROR_MENU_NOT_POP_UP
public static final int ERROR_MENU_NOT_POP_UPSWT error constant indicating that a menu which needed to have the pop up menu style had some other style instead (value is 37).- See Also:
-
ERROR_UNSUPPORTED_DEPTH
public static final int ERROR_UNSUPPORTED_DEPTHSWT error constant indicating that a graphics operation was attempted with an image of an unsupported depth (value is 38).- See Also:
-
ERROR_IO
public static final int ERROR_IOSWT error constant indicating that an input/output operation failed during the execution of an SWT operation (value is 39).- See Also:
-
ERROR_INVALID_IMAGE
public static final int ERROR_INVALID_IMAGESWT error constant indicating that a graphics operation was attempted with an image having an invalid format (value is 40).- See Also:
-
ERROR_UNSUPPORTED_FORMAT
public static final int ERROR_UNSUPPORTED_FORMATSWT error constant indicating that a graphics operation was attempted with an image having a valid but unsupported format (value is 42).- See Also:
-
ERROR_INVALID_SUBCLASS
public static final int ERROR_INVALID_SUBCLASSSWT error constant indicating that an attempt was made to subclass an SWT widget class without implementing thecheckSubclass()
method (value is 43). For additional information see the comment inWidget.checkSubclass()
.- See Also:
-
ERROR_GRAPHIC_DISPOSED
public static final int ERROR_GRAPHIC_DISPOSEDSWT 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).- See Also:
-
ERROR_DEVICE_DISPOSED
public static final int ERROR_DEVICE_DISPOSEDSWT error constant indicating that an attempt was made to invoke an SWT operation using a device which had already been disposed (value is 45).- See Also:
-
ERROR_FAILED_EXEC
public static final int ERROR_FAILED_EXECSWT error constant indicating that an exception happened when executing a runnable (value is 46).- See Also:
-
ERROR_FAILED_LOAD_LIBRARY
public static final int ERROR_FAILED_LOAD_LIBRARYSWT error constant indicating that an unsatisfied link error occurred while attempting to load a library (value is 47).- Since:
- 3.1
- See Also:
-
ERROR_INVALID_FONT
public static final int ERROR_INVALID_FONTSWT error constant indicating that a font is not valid (value is 48).- Since:
- 3.1
- See Also:
-
ERROR_FUNCTION_DISPOSED
public static final int ERROR_FUNCTION_DISPOSEDSWT error constant indicating that an attempt was made to use an BrowserFunction object which had already been disposed (value is 49).- Since:
- 3.5
- See Also:
-
ERROR_FAILED_EVALUATE
public static final int ERROR_FAILED_EVALUATESWT error constant indicating that an exception happened when evaluating a javascript expression (value is 50).- Since:
- 3.5
- See Also:
-
ERROR_INVALID_RETURN_VALUE
public static final int ERROR_INVALID_RETURN_VALUESWT error constant indicating that an invalid value was returned (value is 51).- Since:
- 3.5
- See Also:
-
BITMAP
public static final int BITMAPConstant indicating that an image or operation is of type bitmap (value is 0).- See Also:
-
ICON
public static final int ICONConstant indicating that an image or operation is of type icon (value is 1).- See Also:
-
IMAGE_COPY
public static final int IMAGE_COPYTheImage
constructor argument indicating that the new image should be a copy of the image provided as an argument (value is 0).- See Also:
-
IMAGE_DISABLE
public static final int IMAGE_DISABLETheImage
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).- See Also:
-
IMAGE_GRAY
public static final int IMAGE_GRAYTheImage
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).- See Also:
-
ERROR
public static final int ERRORConstant to indicate an error state (value is 1).Used By:
ProgressBar
- Since:
- 3.4
- See Also:
-
PAUSED
public static final int PAUSEDConstant to a indicate a paused state (value is 4).Used By:
ProgressBar
- Since:
- 3.4
- See Also:
-
NORMAL
public static final int NORMALThe font style constant indicating a normal weight, non-italic font (value is 0). This constant is also used withProgressBar
to indicate a normal state.Used By:
ProgressBar
- See Also:
-
BOLD
public static final int BOLDThe font style constant indicating a bold weight font (value is 1<<0).- See Also:
-
ITALIC
public static final int ITALICThe font style constant indicating an italic font (value is 1<<1).- See Also:
-
CURSOR_ARROW
public static final int CURSOR_ARROWSystem arrow cursor (value is 0).- See Also:
-
CURSOR_WAIT
public static final int CURSOR_WAITSystem wait cursor (value is 1).- See Also:
-
CURSOR_CROSS
public static final int CURSOR_CROSSSystem cross hair cursor (value is 2).- See Also:
-
CURSOR_APPSTARTING
public static final int CURSOR_APPSTARTINGSystem app startup cursor (value is 3).- See Also:
-
CURSOR_HELP
public static final int CURSOR_HELPSystem help cursor (value is 4).- See Also:
-
CURSOR_SIZEALL
public static final int CURSOR_SIZEALLSystem resize all directions cursor (value is 5).- See Also:
-
CURSOR_SIZENESW
public static final int CURSOR_SIZENESWSystem resize north-east-south-west cursor (value is 6).- See Also:
-
CURSOR_SIZENS
public static final int CURSOR_SIZENSSystem resize north-south cursor (value is 7).- See Also:
-
CURSOR_SIZENWSE
public static final int CURSOR_SIZENWSESystem resize north-west-south-east cursor (value is 8).- See Also:
-
CURSOR_SIZEWE
public static final int CURSOR_SIZEWESystem resize west-east cursor (value is 9).- See Also:
-
CURSOR_SIZEN
public static final int CURSOR_SIZENSystem resize north cursor (value is 10).- See Also:
-
CURSOR_SIZES
public static final int CURSOR_SIZESSystem resize south cursor (value is 11).- See Also:
-
CURSOR_SIZEE
public static final int CURSOR_SIZEESystem resize east cursor (value is 12).- See Also:
-
CURSOR_SIZEW
public static final int CURSOR_SIZEWSystem resize west cursor (value is 13).- See Also:
-
CURSOR_SIZENE
public static final int CURSOR_SIZENESystem resize north-east cursor (value is 14).- See Also:
-
CURSOR_SIZESE
public static final int CURSOR_SIZESESystem resize south-east cursor (value is 15).- See Also:
-
CURSOR_SIZESW
public static final int CURSOR_SIZESWSystem resize south-west cursor (value is 16).- See Also:
-
CURSOR_SIZENW
public static final int CURSOR_SIZENWSystem resize north-west cursor (value is 17).- See Also:
-
CURSOR_UPARROW
public static final int CURSOR_UPARROWSystem up arrow cursor (value is 18).- See Also:
-
CURSOR_IBEAM
public static final int CURSOR_IBEAMSystem i-beam cursor (value is 19).- See Also:
-
CURSOR_NO
public static final int CURSOR_NOSystem "not allowed" cursor (value is 20).- See Also:
-
CURSOR_HAND
public static final int CURSOR_HANDSystem hand cursor (value is 21).- See Also:
-
CAP_FLAT
public static final int CAP_FLATLine drawing style for flat end caps (value is 1).- Since:
- 3.1
- See Also:
-
CAP_ROUND
public static final int CAP_ROUNDLine drawing style for rounded end caps (value is 2).- Since:
- 3.1
- See Also:
-
CAP_SQUARE
public static final int CAP_SQUARELine drawing style for square end caps (value is 3).- Since:
- 3.1
- See Also:
-
JOIN_MITER
public static final int JOIN_MITERLine drawing style for miter joins (value is 1).- Since:
- 3.1
- See Also:
-
JOIN_ROUND
public static final int JOIN_ROUNDLine drawing style for rounded joins (value is 2).- Since:
- 3.1
- See Also:
-
JOIN_BEVEL
public static final int JOIN_BEVELLine drawing style for bevel joins (value is 3).- Since:
- 3.1
- See Also:
-
LINE_SOLID
public static final int LINE_SOLIDLine drawing style for solid lines (value is 1).- See Also:
-
LINE_DASH
public static final int LINE_DASHLine drawing style for dashed lines (value is 2).- See Also:
-
LINE_DOT
public static final int LINE_DOTLine drawing style for dotted lines (value is 3).- See Also:
-
LINE_DASHDOT
public static final int LINE_DASHDOTLine drawing style for alternating dash-dot lines (value is 4).- See Also:
-
LINE_DASHDOTDOT
public static final int LINE_DASHDOTDOTLine drawing style for dash-dot-dot lines (value is 5).- See Also:
-
LINE_CUSTOM
public static final int LINE_CUSTOMLine drawing style for custom dashed lines (value is 6).- Since:
- 3.1
- See Also:
-
PATH_MOVE_TO
public static final int PATH_MOVE_TOPath constant that represents a "move to" operation (value is 1).- Since:
- 3.1
- See Also:
-
PATH_LINE_TO
public static final int PATH_LINE_TOPath constant that represents a "line to" operation (value is 2).- Since:
- 3.1
- See Also:
-
PATH_QUAD_TO
public static final int PATH_QUAD_TOPath constant that represents a "quadratic curve to" operation (value is 3).- Since:
- 3.1
- See Also:
-
PATH_CUBIC_TO
public static final int PATH_CUBIC_TOPath constant that represents a "cubic curve to" operation (value is 4).- Since:
- 3.1
- See Also:
-
PATH_CLOSE
public static final int PATH_CLOSEPath constant that represents a "close" operation (value is 5).- Since:
- 3.1
- See Also:
-
FILL_EVEN_ODD
public static final int FILL_EVEN_ODDEven odd rule for filling operations (value is 1).- Since:
- 3.1
- See Also:
-
FILL_WINDING
public static final int FILL_WINDINGWinding rule for filling operations (value is 2).- Since:
- 3.1
- See Also:
-
IMAGE_UNDEFINED
public static final int IMAGE_UNDEFINEDImage format constant indicating an unknown image type (value is -1).- See Also:
-
IMAGE_BMP
public static final int IMAGE_BMPImage format constant indicating a Windows BMP format image (value is 0).- See Also:
-
IMAGE_BMP_RLE
public static final int IMAGE_BMP_RLEImage format constant indicating a run-length encoded Windows BMP format image (value is 1).- See Also:
-
IMAGE_GIF
public static final int IMAGE_GIFImage format constant indicating a GIF format image (value is 2).- See Also:
-
IMAGE_ICO
public static final int IMAGE_ICOImage format constant indicating a ICO format image (value is 3).- See Also:
-
IMAGE_JPEG
public static final int IMAGE_JPEGImage format constant indicating a JPEG format image (value is 4).- See Also:
-
IMAGE_PNG
public static final int IMAGE_PNGImage format constant indicating a PNG format image (value is 5).- See Also:
-
IMAGE_TIFF
public static final int IMAGE_TIFFImage format constant indicating a TIFF format image (value is 6).- See Also:
-
IMAGE_OS2_BMP
public static final int IMAGE_OS2_BMPImage format constant indicating an OS/2 BMP format image (value is 7).- See Also:
-
IMAGE_SVG
public static final int IMAGE_SVGImage format constant indicating a SVG format image (value is 8).
Note that this is a HINT and is currently only supported on GTK.- Since:
- 3.113
- See Also:
-
DM_UNSPECIFIED
public static final int DM_UNSPECIFIEDGIF image disposal method constants indicating that the disposal method is unspecified (value is 0).- See Also:
-
DM_FILL_NONE
public static final int DM_FILL_NONEGIF 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).- See Also:
-
DM_FILL_BACKGROUND
public static final int DM_FILL_BACKGROUNDGIF 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).- See Also:
-
DM_FILL_PREVIOUS
public static final int DM_FILL_PREVIOUSGIF image disposal method constants indicating that the disposal method is to restore the previous picture (value is 3).- See Also:
-
TRANSPARENCY_NONE
public static final int TRANSPARENCY_NONEImage transparency constant indicating that the image contains no transparency information (value is 0).- See Also:
-
TRANSPARENCY_ALPHA
public static final int TRANSPARENCY_ALPHAImage transparency constant indicating that the image contains alpha transparency information (value is 1<<0).- See Also:
-
TRANSPARENCY_MASK
public static final int TRANSPARENCY_MASKImage transparency constant indicating that the image contains a transparency mask (value is 1<<1).- See Also:
-
TRANSPARENCY_PIXEL
public static final int TRANSPARENCY_PIXELImage transparency constant indicating that the image contains a transparent pixel (value is 1<<2).- See Also:
-
MOVEMENT_CHAR
public static final int MOVEMENT_CHARThe character movement type (value is 1<<0). This constant is used to move a text offset over a character. -
MOVEMENT_CLUSTER
public static final int MOVEMENT_CLUSTERThe cluster movement type (value is 1<<1). This constant is used to move a text offset over a cluster. A cluster groups one or more characters. A cluster is undivisible, this means that a caret offset can not be placed in the middle of a cluster. -
MOVEMENT_WORD
public static final int MOVEMENT_WORDThe word movement type (value is 1<<2). This constant is used to move a text offset over a word. The behavior of this constant depends on the platform and on the direction of the movement. For example, on Windows the stop is always at the start of the word. On GTK and Mac the stop is at the end of the word if the direction is next and at the start of the word if the direction is previous. -
MOVEMENT_WORD_END
public static final int MOVEMENT_WORD_ENDThe word end movement type (value is 1<<3). This constant is used to move a text offset to the next or previous word end. The behavior of this constant does not depend on the platform. -
MOVEMENT_WORD_START
public static final int MOVEMENT_WORD_STARTThe word start movement type (value is 1<<4). This constant is used to move a text offset to the next or previous word start. The behavior of this constant does not depend on the platform. -
ALL
public static final int ALLA constant indicating that a given operation should be performed on all widgets (value is 1<<0).Used By:
Composite
layout
- Since:
- 3.6
- See Also:
-
ID_ABOUT
public static final int ID_ABOUTID for the About menu item (value is -1).- Since:
- 3.7
- See Also:
-
ID_PREFERENCES
public static final int ID_PREFERENCESID for the Preferences menu item (value is -2).- Since:
- 3.7
- See Also:
-
ID_HIDE
public static final int ID_HIDEID for the Hide menu item (value is -3).- Since:
- 3.7
- See Also:
-
ID_HIDE_OTHERS
public static final int ID_HIDE_OTHERSID for the Hide Others menu item (value is -4).- Since:
- 3.7
- See Also:
-
ID_SHOW_ALL
public static final int ID_SHOW_ALLID for the Show All menu item (value is -5).- Since:
- 3.7
- See Also:
-
ID_QUIT
public static final int ID_QUITID for the Quit menu item (value is -6).- Since:
- 3.7
- See Also:
-
SKIN_CLASS
Key name for setting and getting the skin class of a widget.Note: SWT currently doesn't read or process this property. The only effect of setting this property is to trigger a call to
Widget#reskin(SWT.ALL)
.- Since:
- 3.6
- See Also:
-
SKIN_ID
Key name for setting and getting the skin id of a widget.Note: SWT currently doesn't read or process this property. The only effect of setting this property is to trigger a call to
Widget#reskin(SWT.ALL)
.- Since:
- 3.6
- See Also:
-
SCROLLBAR_OVERLAY
public static final int SCROLLBAR_OVERLAYTheScrollable
constant to indicate that the receiver is using overlay scrollbars. (value is 1)- Since:
- 3.8
- See Also:
-
-
Constructor Details
-
SWT
public SWT()
-
-
Method Details
-
isLoadable
public static boolean isLoadable()Returns a boolean indicating whether this SWT implementation can be loaded. Examples of criteria that may be used to determine this include the OS and architecture of the JRE that is being used.- Returns:
true
if this SWT implementation can be loaded andfalse
otherwise- Since:
- 3.8
-
getMessage
Returns the NLS'ed message for the given argument.- Parameters:
key
- the key to look up- Returns:
- the message for the given key
- Throws:
IllegalArgumentException
-- ERROR_NULL_ARGUMENT - if the key is null
-
getMessage
Returns the NLS'ed message for the given arguments.- Parameters:
key
- the key to look upargs
- the parameters to insert into the message- Returns:
- the message for the given parameterized key
- Throws:
IllegalArgumentException
-- ERROR_NULL_ARGUMENT - if the key or args are null
- Since:
- 3.8
-
getPlatform
Returns the SWT platform name. Examples: "win32", "gtk", "cocoa"- Returns:
- the SWT platform name
-
getVersion
public static int getVersion()Returns the SWT version number as an integer. Example: "SWT051" == 51- Returns:
- the SWT version number
-
error
public static void error(int code) Throws an appropriate exception based on the passed in error code.- Parameters:
code
- the SWT error code
-
error
Throws an appropriate exception based on the passed in error code. Thethrowable
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
- Parameters:
code
- the SWT error code.throwable
- the exception which caused the error to occur.- See Also:
-
error
Throws an appropriate exception based on the passed in error code. Thethrowable
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
- Parameters:
code
- the SWT error code.throwable
- the exception which caused the error to occur.detail
- more information about error.- Since:
- 3.0
- See Also:
-