Throws an appropriate exception based on the passed in error code. The <code>throwable</code> argument should be either null, or the throwable which caused SWT to throw an exception. <p> In SWT, errors are reported by throwing one of three exceptions: <dl> <dd>java.lang.IllegalArgumentException</dd> <dt>thrown whenever one of the API methods is invoked with an illegal argument</dt> <dd>org.eclipse.swt.SWTException (extends java.lang.RuntimeException)</dd> <dt>thrown whenever a recoverable error happens internally in SWT</dt> <dd>org.eclipse.swt.SWTError (extends java.lang.Error)</dd> <dt>thrown whenever a <b>non-recoverable</b> error happens internally in SWT</dt> </dl> This method provides the logic which maps between error codes and one of the above exceptions. </p>
Throws an appropriate exception based on the passed in error code. The <code>throwable</code> argument should be either null, or the throwable which caused SWT to throw an exception. <p> In SWT, errors are reported by throwing one of three exceptions: <dl> <dd>java.lang.IllegalArgumentException</dd> <dt>thrown whenever one of the API methods is invoked with an illegal argument</dt> <dd>org.eclipse.swt.SWTException (extends java.lang.RuntimeException)</dd> <dt>thrown whenever a recoverable error happens internally in SWT</dt> <dd>org.eclipse.swt.SWTError (extends java.lang.Error)</dd> <dt>thrown whenever a <b>non-recoverable</b> error happens internally in SWT</dt> </dl> This method provides the logic which maps between error codes and one of the above exceptions. </p>
Throws an appropriate exception based on the passed in error code.
Answers a concise, human readable description of the error code.
Returns the NLS'ed message for the given argument.
Returns the SWT platform name.
Returns the SWT version number as an integer.
The <code>MessageBox</code> style constant for an ABORT button; the only valid combination is ABORT|RETRY|IGNORE (value is 1<<9).
Input Method Editor style constant for alpha input behavior (value is 1<<2).
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).
Style constant for application modal behavior (value is 1<<16). <br>Note that this is a <em>HINT</em>. <p><b>Used By:</b><ul> <li><code>Dialog</code></li> <li><code>Shell</code></li> </ul></p>
Style constant for arrow button behavior (value is 1<<2). <p><b>Used By:</b><ul> <li><code>Button</code></li> </ul></p>
Keyboard event constant representing the DOWN ARROW key (value is (1<<24)+2).
Keyboard event constant representing the LEFT ARROW key (value is (1<<24)+3).
Keyboard event constant representing the RIGHT ARROW key (value is (1<<24)+4).
Keyboard event constant representing the UP ARROW key (value is (1<<24)+1).
The activate event type (value is 26).
The arm event type (value is 30).
Event detail field that indicates a user-interface component draws the background (value is 1<<3).
Style constant for balloon behavior (value is 1<<12). <p><b>Used By:</b><ul> <li><code>ToolTip</code></li> </ul></p>
Style constant for menu bar behavior (value is 1<<1). <p><b>Used By:</b><ul> <li><code>Menu</code></li> </ul></p>
Style constant for vertical alignment or orientation behavior (value is 1). <p><b>Used By:</b><ul> <li><code>GridLayout</code> type</li> </ul></p>
Constant indicating that an image or operation is of type bitmap (value is 0).
The font style constant indicating a bold weight font (value is 1<<0).
Style constant for bordered behavior (value is 1<<11). <br>Note that this is a <em>HINT</em>. <p><b>Used By:</b><ul> <li><code>Control</code> and subclasses</li> </ul></p>
Style constant to indicate dashed border (value is 2). <p><b>Used By:</b><ul> <li><code>TextStyle</code></li> </ul></p>
Style constant to indicate dotted border (value is 4). <p><b>Used By:</b><ul> <li><code>TextStyle</code></li> </ul></p>
Style constant to indicate solid border (value is 1). <p><b>Used By:</b><ul> <li><code>TextStyle</code></li> </ul></p>
Style constant for align bottom behavior (value is 1<<10, since align DOWN and align BOTTOM are considered the same). <p><b>Used By:</b><ul> <li><code>FormAttachment</code> in a <code>FormLayout</code></li> </ul></p>
Keyboard event constant representing the break key (value is (1<<24)+86).
ASCII character convenience constant for the backspace character (value is the <code>char</code> '\b').
Keyboard and/or mouse event mask indicating that mouse button one was pushed when the event was generated. (value is 1<<19).
Keyboard and/or mouse event mask indicating that mouse button two was pushed when the event was generated. (value is 1<<20).
Keyboard and/or mouse event mask indicating that mouse button three was pushed when the event was generated. (value is 1<<21).
Keyboard and/or mouse event mask indicating that mouse button four was pushed when the event was generated. (value is 1<<23).
Keyboard and/or mouse event mask indicating that mouse button five was pushed when the event was generated. (value is 1<<25).
Keyboard and/or mouse event mask indicating all possible mouse buttons.
Style constant for calendar display (value is 1<<10). <p><b>Used By:</b><ul> <li><code>DateTime</code></li> </ul></p>
The <code>MessageBox</code> style constant for a CANCEL button; valid combinations are OK|CANCEL, YES|NO|CANCEL, RETRY|CANCEL (value is 1<<8). This style constant is also used with <code>Text</code> in combination with SEARCH.
Keyboard event constant representing the caps lock key (value is (1<<24)+82).
Line drawing style for flat end caps (value is 1).
Line drawing style for rounded end caps (value is 2).
Line drawing style for square end caps (value is 3).
Style constant for cascade behavior (value is 1<<6). <p><b>Used By:</b><ul> <li><code>MenuItem</code></li> </ul></p>
Style constant for align center behavior (value is 1<<24). <p><b>Used By:</b><ul> <li><code>Button</code></li> <li><code>Label</code></li> <li><code>TableColumn</code></li> <li><code>FormAttachment</code> in a <code>FormLayout</code></li> </ul></p>
Style constant for check box behavior (value is 1<<5). <p><b>Used By:</b><ul> <li><code>Button</code></li> <li><code>MenuItem</code></li> <li><code>ToolItem</code></li> <li><code>Table</code></li> <li><code>Tree</code></li> </ul></p>
Style constant indicating that the window manager should clip a widget's children with respect to its viewable area. (value is 1<<12). <br>Note that this is a <em>HINT</em>. <p><b>Used By:</b><ul> <li><code>Control</code> and subclasses</li> </ul></p>
Style constant indicating that the window manager should clip a widget's siblings with respect to its viewable area. (value is 1<<13). <br>Note that this is a <em>HINT</em>. <p><b>Used By:</b><ul> <li><code>Control</code> and subclasses</li> </ul></p>
Style constant for close box trim (value is 1<<6, since we do not distinguish between CLOSE style and MENU style). <p><b>Used By:</b><ul> <li><code>Decorations</code> and subclasses</li> </ul></p>
Default color black (value is 2).
Default color blue (value is 9).
Default color cyan (value is 13).
Default color dark blue (value is 10).
Default color dark cyan (value is 14).
Default color dark gray (value is 16).
Default color dark green (value is 6).
Default color dark magenta (value is 12).
Default color dark red (value is 4).
Default color dark yellow (value is 8).
Default color gray (value is 15).
Default color green (value is 5).
System color used to paint tooltip background areas (value is 29).
System color used to paint tooltip text (value is 28).
System color used to paint list background areas (value is 25).
System color used to paint list foreground areas (value is 24).
System color used to paint list selection background areas (value is 26).
System color used to paint list selected text (value is 27).
Default color magenta (value is 11).
Default color red (value is 3).
System color used to paint title background areas (value is 31).
System color used to paint title background gradient (value is 32).
System color used to paint title text (value is 30).
System color used to paint inactive title background areas (value is 34).
System color used to paint inactive title background gradient (value is 35).
System color used to paint inactive title text (value is 33).
Default color white (value is 1).
System color used to paint background areas (value is 22).
System color used to paint border areas (value is 23).
System color used to paint dark shadow areas (value is 17).
System color used to paint foreground areas (value is 21).
System color used to paint highlight shadow areas (value is 20).
System color used to paint light shadow areas (value is 19).
System color used to paint normal shadow areas (value is 18).
Default color yellow (value is 7).
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).
The 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).
The 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 IME composition event detail that indicates that IME needs the selected text and its start and end offsets (value is 3).
Keyboard and/or mouse event mask indicating that the CTRL key was pushed on the keyboard when the event was generated. This is a synonym for CTRL (value is 1<<18).
ASCII character convenience constant for the carriage return character (value is the <code>char</code> '\r').
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).
System app startup cursor (value is 3).
System arrow cursor (value is 0).
System cross hair cursor (value is 2).
System hand cursor (value is 21).
System help cursor (value is 4).
System i-beam cursor (value is 19).
System "not allowed" cursor (value is 20).
System resize all directions cursor (value is 5).
System resize east cursor (value is 12).
System resize north cursor (value is 10).
System resize north-east cursor (value is 14).
System resize north-east-south-west cursor (value is 6).
System resize north-south cursor (value is 7).
System resize north-west cursor (value is 17).
System resize north-west-south-east cursor (value is 8).
System resize south cursor (value is 11).
System resize south-east cursor (value is 15).
System resize south-west cursor (value is 16).
System resize west cursor (value is 13).
System resize west-east cursor (value is 9).
System up arrow cursor (value is 18).
System wait cursor (value is 1).
The close event type (value is 21).
The collapse event type (value is 18).
Style constant for date display (value is 1<<5). <p><b>Used By:</b><ul> <li><code>DateTime</code></li> </ul></p>
Input Method Editor style constant for double byte input behavior (value is 1<<1).
Indicates that a default should be used (value is -1).
ASCII character convenience constant for the delete character (value is the <code>char</code> with value 127).
Selection constant indicating that a line delimiter should be drawn (value is 1<<17).
Trim style convenience constant for the most common dialog shell appearance (value is CLOSE|TITLE|BORDER). <p><b>Used By:</b><ul> <li><code>Shell</code></li> </ul></p>
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).
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).
GIF image disposal method constants indicating that the disposal method is to restore the previous picture (value is 3).
GIF image disposal method constants indicating that the disposal method is unspecified (value is 0).
Style constant to indicate double buffering (value is 1<<29). <p><b>Used By:</b><ul> <li><code>Control</code></li> </ul></p>
Style constant for align down behavior (value is 1<<10, since align DOWN and align BOTTOM are considered the same). <p><b>Used By:</b><ul> <li><code>Button</code> with <code>ARROW</code> style</li> <li><code>Tracker</code></li> <li><code>Table</code></li> <li><code>Tree</code></li> </ul></p>
Indicates that a user-interface component is being dragged, for example dragging the thumb of a scroll bar (value is 1).
Draw constant indicating whether the string drawing operation should handle line-delimiters (value is 1<<1).
Draw constant indicating whether the string drawing operation should handle mnemonics (value is 1<<3).
Draw constant indicating whether the string drawing operation should expand TAB characters (value is 1<<2).
Draw constant indicating whether the drawing operation should fill the background (value is 1<<0).
Style constant for drop down menu/list behavior (value is 1<<2). <p><b>Used By:</b><ul> <li><code>Menu</code></li> <li><code>ToolItem</code></li> <li><code>CoolItem</code></li> <li><code>Combo</code></li> </ul></p>
The deactivate event type (value is 27).
The default selection event type (value is 14).
The de-iconify event type (value is 20).
The dispose event type (value is 12).
The drag detect event type (value is 29).
Style constant to allow embedding (value is 1<<24). <p><b>Used By:</b><ul> <li><code>Composite</code></li> </ul></p>
Keyboard event constant representing the END key (value is (1<<24)+8).
Constant to indicate an error state (value is 1). <p><b>Used By:</b><ul> <li><code>ProgressBar</code></li> </ul></p>
SWT error constant indicating that a value which can not be zero was found to be (value is 7).
SWT error constant indicating that the underlying operating system was unable to provide count information (value is 36).
SWT error constant indicating that the underlying operating system was unable to provide enabled/disabled state information (value is 31).
SWT error constant indicating that the underlying operating system was unable to provide the value of an item (value is 8).
SWT error constant indicating that the underlying operating system was unable to provide the height of an item (value is 11).
SWT error constant indicating that the underlying operating system was unable to provide the selection (value is 9).
SWT error constant indicating that the underlying operating system was unable to provide the text of a widget (value is 12).
SWT error constant indicating that the matrix is not invertible (value is 10).
SWT error constant indicating that the underlying operating system was unable to set the enabled state (value is 30).
SWT error constant indicating that the underlying operating system was unable to set the menu (value is 29).
SWT error constant indicating that the underlying operating system was unable to set the selection of a widget (value is 28).
SWT error constant indicating that the underlying operating system was unable to set the text of a widget (value is 13).
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).
SWT error constant indicating that an exception happened when executing a runnable (value is 46).
SWT error constant indicating that an unsatisfied link error occurred while attempting to load a library (value is 47).
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).
SWT error constant indicating that an invalid argument was passed in (value is 5).
SWT error constant indicating that a font is not valid (value is 48).
SWT error constant indicating that a graphics operation was attempted with an image having an invalid format (value is 40).
SWT error constant indicating that a provided widget can not be used as a parent in the current operation (value is 32).
SWT error constant indicating that a value was found to be outside the allowable range (value is 6).
SWT error constant indicating that an attempt was made to subclass an SWT widget class without implementing the <code>checkSubclass()</code> method (value is 43).
SWT error constant indicating that an input/output operation failed during the execution of an SWT operation (value is 39).
SWT error constant indicating that the underlying operating system was unable to add an item (value is 14).
SWT error constant indicating that the underlying operating system was unable to remove an item (value is 15).
SWT error constant indicating that a menu item which needed to have the cascade style had some other style instead (value is 27).
SWT error constant indicating that a menu which needed to have the menu bar style had some other style instead (value is 33).
SWT error constant indicating that a menu which needed to have the drop down style had some other style instead (value is 21).
SWT error constant indicating that a menu which needed to have the pop up menu style had some other style instead (value is 37).
SWT error constant indicating that a particular feature has not been implemented on this platform (value is 20).
SWT error constant indicating that the graphics library is not available (value is 16).
SWT error constant indicating that no more handles for an operating system resource are available (value is 2).
SWT error constant indicating that no more callback resources are available (value is 3).
SWT error constant indicating that a null argument was passed in (value is 4).
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).
SWT error constant indicating that no error number was specified (value is 1).
SWT error constant indicating that a graphics operation was attempted with an image of an unsupported depth (value is 38).
SWT error constant indicating that a graphics operation was attempted with an image having a valid but unsupported format (value is 42).
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).
ASCII character convenience constant for the escape character (value is the <code>char</code> with value 27).
The erase item event type (value is 40).
The expand event type (value is 17).
Keyboard event constant representing the F1 key (value is (1<<24)+10).
Keyboard event constant representing the F10 key (value is (1<<24)+19).
Keyboard event constant representing the F11 key (value is (1<<24)+20).
Keyboard event constant representing the F12 key (value is (1<<24)+21).
Keyboard event constant representing the F13 key (value is (1<<24)+22).
Keyboard event constant representing the F14 key (value is (1<<24)+23).
Keyboard event constant representing the F15 key (value is (1<<24)+24).
Keyboard event constant representing the F2 key (value is (1<<24)+11).
Keyboard event constant representing the F3 key (value is (1<<24)+12).
Keyboard event constant representing the F4 key (value is (1<<24)+13).
Keyboard event constant representing the F5 key (value is (1<<24)+14).
Keyboard event constant representing the F6 key (value is (1<<24)+15).
Keyboard event constant representing the F7 key (value is (1<<24)+16).
Keyboard event constant representing the F8 key (value is (1<<24)+17).
Keyboard event constant representing the F9 key (value is (1<<24)+18).
Style constant for vertical alignment or orientation behavior (value is 4). <p><b>Used By:</b><ul> <li><code>GridLayout</code> type</li> </ul></p>
Even odd rule for filling operations (value is 1).
Winding rule for filling operations (value is 2).
Style constant for flat appearance. (value is 1<<23). <br>Note that this is a <em>HINT</em>. <p><b>Used By:</b><ul> <li><code>Button</code></li> <li><code>ToolBar</code></li> </ul></p>
Event detail field that indicates a user-interface component state is focused (value is 1<<2).
Event detail field that indicates a user-interface component draws the foreground (value is 1<<4).
Style constant for full row selection behavior and selection constant indicating that a full line should be drawn. (value is 1<<16). <br>Note that for some widgets this is a <em>HINT</em>. <p><b>Used By:</b><ul> <li><code>Table</code></li> <li><code>Tree</code></li> <li><code>StyledText</code></li> <li><code>TextLayout</code></li> </ul></p>
The focus in event type (value is 15).
The focus out event type (value is 16).
Keyboard event constant representing the help key (value is (1<<24)+81).
Style constant for selection hiding behavior when the widget loses focus (value is 1<<15). <br>Note that this is a <em>HINT</em>. <p><b>Used By:</b><ul> <li><code>Table</code></li> </ul></p>
Indicates high quality (value is 2).
Keyboard event constant representing the HOME key (value is (1<<24)+7).
Style constant for horizontal alignment or orientation behavior (value is 1<<8). <p><b>Used By:</b><ul> <li><code>Label</code></li> <li><code>ProgressBar</code></li> <li><code>Sash</code></li> <li><code>Scale</code></li> <li><code>ScrollBar</code></li> <li><code>Slider</code></li> <li><code>ToolBar</code></li> <li><code>FillLayout</code> type</li> <li><code>RowLayout</code> type</li> </ul></p>
Event detail field that indicates a user-interface component state is hot (value is 1<<5).
Style constant for horizontal scrollbar behavior (value is 1<<8). <p><b>Used By:</b><ul> <li><code>Scrollable</code> and subclasses</li> </ul></p>
The hardware key down event type (value is 33).
The hardware key up event type (value is 34).
The help event type (value is 28).
The hide event type (value is 23).
Constant indicating that an image or operation is of type icon (value is 1).
The <code>MessageBox</code> style constant for error icon behavior (value is 1).
The <code>MessageBox</code> style constant for information icon behavior (value is 1<<1).
The <code>MessageBox</code> style constant for question icon behavior (value is 1<<2).
The <code>MessageBox</code> style constant for warning icon behavior (value is 1<<3).
The <code>MessageBox</code> style constant for "working" icon behavior (value is 1<<4).
The <code>MessageBox</code> style constant for an IGNORE button; the only valid combination is ABORT|RETRY|IGNORE (value is 1<<11).
Image format constant indicating a Windows BMP format image (value is 0).
Image format constant indicating a run-length encoded Windows BMP format image (value is 1).
The <code>Image</code> constructor argument indicating that the new image should be a copy of the image provided as an argument (value is 0).
The <code>Image</code> constructor argument indicating that the new image should have the appearance of a "disabled" (using the platform's rules for how this should look) copy of the image provided as an argument (value is 1).
Image format constant indicating a GIF format image (value is 2).
The <code>Image</code> 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).
Image format constant indicating a ICO format image (value is 3).
Image format constant indicating a JPEG format image (value is 4).
Image format constant indicating an OS/2 BMP format image (value is 7).
Image format constant indicating a PNG format image (value is 5).
Image format constant indicating a TIFF format image (value is 6).
Image format constant indicating an unknown image type (value is -1).
Style constant for progress bar behavior (value is 1<<1). <p><b>Used By:</b><ul> <li><code>ProgressBar</code></li> </ul></p>
The <code>Composite</code> 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.
The <code>Composite</code> constant to indicate that an attribute (such as background) is inherited by all children.
The <code>Composite</code> constant to indicate that an attribute (such as background) is not inherited by the children (value is 0).
Keyboard event constant representing the INSERT key (value is (1<<24)+9).
The font style constant indicating an italic font (value is 1<<1).
The iconify event type (value is 19).
The IME composition event type (value is 43). <p> The IME composition event is sent to allow custom text editors to implement in-line editing of international text. </p>
Line drawing style for bevel joins (value is 3).
Line drawing style for miter joins (value is 1).
Line drawing style for rounded joins (value is 2).
Accelerator constant used to differentiate a key code from a unicode character.
Keyboard event constant representing the numeric key pad zero key (value is (1<<24)+48).
Keyboard event constant representing the numeric key pad one key (value is (1<<24)+49).
Keyboard event constant representing the numeric key pad two key (value is (1<<24)+50).
Keyboard event constant representing the numeric key pad three key (value is (1<<24)+51).
Keyboard event constant representing the numeric key pad four key (value is (1<<24)+52).
Keyboard event constant representing the numeric key pad five key (value is (1<<24)+53).
Keyboard event constant representing the numeric key pad six key (value is (1<<24)+54).
Keyboard event constant representing the numeric key pad seven key (value is (1<<24)+55).
Keyboard event constant representing the numeric key pad eight key (value is (1<<24)+56).
Keyboard event constant representing the numeric key pad nine key (value is (1<<24)+57).
Keyboard event constant representing the numeric key pad add key (value is (1<<24)+43).
Keyboard event constant representing the numeric key pad enter key (value is (1<<24)+80).
Keyboard event constant representing the numeric key pad decimal key (value is (1<<24)+46).
Keyboard event constant representing the numeric key pad divide key (value is (1<<24)+47).
Keyboard event constant representing the numeric key pad equal key (value is (1<<24)+61).
Keyboard event constant representing the numeric key pad multiply key (value is (1<<24)+42).
Keyboard event constant representing the numeric key pad subtract key (value is (1<<24)+45).
Accelerator constant used to extract the key stroke portion of an accelerator.
The key down event type (value is 1).
The key up event type (value is 2).
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).
Style constant for leading alignment (value is 1<<14). <p><b>Used By:</b><ul> <li><code>Button</code></li> <li><code>Label</code></li> <li><code>TableColumn</code></li> <li><code>Tracker</code></li> <li><code>FormAttachment</code> in a <code>FormLayout</code></li> </ul></p>
Style constant for align left behavior (value is 1<<14). This is a synonym for LEAD (value is 1<<14). Newer applications should use LEAD instead of LEFT to make code more understandable on right-to-left platforms.
Style constant for left to right orientation (value is 1<<25). <p> 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. <br>Note that this is a <em>HINT</em>. </p> <p><b>Used By:</b><ul> <li><code>Control</code></li> <li><code>Menu</code></li> <li><code>GC</code></li> </ul></p>
ASCII character convenience constant for the line feed character (value is the <code>char</code> '\n').
Line drawing style for custom dashed lines (value is 6).
Line drawing style for dashed lines (value is 2).
Line drawing style for alternating dash-dot lines (value is 4).
Line drawing style for dash-dot-dot lines (value is 5).
Line drawing style for dotted lines (value is 3).
Line drawing style for solid lines (value is 1).
Style constant for long date/time format (value is 1<<28). <p> 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. <br>Note that this is a <em>HINT</em>. </p> <p><b>Used By:</b><ul> <li><code>DateTime</code></li> </ul></p>
Indicates low quality (value is 1).
Style constant for maximize box trim (value is 1<<10). <p><b>Used By:</b><ul> <li><code>Decorations</code> and subclasses</li> </ul></p>
Style constant for medium date/time format (value is 1<<16). <p> A medium date displays the day, month and year. A medium time displays hours, minutes, and seconds. <br>Note that this is a <em>HINT</em>. </p> <p><b>Used By:</b><ul> <li><code>DateTime</code></li> </ul></p>
Style constant for shell menu trim (value is 1<<6, since we do not distinguish between CLOSE style and MENU style). <p><b>Used By:</b><ul> <li><code>Decorations</code> and subclasses</li> </ul></p>
Style constant for minimize box trim (value is 1<<7). <p><b>Used By:</b><ul> <li><code>Decorations</code> and subclasses</li> </ul></p>
Style constant to indicate coordinate mirroring (value is 1<<27). <p><b>Used By:</b><ul> <li><code>Control</code></li> <li><code>Menu</code></li> </ul></p>
Keyboard and/or mouse event mask indicating that the MOD1 key was pushed on the keyboard when the event was generated.
Keyboard and/or mouse event mask indicating that the MOD2 key was pushed on the keyboard when the event was generated.
Keyboard and/or mouse event mask indicating that the MOD3 key was pushed on the keyboard when the event was generated.
Keyboard and/or mouse event mask indicating that the MOD4 key was pushed on the keyboard when the event was generated.
Style constant for modeless behavior (value is 0). <br>Note that this is a <em>HINT</em>. <p><b>Used By:</b><ul> <li><code>Dialog</code></li> <li><code>Shell</code></li> </ul></p>
Keyboard and/or mouse event mask indicating all possible keyboard modifiers.
The character movement type (value is 1<<0). This constant is used to move a text offset over a character.
The 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.
The 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.
The 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.
The 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.
Style constant specifying that a Browser should use a Mozilla GRE for rendering its content (value is 1<<15). <p> <p><b>Used By:</b><ul> <li><code>Browser</code></li> </ul></p>
Style constant for multi-selection behavior in lists and multiple line support on text fields (value is 1<<1). <p><b>Used By:</b><ul> <li><code>Text</code></li> <li><code>List</code></li> <li><code>FileDialog</code></li> </ul></p>
The measure item event type (value is 41).
The menu detect event type (value is 35).
The modify event type (value is 24).
The mouse double click event type (value is 8).
The mouse down event type (value is 3).
The mouse enter event type (value is 6).
The mouse exit event type (value is 7).
The mouse hover event type (value is 32).
The mouse move event type (value is 5).
The mouse up event type (value is 4).
The mouse wheel event type (value is 37).
The move event type (value is 10).
Input Method Editor style constant for native input behavior (value is 1<<3).
The <code>MessageBox</code> style constant for NO button; valid combinations are YES|NO, YES|NO|CANCEL (value is 1<<7).
A constant known to be zero (0), typically used in operations which take bit flags to indicate that "no bits are set".
The font style constant indicating a normal weight, non-italic font (value is 0). This constant is also used with <code>ProgressBar</code> to indicate a normal state. <p><b>Used By:</b><ul> <li><code>ProgressBar</code></li> </ul></p>
Style constant for no background behavior (value is 1<<18). <p> 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. </p><p><b>Used By:</b><ul> <li><code>Composite</code></li> </ul></p>
Style constant for no focus from the mouse behavior (value is 1<<19). <p> 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.
Style constant for no paint event merging behavior (value is 1<<21).
Style constant for preventing child radio group behavior (value is 1<<22). <p><b>Used By:</b><ul> <li><code>Composite</code></li> </ul></p>
Style constant for no redraw on resize behavior (value is 1<<20). <p> 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.
Style constant for no scrollbar behavior (value is 1<<4). <p> 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.
Style constant to ensure no trimmings are used (value is 1<<3). <br>Note that this overrides all other trim styles. <p><b>Used By:</b><ul> <li><code>Decorations</code> and subclasses</li> </ul></p>
A constant known to be zero (0), used in operations which take pointers to indicate a null argument.
Keyboard event constant representing the num lock key (value is (1<<24)+83).
The null event type (value is 0).
Indicates that a property is off (value is 0).
The <code>MessageBox</code> style constant for an OK button; valid combinations are OK, OK|CANCEL (value is 1<<5).
Indicates that a property is on (value is 1).
Style constant for always on top behavior (value is 1<<14). <br>Note that this is a <em>HINT</em>. <p><b>Used By:</b><ul> <li><code>Shell</code> and subclasses</li> </ul></p>
The <code>FileDialog</code> style constant for open file dialog behavior (value is 1<<12).
Keyboard event constant representing the PAGE DOWN key (value is (1<<24)+6).
Keyboard event constant representing the PAGE UP key (value is (1<<24)+5).
Style constant for password behavior (value is 1<<22). <p><b>Used By:</b><ul> <li><code>Text</code></li> </ul></p>
Path constant that represents a "close" operation (value is 5).
Path constant that represents a "cubic curve to" operation (value is 4).
Path constant that represents a "line to" operation (value is 2).
Path constant that represents a "move to" operation (value is 1).
Path constant that represents a "quadratic curve to" operation (value is 3).
Keyboard event constant representing the pause key (value is (1<<24)+85).
Constant to a indicate a paused state (value is 4). <p><b>Used By:</b><ul> <li><code>ProgressBar</code></li> </ul></p>
Input Method Editor style constant for phonetic input behavior (value is 1<<4).
Style constant for pop up menu behavior (value is 1<<3). <p><b>Used By:</b><ul> <li><code>Menu</code></li> </ul></p>
Style constant for primary modal behavior (value is 1<<15). <br>Note that this is a <em>HINT</em>. <p><b>Used By:</b><ul> <li><code>Dialog</code></li> <li><code>Shell</code></li> </ul></p>
Keyboard event constant representing the print screen key (value is (1<<24)+87).
Style constant for push button behavior (value is 1<<3). <p><b>Used By:</b><ul> <li><code>Button</code></li> <li><code>MenuItem</code></li> <li><code>ToolItem</code></li> </ul></p>
The paint event type (value is 9).
The paint item event type (value is 42).
Style constant for radio button behavior (value is 1<<4). <p><b>Used By:</b><ul> <li><code>Button</code></li> <li><code>MenuItem</code></li> <li><code>ToolItem</code></li> </ul></p>
Style constant for read-only behavior (value is 1<<3). <p><b>Used By:</b><ul> <li><code>Combo</code></li> <li><code>Text</code></li> </ul></p>
Style constant for resize box trim (value is 1<<4). <p><b>Used By:</b><ul> <li><code>Decorations</code> and subclasses</li> <li><code>Tracker</code></li> </ul></p>
The <code>MessageBox</code> style constant for a RETRY button; valid combinations are ABORT|RETRY|IGNORE, RETRY|CANCEL (value is 1<<10).
Style constant for align right behavior (value is 1<<17). This is a synonym for TRAIL (value is 1<<17). Newer applications should use TRAIL instead of RIGHT to make code more understandable on right-to-left platforms.
Style constant for right to left orientation (value is 1<<26). <p> 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. <br>Note that this is a <em>HINT</em>. </p> <p><b>Used By:</b><ul> <li><code>Control</code></li> <li><code>Menu</code></li> <li><code>GC</code></li> </ul></p>
Input Method Editor style constant for romanicized input behavior (value is 1<<5).
The resize event type (value is 11).
The <code>FileDialog</code> style constant for save file dialog behavior (value is 1<<13).
Constants to indicate line scrolling (value is 1). <p><b>Used By:</b><ul> <li><code>Control</code></li> </ul></p>
Keyboard event constant representing the scroll lock key (value is (1<<24)+84).
Constants to indicate page scrolling (value is 2). <p><b>Used By:</b><ul> <li><code>Control</code></li> </ul></p>
Style constant for search behavior (value is 1<<7). <p><b>Used By:</b><ul> <li><code>Text</code></li> </ul></p>
Event detail field that indicates a user-interface component state is selected (value is 1<<1).
Style constant for line separator behavior (value is 1<<1). <p><b>Used By:</b><ul> <li><code>Label</code></li> <li><code>MenuItem</code></li> <li><code>ToolItem</code></li> </ul></p>
Style constant for shadow etched in behavior (value is 1<<4). <br>Note that this is a <em>HINT</em>. It is ignored on all platforms except Motif. <p><b>Used By:</b><ul> <li><code>Group</code></li> </ul></p>
Style constant for shadow etched out behavior (value is 1<<6). <br>Note that this is a <em>HINT</em>. It is ignored on all platforms except Motif. <p><b>Used By:</b><ul> <li><code>Group</code></li> </ul></p>
Style constant for shadow in behavior (value is 1<<2). <br>Note that this is a <em>HINT</em>. <p><b>Used By:</b><ul> <li><code>Label</code></li> <li><code>Group</code></li> </ul></p>
Style constant for no shadow behavior (value is 1<<5). <br>Note that this is a <em>HINT</em>. <p><b>Used By:</b><ul> <li><code>Label</code></li> <li><code>Group</code></li> </ul></p>
Style constant for shadow out behavior (value is 1<<3). <br>Note that this is a <em>HINT</em>. <p><b>Used By:</b><ul> <li><code>Label</code></li> <li><code>Group</code></li> <li><code>ToolBar</code></li> </ul></p>
Trim style convenience constant for the most common top level shell appearance (value is CLOSE|TITLE|MIN|MAX|RESIZE). <p><b>Used By:</b><ul> <li><code>Shell</code></li> </ul></p>
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).
Style constant for short date/time format (value is 1<<15). <p> A short date displays the month and year. A short time displays hours and minutes. <br>Note that this is a <em>HINT</em>. </p> <p><b>Used By:</b><ul> <li><code>DateTime</code></li> </ul></p>
Style constant for simple (not drop down) behavior (value is 1<<6). <p><b>Used By:</b><ul> <li><code>Combo</code></li> </ul></p>
Style constant for single selection behavior in lists and single line support on text fields (value is 1<<2). <p><b>Used By:</b><ul> <li><code>Text</code></li> <li><code>List</code></li> <li><code>Table</code></li> <li><code>Tree</code></li> </ul></p>
Style constant for smooth appearance. (value is 1<<16). <br>Note that this is a <em>HINT</em>. <p><b>Used By:</b><ul> <li><code>ProgressBar</code></li> <li><code>Sash</code></li> </ul></p>
Style constant for system modal behavior (value is 1<<17). <br>Note that this is a <em>HINT</em>. <p><b>Used By:</b><ul> <li><code>Dialog</code></li> <li><code>Shell</code></li> </ul></p>
The selection event type (value is 13).
The set data event type (value is 36).
The settings changed event type (value is 39). <p> 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. </p>
The show event type (value is 22).
ASCII character convenience constant for the tab character (value is the <code>char</code> '\t').
Style constant for time display (value is 1<<7). <p><b>Used By:</b><ul> <li><code>DateTime</code></li> </ul></p>
Style constant for title area trim (value is 1<<5). <p><b>Used By:</b><ul> <li><code>Decorations</code> and subclasses</li> </ul></p>
Style constant for toggle button behavior (value is 1<<1). <p><b>Used By:</b><ul> <li><code>Button</code></li> </ul></p>
Style constant for tool window behavior (value is 1<<2). <p> 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. <br>Note that this is a <em>HINT</em>. </p><p><b>Used By:</b><ul> <li><code>Decorations</code> and subclasses</li> </ul></p>
Style constant for align top behavior (value is 1<<7, since align UP and align TOP are considered the same). <p><b>Used By:</b><ul> <li><code>FormAttachment</code> in a <code>FormLayout</code></li> </ul></p>
Style constant for trailing alignment (value is 1<<17). <p><b>Used By:</b><ul> <li><code>Button</code></li> <li><code>Label</code></li> <li><code>TableColumn</code></li> <li><code>Tracker</code></li> <li><code>FormAttachment</code> in a <code>FormLayout</code></li> </ul></p>
Image transparency constant indicating that the image contains alpha transparency information (value is 1<<0).
Image transparency constant indicating that the image contains a transparency mask (value is 1<<1).
Image transparency constant indicating that the image contains no transparency information (value is 0).
Image transparency constant indicating that the image contains a transparent pixel (value is 1<<2).
Style constant for transparent behavior (value is 1<<30). <p> 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. </p><p><b>Used By:</b><ul> <li><code>Composite</code></li> </ul></p>
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).
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).
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).
Traversal event detail field value indicating that a mnemonic key sequence was pressed (value is 1<<7).
Traversal event detail field value indicating that no traversal action should be taken (value is 0).
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).
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).
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).
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).
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).
The traverse event type (value is 31).
Style constant to indicate double underline (value is 1). <p><b>Used By:</b><ul> <li><code>TextStyle</code></li> </ul></p>
Style constant to indicate error underline (value is 2). <p><b>Used By:</b><ul> <li><code>TextStyle</code></li> </ul></p>
Style constant to indicate single underline (value is 0). <p><b>Used By:</b><ul> <li><code>TextStyle</code></li> </ul></p>
Style constant to indicate squiggle underline (value is 3). <p><b>Used By:</b><ul> <li><code>TextStyle</code></li> </ul></p>
Style constant for align up behavior (value is 1<<7, since align UP and align TOP are considered the same). <p><b>Used By:</b><ul> <li><code>Button</code> with <code>ARROW</code> style</li> <li><code>Tracker</code></li> <li><code>Table</code></li> <li><code>Tree</code></li> </ul></p>
Style constant for vertical alignment or orientation behavior (value is 1<<9). <p><b>Used By:</b><ul> <li><code>Label</code></li> <li><code>ProgressBar</code></li> <li><code>Sash</code></li> <li><code>Scale</code></li> <li><code>ScrollBar</code></li> <li><code>Slider</code></li> <li><code>ToolBar</code></li> <li><code>CoolBar</code></li> <li><code>FillLayout</code> type</li> <li><code>RowLayout</code> type</li> </ul></p>
Style constant to allow virtual data (value is 1<<28). <p><b>Used By:</b><ul> <li><code>Table</code></li> <li><code>Tree</code></li> </ul></p>
Style constant for vertical scrollbar behavior (value is 1<<9). <p><b>Used By:</b><ul> <li><code>Scrollable</code> and subclasses</li> </ul></p>
The verify event type (value is 25).
Style constant for automatic line wrap behavior (value is 1<<6). <p><b>Used By:</b><ul> <li><code>Label</code></li> <li><code>Text</code></li> <li><code>ToolBar</code></li> <li><code>Spinner</code></li> </ul></p>
The <code>MessageBox</code> style constant for YES button; valid combinations are YES|NO, YES|NO|CANCEL (value is 1<<6).
This class provides access to a small number of SWT system-wide methods, and in addition defines the public constants provided by SWT. <p> 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. </p><p> 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 <em>HINT</em>s. The set of widgets which support a particular <em>HINT</em> may change from release to release, although we typically will not withdraw support for a <em>HINT</em> once it is made available. </p>
@see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>