Class SWT
- java.lang.Object
-
- org.eclipse.swt.SWT
-
public class SWT extends java.lang.ObjectThis class provides access to a small number of SWT system-wide methods, and in addition defines the public constants provided by SWT.By defining constants like UP and DOWN in a single class, SWT can share common names and concepts at the same time minimizing the number of classes, names and constants for the application programmer.
Note that some of the constants provided by this class represent optional, appearance related aspects of widgets which are available either only on some window systems, or for a differing set of widgets on each window system. These constants are marked as HINTs. The set of widgets which support a particular HINT may change from release to release, although we typically will not withdraw support for a HINT once it is made available.
- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description static intABORTTheMessageBoxstyle constant for an ABORT button; the only valid combination is ABORT|RETRY|IGNORE (value is 1<<9).static intActivateThe activate event type (value is 26).static intALLA constant indicating that a given operation should be performed on all widgets (value is 1<<0).static intALTkeyboard 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 intAPPLICATION_MODALStyle constant for application modal behavior (value is 1<<16).static intArmThe arm event type (value is 30).static intARROWStyle constant for arrow button behavior (value is 1<<2).static intARROW_DOWNKeyboard event constant representing the DOWN ARROW key (value is (1<<24)+2).static intARROW_LEFTKeyboard event constant representing the LEFT ARROW key (value is (1<<24)+3).static intARROW_RIGHTKeyboard event constant representing the RIGHT ARROW key (value is (1<<24)+4).static intARROW_UPKeyboard event constant representing the UP ARROW key (value is (1<<24)+1).static intBACKGROUNDEvent detail field that indicates a user-interface component draws the background (value is 1<<3).static intBALLOONStyle constant for balloon behavior (value is 1<<12).static intBARStyle constant for menu bar behavior (value is 1<<1).static intBEGINNINGStyle constant for vertical alignment or orientation behavior (value is 1).static intBOLDThe font style constant indicating a bold weight font (value is 1<<0).static intBORDERStyle constant for bordered behavior (value is 1<<11).static intBOTTOMStyle constant for align bottom behavior (value is 1<<10, since align DOWN and align BOTTOM are considered the same).static intBREAKKeyboard event constant representing the break key (value is (1<<24)+86).static charBSASCII character convenience constant for the backspace character (value is thechar'\b').static intBUTTON_MASKKeyboard and/or mouse event mask indicating all possible mouse buttons.static intBUTTON1Keyboard and/or mouse event mask indicating that mouse button one was pushed when the event was generated.static intBUTTON2Keyboard and/or mouse event mask indicating that mouse button two was pushed when the event was generated.static intBUTTON3Keyboard and/or mouse event mask indicating that mouse button three was pushed when the event was generated.static intBUTTON4Keyboard and/or mouse event mask indicating that mouse button four was pushed when the event was generated.static intBUTTON5Keyboard and/or mouse event mask indicating that mouse button five was pushed when the event was generated.static intCALENDARStyle constant for calendar display (value is 1<<10).static intCANCELTheMessageBoxstyle constant for a CANCEL button; valid combinations are OK|CANCEL, YES|NO|CANCEL, RETRY|CANCEL (value is 1<<8).static intCAP_FLATLine drawing style for flat end caps (value is 1).static intCAP_ROUNDLine drawing style for rounded end caps (value is 2).static intCAP_SQUARELine drawing style for square end caps (value is 3).static intCAPS_LOCKKeyboard event constant representing the caps lock key (value is (1<<24)+82).static intCASCADEStyle constant for cascade behavior (value is 1<<6).static intCENTERStyle constant for align center behavior (value is 1<<24).static intCHANGEDA constant indicating that widgets have changed.static intCHECKStyle constant for check box behavior (value is 1<<5).static intCLIP_CHILDRENStyle constant indicating that the window manager should clip a widget's children with respect to its viewable area.static intCLIP_SIBLINGSStyle constant indicating that the window manager should clip a widget's siblings with respect to its viewable area.static intCloseThe close event type (value is 21).static intCLOSEStyle constant for close box trim (value is 1<<6, since we do not distinguish between CLOSE style and MENU style).static intCollapseThe collapse event type (value is 18).static intCOLOR_BLACKDefault color black (value is 2).static intCOLOR_BLUEDefault color blue (value is 9).static intCOLOR_CYANDefault color cyan (value is 13).static intCOLOR_DARK_BLUEDefault color dark blue (value is 10).static intCOLOR_DARK_CYANDefault color dark cyan (value is 14).static intCOLOR_DARK_GRAYDefault color dark gray (value is 16).static intCOLOR_DARK_GREENDefault color dark green (value is 6).static intCOLOR_DARK_MAGENTADefault color dark magenta (value is 12).static intCOLOR_DARK_REDDefault color dark red (value is 4).static intCOLOR_DARK_YELLOWDefault color dark yellow (value is 8).static intCOLOR_GRAYDefault color gray (value is 15).static intCOLOR_GREENDefault color green (value is 5).static intCOLOR_INFO_BACKGROUNDSystem color used to paint tooltip background areas (value is 29).static intCOLOR_INFO_FOREGROUNDSystem color used to paint tooltip text (value is 28).static intCOLOR_LIST_BACKGROUNDSystem color used to paint list background areas (value is 25).static intCOLOR_LIST_FOREGROUNDSystem color used to paint list foreground areas (value is 24).static intCOLOR_LIST_SELECTIONSystem color used to paint list selection background areas (value is 26).static intCOLOR_LIST_SELECTION_TEXTSystem color used to paint list selected text (value is 27).static intCOLOR_MAGENTADefault color magenta (value is 11).static intCOLOR_REDDefault color red (value is 3).static intCOLOR_TITLE_BACKGROUNDSystem color used to paint title background areas (value is 31).static intCOLOR_TITLE_BACKGROUND_GRADIENTSystem color used to paint title background gradient (value is 32).static intCOLOR_TITLE_FOREGROUNDSystem color used to paint title text (value is 30).static intCOLOR_TITLE_INACTIVE_BACKGROUNDSystem color used to paint inactive title background areas (value is 34).static intCOLOR_TITLE_INACTIVE_BACKGROUND_GRADIENTSystem color used to paint inactive title background gradient (value is 35).static intCOLOR_TITLE_INACTIVE_FOREGROUNDSystem color used to paint inactive title text (value is 33).static intCOLOR_TRANSPARENTSystem color used to paint with alpha 0 (value is 37).static intCOLOR_WHITEDefault color white (value is 1).static intCOLOR_WIDGET_BACKGROUNDSystem color used to paint background areas (value is 22).static intCOLOR_WIDGET_BORDERSystem color used to paint border areas (value is 23).static intCOLOR_WIDGET_DARK_SHADOWSystem color used to paint dark shadow areas (value is 17).static intCOLOR_WIDGET_FOREGROUNDSystem color used to paint foreground areas (value is 21).static intCOLOR_WIDGET_HIGHLIGHT_SHADOWSystem color used to paint highlight shadow areas (value is 20).static intCOLOR_WIDGET_LIGHT_SHADOWSystem color used to paint light shadow areas (value is 19).static intCOLOR_WIDGET_NORMAL_SHADOWSystem color used to paint normal shadow areas (value is 18).static intCOLOR_YELLOWDefault color yellow (value is 7).static intCOMMANDKeyboard 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 intCONTROLKeyboard and/or mouse event mask indicating that the CTRL key was pushed on the keyboard when the event was generated.static charCRASCII character convenience constant for the carriage return character (value is thechar'\r').static intCTRLKeyboard 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 intCURSOR_APPSTARTINGSystem app startup cursor (value is 3).static intCURSOR_ARROWSystem arrow cursor (value is 0).static intCURSOR_CROSSSystem cross hair cursor (value is 2).static intCURSOR_HANDSystem hand cursor (value is 21).static intCURSOR_HELPSystem help cursor (value is 4).static intCURSOR_IBEAMSystem i-beam cursor (value is 19).static intCURSOR_NOSystem "not allowed" cursor (value is 20).static intCURSOR_SIZEALLSystem resize all directions cursor (value is 5).static intCURSOR_SIZEESystem resize east cursor (value is 12).static intCURSOR_SIZENSystem resize north cursor (value is 10).static intCURSOR_SIZENESystem resize north-east cursor (value is 14).static intCURSOR_SIZENESWSystem resize north-east-south-west cursor (value is 6).static intCURSOR_SIZENSSystem resize north-south cursor (value is 7).static intCURSOR_SIZENWSystem resize north-west cursor (value is 17).static intCURSOR_SIZENWSESystem resize north-west-south-east cursor (value is 8).static intCURSOR_SIZESSystem resize south cursor (value is 11).static intCURSOR_SIZESESystem resize south-east cursor (value is 15).static intCURSOR_SIZESWSystem resize south-west cursor (value is 16).static intCURSOR_SIZEWSystem resize west cursor (value is 13).static intCURSOR_SIZEWESystem resize west-east cursor (value is 9).static intCURSOR_UPARROWSystem up arrow cursor (value is 18).static intCURSOR_WAITSystem wait cursor (value is 1).static intDATEStyle constant for date display (value is 1<<5).static intDeactivateThe deactivate event type (value is 27).static intDEFAULTIndicates that a default should be used (value is -1).static intDefaultSelectionThe default selection event type (value is 14).static intDEFERA constant indicating that a given operation should be deferred.static charDELASCII character convenience constant for the delete character (value is thecharwith value 127).static intDIALOG_TRIMTrim style convenience constant for the most common dialog shell appearance (value is CLOSE|TITLE|BORDER).static intDisposeThe dispose event type (value is 12).static intDM_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).static intDM_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).static intDM_FILL_PREVIOUSGIF image disposal method constants indicating that the disposal method is to restore the previous picture (value is 3).static intDM_UNSPECIFIEDGIF image disposal method constants indicating that the disposal method is unspecified (value is 0).static intDOUBLE_BUFFEREDStyle constant to indicate double buffering (value is 1<<29).static intDOWNStyle constant for align down behavior (value is 1<<10, since align DOWN and align BOTTOM are considered the same).static intDRAGIndicates that a user-interface component is being dragged, for example dragging the thumb of a scroll bar (value is 1).static intDragDetectThe drag detect event type (value is 29).static intDRAW_DELIMITERDraw constant indicating whether the string drawing operation should handle line-delimiters (value is 1<<1).static intDRAW_MNEMONICDraw constant indicating whether the string drawing operation should handle mnemonics (value is 1<<3).static intDRAW_TABDraw constant indicating whether the string drawing operation should expand TAB characters (value is 1<<2).static intDRAW_TRANSPARENTDraw constant indicating whether the drawing operation should fill the background (value is 1<<0).static intDROP_DOWNStyle constant for drop down menu/list behavior (value is 1<<2).static intENDKeyboard event constant representing the END key (value is (1<<24)+8).static intERRORConstant to indicate an error state (value is 1).static intERROR_CANNOT_BE_ZEROSWT error constant indicating that a value which can not be zero was found to be (value is 7).static intERROR_CANNOT_GET_COUNTSWT error constant indicating that the underlying operating system was unable to provide count information (value is 36).static intERROR_CANNOT_GET_ENABLEDSWT error constant indicating that the underlying operating system was unable to provide enabled/disabled state information (value is 31).static intERROR_CANNOT_GET_ITEMSWT error constant indicating that the underlying operating system was unable to provide the value of an item (value is 8).static intERROR_CANNOT_GET_ITEM_HEIGHTSWT error constant indicating that the underlying operating system was unable to provide the height of an item (value is 11).static intERROR_CANNOT_GET_SELECTIONSWT error constant indicating that the underlying operating system was unable to provide the selection (value is 9).static intERROR_CANNOT_GET_TEXTSWT error constant indicating that the underlying operating system was unable to provide the text of a widget (value is 12).static intERROR_CANNOT_INVERT_MATRIXSWT error constant indicating that the matrix is not invertible (value is 10).static intERROR_CANNOT_SET_ENABLEDSWT error constant indicating that the underlying operating system was unable to set the enabled state (value is 30).static intERROR_CANNOT_SET_MENUSWT error constant indicating that the underlying operating system was unable to set the menu (value is 29).static intERROR_CANNOT_SET_SELECTIONSWT error constant indicating that the underlying operating system was unable to set the selection of a widget (value is 28).static intERROR_CANNOT_SET_TEXTSWT error constant indicating that the underlying operating system was unable to set the text of a widget (value is 13).static intERROR_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).static intERROR_FAILED_EVALUATESWT error constant indicating that an exception happened when evaluating a javascript expression (value is 50).static intERROR_FAILED_EXECSWT error constant indicating that an exception happened when executing a runnable (value is 46).static intERROR_FAILED_LOAD_LIBRARYSWT error constant indicating that an unsatisfied link error occurred while attempting to load a library (value is 47).static intERROR_FUNCTION_DISPOSEDSWT error constant indicating that an attempt was made to use an BrowserFunction object which had already been disposed (value is 49).static intERROR_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).static intERROR_INVALID_ARGUMENTSWT error constant indicating that an invalid argument was passed in (value is 5).static intERROR_INVALID_FONTSWT error constant indicating that a font is not valid (value is 48).static intERROR_INVALID_IMAGESWT error constant indicating that a graphics operation was attempted with an image having an invalid format (value is 40).static intERROR_INVALID_PARENTSWT error constant indicating that a provided widget can not be used as a parent in the current operation (value is 32).static intERROR_INVALID_RANGESWT error constant indicating that a value was found to be outside the allowable range (value is 6).static intERROR_INVALID_RETURN_VALUESWT error constant indicating that an invalid value was returned (value is 51).static intERROR_INVALID_SUBCLASSSWT error constant indicating that an attempt was made to subclass an SWT widget class without implementing thecheckSubclass()method (value is 43).static intERROR_IOSWT error constant indicating that an input/output operation failed during the execution of an SWT operation (value is 39).static intERROR_ITEM_NOT_ADDEDSWT error constant indicating that the underlying operating system was unable to add an item (value is 14).static intERROR_ITEM_NOT_REMOVEDSWT error constant indicating that the underlying operating system was unable to remove an item (value is 15).static intERROR_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).static intERROR_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).static intERROR_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).static intERROR_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).static intERROR_NO_GRAPHICS_LIBRARYSWT error constant indicating that the graphics library is not available (value is 16).static intERROR_NO_HANDLESSWT error constant indicating that no more handles for an operating system resource are available (value is 2).static intERROR_NO_MORE_CALLBACKSSWT error constant indicating that no more callback resources are available (value is 3).static intERROR_NOT_IMPLEMENTEDSWT error constant indicating that a particular feature has not been implemented on this platform (value is 20).static intERROR_NULL_ARGUMENTSWT error constant indicating that a null argument was passed in (value is 4).static intERROR_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).static intERROR_UNSPECIFIEDSWT error constant indicating that no error number was specified (value is 1).static intERROR_UNSUPPORTED_DEPTHSWT error constant indicating that a graphics operation was attempted with an image of an unsupported depth (value is 38).static intERROR_UNSUPPORTED_FORMATSWT error constant indicating that a graphics operation was attempted with an image having a valid but unsupported format (value is 42).static intERROR_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).static charESCASCII character convenience constant for the escape character (value is thecharwith value 27).static intExpandThe expand event type (value is 17).static intF1Keyboard event constant representing the F1 key (value is (1<<24)+10).static intF10Keyboard event constant representing the F10 key (value is (1<<24)+19).static intF11Keyboard event constant representing the F11 key (value is (1<<24)+20).static intF12Keyboard event constant representing the F12 key (value is (1<<24)+21).static intF13Keyboard event constant representing the F13 key (value is (1<<24)+22).static intF14Keyboard event constant representing the F14 key (value is (1<<24)+23).static intF15Keyboard event constant representing the F15 key (value is (1<<24)+24).static intF16Keyboard event constant representing the F16 key (value is (1<<25)+25).static intF17Keyboard event constant representing the F17 key (value is (1<<26)+26).static intF18Keyboard event constant representing the F18 key (value is (1<<27)+27).static intF19Keyboard event constant representing the F19 key (value is (1<<28)+28).static intF2Keyboard event constant representing the F2 key (value is (1<<24)+11).static intF20Keyboard event constant representing the F20 key (value is (1<<29)+29).static intF3Keyboard event constant representing the F3 key (value is (1<<24)+12).static intF4Keyboard event constant representing the F4 key (value is (1<<24)+13).static intF5Keyboard event constant representing the F5 key (value is (1<<24)+14).static intF6Keyboard event constant representing the F6 key (value is (1<<24)+15).static intF7Keyboard event constant representing the F7 key (value is (1<<24)+16).static intF8Keyboard event constant representing the F8 key (value is (1<<24)+17).static intF9Keyboard event constant representing the F9 key (value is (1<<24)+18).static intFILLStyle constant for vertical alignment or orientation behavior (value is 4).static intFLATStyle constant for flat appearance.static intFOCUSEDEvent detail field that indicates a user-interface component state is focused (value is 1<<2).static intFocusInThe focus in event type (value is 15).static intFocusOutThe focus out event type (value is 16).static intFOREGROUNDEvent detail field that indicates a user-interface component draws the foreground (value is 1<<4).static intFULL_SELECTIONStyle constant for full row selection behavior and selection constant indicating that a full line should be drawn.static intGESTURE_BEGINGesture event detail field value indicating that a continuous gesture is about to begin.static intGESTURE_ENDGesture event detail field value indicating that a continuous gesture has ended.static intGESTURE_MAGNIFYGesture event detail field value indicating that a magnification gesture has happened.static intGESTURE_PANGesture event detail field value indicating that a panning (two-finger scroll) gesture has happened.static intGESTURE_ROTATEGesture event detail field value indicating that a rotation gesture has happened.static intGESTURE_SWIPEGesture event detail field value indicating that a swipe gesture has happened.static intH_SCROLLStyle constant for horizontal scrollbar behavior (value is 1<<8).static intHelpThe help event type (value is 28).static intHELPKeyboard event constant representing the help key (value is (1<<24)+81).static intHideThe hide event type (value is 23).static intHIDE_SELECTIONStyle constant for selection hiding behavior when the widget loses focus (value is 1<<15).static intHOMEKeyboard event constant representing the HOME key (value is (1<<24)+7).static intHORIZONTALStyle constant for horizontal alignment or orientation behavior (value is 1<<8).static intHOTEvent detail field that indicates a user-interface component state is hot (value is 1<<5).static intICON_CANCELThe style constant for "cancel" icon.static intICON_ERRORTheMessageBoxstyle constant for error icon behavior (value is 1).static intICON_INFORMATIONTheMessageBoxstyle constant for information icon behavior (value is 1<<1).static intICON_QUESTIONTheMessageBoxstyle constant for question icon behavior (value is 1<<2).static intICON_SEARCHThe style constant for "search" icon.static intICON_WARNINGTheMessageBoxstyle constant for warning icon behavior (value is 1<<3).static intICON_WORKINGTheMessageBoxstyle constant for "working" icon behavior (value is 1<<4).static intID_ABOUTID for the About menu item (value is -1).static intID_HIDEID for the Hide menu item (value is -3).static intID_HIDE_OTHERSID for the Hide Others menu item (value is -4).static intID_PREFERENCESID for the Preferences menu item (value is -2).static intID_QUITID for the Quit menu item (value is -6).static intID_SHOW_ALLID for the Show All menu item (value is -5).static intIGNORETheMessageBoxstyle constant for an IGNORE button; the only valid combination is ABORT|RETRY|IGNORE (value is 1<<11).static intIMAGE_BMPImage format constant indicating a Windows BMP format image (value is 0).static intIMAGE_BMP_RLEImage format constant indicating a run-length encoded Windows BMP format image (value is 1).static intIMAGE_COPYTheImageconstructor argument indicating that the new image should be a copy of the image provided as an argument (value is 0).static intIMAGE_DISABLETheImageconstructor 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 intIMAGE_GIFImage format constant indicating a GIF format image (value is 2).static intIMAGE_GRAYTheImageconstructor 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 intIMAGE_ICOImage format constant indicating a ICO format image (value is 3).static intIMAGE_JPEGImage format constant indicating a JPEG format image (value is 4).static intIMAGE_OS2_BMPImage format constant indicating an OS/2 BMP format image (value is 7).static intIMAGE_PNGImage format constant indicating a PNG format image (value is 5).static intIMAGE_TIFFImage format constant indicating a TIFF format image (value is 6).static intIMAGE_UNDEFINEDImage format constant indicating an unknown image type (value is -1).static intINDETERMINATEStyle constant for progress bar behavior (value is 1<<1).static intINHERIT_DEFAULTTheCompositeconstant to indicate that an attribute (such as background) is inherited by children who choose this value as their "default" (value is 1).static intINHERIT_FORCETheCompositeconstant to indicate that an attribute (such as background) is inherited by all children.static intINHERIT_NONETheCompositeconstant to indicate that an attribute (such as background) is not inherited by the children (value is 0).static intINSERTKeyboard event constant representing the INSERT key (value is (1<<24)+9).static intITALICThe font style constant indicating an italic font (value is 1<<1).static intJOIN_BEVELLine drawing style for bevel joins (value is 3).static intJOIN_MITERLine drawing style for miter joins (value is 1).static intJOIN_ROUNDLine drawing style for rounded joins (value is 2).static intKEY_MASKAccelerator constant used to extract the key stroke portion of an accelerator.static intKEYCODE_BITAccelerator constant used to differentiate a key code from a unicode character.static intKeyDownThe key down event type (value is 1).static intKEYPAD_0Keyboard event constant representing the numeric key pad zero key (value is (1<<24)+48).static intKEYPAD_1Keyboard event constant representing the numeric key pad one key (value is (1<<24)+49).static intKEYPAD_2Keyboard event constant representing the numeric key pad two key (value is (1<<24)+50).static intKEYPAD_3Keyboard event constant representing the numeric key pad three key (value is (1<<24)+51).static intKEYPAD_4Keyboard event constant representing the numeric key pad four key (value is (1<<24)+52).static intKEYPAD_5Keyboard event constant representing the numeric key pad five key (value is (1<<24)+53).static intKEYPAD_6Keyboard event constant representing the numeric key pad six key (value is (1<<24)+54).static intKEYPAD_7Keyboard event constant representing the numeric key pad seven key (value is (1<<24)+55).static intKEYPAD_8Keyboard event constant representing the numeric key pad eight key (value is (1<<24)+56).static intKEYPAD_9Keyboard event constant representing the numeric key pad nine key (value is (1<<24)+57).static intKEYPAD_ADDKeyboard event constant representing the numeric key pad add key (value is (1<<24)+43).static intKEYPAD_CRKeyboard event constant representing the numeric key pad enter key (value is (1<<24)+80).static intKEYPAD_DECIMALKeyboard event constant representing the numeric key pad decimal key (value is (1<<24)+46).static intKEYPAD_DIVIDEKeyboard event constant representing the numeric key pad divide key (value is (1<<24)+47).static intKEYPAD_EQUALKeyboard event constant representing the numeric key pad equal key (value is (1<<24)+61).static intKEYPAD_MULTIPLYKeyboard event constant representing the numeric key pad multiply key (value is (1<<24)+42).static intKEYPAD_SUBTRACTKeyboard event constant representing the numeric key pad subtract key (value is (1<<24)+45).static intKeyUpThe key up event type (value is 2).static intLEADStyle constant for leading alignment (value is 1<<14).static intLEFTStyle constant for align left behavior (value is 1<<14).static intLEFT_TO_RIGHTStyle constant for left to right orientation (value is 1<<25).static charLFASCII character convenience constant for the line feed character (value is thechar'\n').static intLINE_CUSTOMLine drawing style for custom dashed lines (value is 6).static intLINE_DASHLine drawing style for dashed lines (value is 2).static intLINE_DASHDOTLine drawing style for alternating dash-dot lines (value is 4).static intLINE_DASHDOTDOTLine drawing style for dash-dot-dot lines (value is 5).static intLINE_DOTLine drawing style for dotted lines (value is 3).static intLINE_SOLIDLine drawing style for solid lines (value is 1).static intLONGStyle constant for long date/time format (value is 1<<28).static intMAXStyle constant for maximize box trim (value is 1<<10).static intMEDIUMStyle constant for medium date/time format (value is 1<<16).static intMenuDetectThe menu detect event type (value is 35).static intMINStyle constant for minimize box trim (value is 1<<7).static intMIRROREDStyle constant to indicate coordinate mirroring (value is 1<<27).static intMOD1Keyboard and/or mouse event mask indicating that the MOD1 key was pushed on the keyboard when the event was generated.static intMOD2Keyboard and/or mouse event mask indicating that the MOD2 key was pushed on the keyboard when the event was generated.static intMOD3Keyboard and/or mouse event mask indicating that the MOD3 key was pushed on the keyboard when the event was generated.static intMOD4Keyboard and/or mouse event mask indicating that the MOD4 key was pushed on the keyboard when the event was generated.static intMODELESSStyle constant for modeless behavior (value is 0).static intMODIFIER_MASKKeyboard and/or mouse event mask indicating all possible keyboard modifiers.static intModifyThe modify event type (value is 24).static intMouseDoubleClickThe mouse double click event type (value is 8).static intMouseDownThe mouse down event type (value is 3).static intMouseEnterThe mouse enter event type (value is 6).static intMouseExitThe mouse exit event type (value is 7).static intMouseMoveThe mouse move event type (value is 5).static intMouseUpThe mouse up event type (value is 4).static intMouseWheelThe mouse vertical wheel event type (value is 37).static intMoveThe move event type (value is 10).static intMOZILLAStyle constant specifying that a Browser should use a Mozilla GRE for rendering its content (value is 1<<15).static intMULTIStyle constant for multi-selection behavior in lists and multiple line support on text fields (value is 1<<1).static intNOTheMessageBoxstyle constant for NO button; valid combinations are YES|NO, YES|NO|CANCEL (value is 1<<7).static intNO_BACKGROUNDStyle constant for no background behavior (value is 1<<18).static intNO_FOCUSStyle constant for no focus from the mouse behavior (value is 1<<19).static intNO_MERGE_PAINTSStyle constant for no paint event merging behavior (value is 1<<21).static intNO_RADIO_GROUPStyle constant for preventing child radio group behavior (value is 1<<22).static intNO_REDRAW_RESIZEStyle constant for no redraw on resize behavior (value is 1<<20).static intNO_SCROLLStyle constant for no scrollbar behavior (value is 1<<4).static intNO_TRIMStyle constant to ensure no trimmings are used (value is 1<<3).static intNoneThe null event type (value is 0).static intNONEA constant known to be zero (0), typically used in operations which take bit flags to indicate that "no bits are set".static intNORMALThe font style constant indicating a normal weight, non-italic font (value is 0).static intNULLA constant known to be zero (0), used in operations which take pointers to indicate a null argument.static intNUM_LOCKKeyboard event constant representing the num lock key (value is (1<<24)+83).static intOFFIndicates that a property is off (value is 0).static intOKTheMessageBoxstyle constant for an OK button; valid combinations are OK, OK|CANCEL (value is 1<<5).static intONIndicates that a property is on (value is 1).static intON_TOPStyle constant for always on top behavior (value is 1<<14).static intOPENTheFileDialogstyle constant for open file dialog behavior (value is 1<<12).static intPAGE_DOWNKeyboard event constant representing the PAGE DOWN key (value is (1<<24)+6).static intPAGE_UPKeyboard event constant representing the PAGE UP key (value is (1<<24)+5).static intPaintThe paint event type (value is 9).static intPASSWORDStyle constant for password behavior (value is 1<<22).static intPATH_CLOSEPath constant that represents a "close" operation (value is 5).static intPATH_CUBIC_TOPath constant that represents a "cubic curve to" operation (value is 4).static intPATH_LINE_TOPath constant that represents a "line to" operation (value is 2).static intPATH_MOVE_TOPath constant that represents a "move to" operation (value is 1).static intPATH_QUAD_TOPath constant that represents a "quadratic curve to" operation (value is 3).static intPAUSEKeyboard event constant representing the pause key (value is (1<<24)+85).static intPAUSEDConstant to a indicate a paused state (value is 4).static intPOP_UPStyle constant for pop up menu behavior (value is 1<<3).static intPRIMARY_MODALStyle constant for primary modal behavior (value is 1<<15).static intPRINT_SCREENKeyboard event constant representing the print screen key (value is (1<<24)+87).static intPUSHStyle constant for push button behavior (value is 1<<3).static intRADIOStyle constant for radio button behavior (value is 1<<4).static intREAD_ONLYStyle constant for read-only behavior (value is 1<<3).static intResizeThe resize event type (value is 11).static intRESIZEStyle constant for resize box trim (value is 1<<4).static intRETRYTheMessageBoxstyle constant for a RETRY button; valid combinations are ABORT|RETRY|IGNORE, RETRY|CANCEL (value is 1<<10).static intRIGHTStyle constant for align right behavior (value is 1<<17).static intRIGHT_TO_LEFTStyle constant for right to left orientation (value is 1<<26).static intSAVETheFileDialogstyle constant for save file dialog behavior (value is 1<<13).static intSCROLL_LOCKKeyboard event constant representing the scroll lock key (value is (1<<24)+84).static intSEARCHStyle constant for search behavior (value is 1<<7).static intSELECTEDEvent detail field that indicates a user-interface component state is selected (value is 1<<1).static intSelectionThe selection event type (value is 13).static intSEPARATORStyle constant for line separator behavior (value is 1<<1).static intSetDataThe set data event type (value is 36).static intSettingsThe settings changed event type (value is 39).static intSHADOW_ETCHED_INStyle constant for shadow etched in behavior (value is 1<<4).static intSHADOW_ETCHED_OUTStyle constant for shadow etched out behavior (value is 1<<6).static intSHADOW_INStyle constant for shadow in behavior (value is 1<<2).static intSHADOW_NONEStyle constant for no shadow behavior (value is 1<<5).static intSHADOW_OUTStyle constant for shadow out behavior (value is 1<<3).static intSHEETStyle constant for sheet window behavior (value is 1<<28).static intSHELL_TRIMTrim style convenience constant for the most common top level shell appearance (value is CLOSE|TITLE|MIN|MAX|RESIZE).static intSHIFTKeyboard 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 intSHORTStyle constant for short date/time format (value is 1<<15).static intShowThe show event type (value is 22).static intSIMPLEStyle constant for simple (not drop down) behavior (value is 1<<6).static intSINGLEStyle constant for single selection behavior in lists and single line support on text fields (value is 1<<2).static intSkinThe skin event type (value is 45).static java.lang.StringSKIN_CLASSKey value for setting and getting the skin class of a widget.static java.lang.StringSKIN_IDKey value for setting and getting the skin id of a widget.static intSMOOTHStyle constant for smooth appearance.static intSYSTEM_MODALStyle constant for system modal behavior (value is 1<<17).static charTABASCII character convenience constant for the tab character (value is thechar'\t').static intTIMEStyle constant for time display (value is 1<<7).static intTITLEStyle constant for title area trim (value is 1<<5).static intTOGGLEStyle constant for toggle button behavior (value is 1<<1).static intTOOLStyle constant for tool window behavior (value is 1<<2).static intTOPStyle constant for align top behavior (value is 1<<7, since align UP and align TOP are considered the same).static intTOUCHSTATE_DOWNA constant indicating that a finger touched the device.static intTOUCHSTATE_MOVEA constant indicating that a finger moved on the device.static intTOUCHSTATE_UPA constant indicating that a finger was lifted from the device.static intTRAILStyle constant for trailing alignment (value is 1<<17).static intTRANSPARENCY_ALPHAImage transparency constant indicating that the image contains alpha transparency information (value is 1<<0).static intTRANSPARENCY_MASKImage transparency constant indicating that the image contains a transparency mask (value is 1<<1).static intTRANSPARENCY_NONEImage transparency constant indicating that the image contains no transparency information (value is 0).static intTRANSPARENCY_PIXELImage transparency constant indicating that the image contains a transparent pixel (value is 1<<2).static intTraverseThe traverse event type (value is 31).static intTRAVERSE_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).static intTRAVERSE_NONETraversal event detail field value indicating that no traversal action should be taken (value is 0).static intTRAVERSE_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).static intTRAVERSE_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).static intTRAVERSE_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).static intUPStyle constant for align up behavior (value is 1<<7, since align UP and align TOP are considered the same).static intV_SCROLLStyle constant for vertical scrollbar behavior (value is 1<<9).static intVerifyThe verify event type (value is 25).static intVERTICALStyle constant for vertical alignment or orientation behavior (value is 1<<9).static intVIRTUALStyle constant to allow virtual data (value is 1<<28).static intWEBKITStyle constant specifying that a Browser should use WebKit for rendering its content (value is 1<<16).static intWRAPStyle constant for automatic line wrap behavior (value is 1<<6).static intYESTheMessageBoxstyle constant for YES button; valid combinations are YES|NO, YES|NO|CANCEL (value is 1<<6).
-
Constructor Summary
Constructors Constructor Description SWT()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiderror(int code)Throws an appropriate exception based on the passed in error code.static voiderror(int code, java.lang.Throwable throwable)Throws an appropriate exception based on the passed in error code.static voiderror(int code, java.lang.Throwable throwable, java.lang.String detail)Throws an appropriate exception based on the passed in error code.static java.lang.StringgetMessage(java.lang.String key)Returns the NLS'ed message for the given argument.static java.lang.StringgetPlatform()Returns the SWT platform name.static intgetVersion()Returns the SWT version number as an integer.
-
-
-
Field Detail
-
None
public static final int None
The null event type (value is 0).- See Also:
- Constant Field Values
-
KeyDown
public static final int KeyDown
The key down event type (value is 1).
-
KeyUp
public static final int KeyUp
The key up event type (value is 2).
-
MouseDown
public static final int MouseDown
The mouse down event type (value is 3).- Since:
- 1.1
- See Also:
Widget.addListener(int, org.eclipse.swt.widgets.Listener),Display.addFilter(int, org.eclipse.swt.widgets.Listener),Event,Control.addMouseListener(org.eclipse.swt.events.MouseListener),MouseListener.mouseDown(org.eclipse.swt.events.MouseEvent),MouseEvent, Constant Field Values
-
MouseUp
public static final int MouseUp
The mouse up event type (value is 4).- Since:
- 1.1
- See Also:
Widget.addListener(int, org.eclipse.swt.widgets.Listener),Display.addFilter(int, org.eclipse.swt.widgets.Listener),Event,Control.addMouseListener(org.eclipse.swt.events.MouseListener),MouseListener.mouseUp(org.eclipse.swt.events.MouseEvent),MouseEvent, Constant Field Values
-
MouseMove
public static final int MouseMove
The mouse move event type (value is 5).Note: In RAP, this event type is only supported for ClientListeners. Server-side events of this type will not be fired.
-
MouseEnter
public static final int MouseEnter
The mouse enter event type (value is 6).Note: In RAP, this event type is only supported for ClientListeners. Server-side events of this type will not be fired.
-
MouseExit
public static final int MouseExit
The mouse exit event type (value is 7).Note: In RAP, this event type is only supported for ClientListeners. Server-side events of this type will not be fired.
-
MouseDoubleClick
public static final int MouseDoubleClick
The mouse double click event type (value is 8).- Since:
- 1.1
- See Also:
Widget.addListener(int, org.eclipse.swt.widgets.Listener),Display.addFilter(int, org.eclipse.swt.widgets.Listener),Event,Control.addMouseListener(org.eclipse.swt.events.MouseListener),MouseListener.mouseDoubleClick(org.eclipse.swt.events.MouseEvent),MouseEvent, Constant Field Values
-
Paint
public static final int Paint
The paint event type (value is 9).- Since:
- 2.0
- See Also:
Widget.addListener(int, org.eclipse.swt.widgets.Listener),Display.addFilter(int, org.eclipse.swt.widgets.Listener),Event,Canvas.addPaintListener(org.eclipse.swt.events.PaintListener),PaintListener.paintControl(org.eclipse.swt.events.PaintEvent),PaintEvent, Constant Field Values
-
Move
public static final int Move
The move event type (value is 10).- See Also:
Widget.addListener(int, org.eclipse.swt.widgets.Listener),Event,Control.addControlListener(org.eclipse.swt.events.ControlListener),TableColumn.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 Resize
The resize event type (value is 11).- See Also:
Widget.addListener(int, org.eclipse.swt.widgets.Listener),Display.addListener(int, org.eclipse.swt.widgets.Listener),Event,Control.addControlListener(org.eclipse.swt.events.ControlListener),TableColumn.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 Dispose
The dispose event type (value is 12).
-
Selection
public static final int Selection
The selection event type (value is 13).- See Also:
Widget.addListener(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),ScrollBar.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),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 DefaultSelection
The default selection event type (value is 14).- See Also:
Widget.addListener(int, org.eclipse.swt.widgets.Listener),Event,Combo.addSelectionListener(org.eclipse.swt.events.SelectionListener),List.addSelectionListener(org.eclipse.swt.events.SelectionListener),Table.addSelectionListener(org.eclipse.swt.events.SelectionListener),Text.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 FocusIn
The focus in event type (value is 15).
-
FocusOut
public static final int FocusOut
The focus out event type (value is 16).
-
Expand
public static final int Expand
The expand event type (value is 17).
-
Collapse
public static final int Collapse
The collapse event type (value is 18).
-
Close
public static final int Close
The close event type (value is 21).
-
Show
public static final int Show
The show event type (value is 22).
-
Hide
public static final int Hide
The hide event type (value is 23).
-
Modify
public static final int Modify
The modify event type (value is 24).- See Also:
Widget.addListener(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 Verify
The verify event type (value is 25).- See Also:
Widget.addListener(int, org.eclipse.swt.widgets.Listener),Display.addFilter(int, org.eclipse.swt.widgets.Listener),Event,Combo.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 Activate
The activate event type (value is 26).
-
Deactivate
public static final int Deactivate
The deactivate event type (value is 27).
-
Help
public static final int Help
The help event type (value is 28).- Since:
- 1.3
- 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 DragDetect
The drag detect event type (value is 29).
-
Arm
public static final int Arm
The arm event type (value is 30).
-
Traverse
public static final int Traverse
The traverse event type (value is 31).- Since:
- 1.2
- See Also:
Widget.addListener(int, org.eclipse.swt.widgets.Listener),Display.addFilter(int, org.eclipse.swt.widgets.Listener),Event,Control.addTraverseListener(org.eclipse.swt.events.TraverseListener),TraverseListener.keyTraversed(org.eclipse.swt.events.TraverseEvent),TraverseEvent, Constant Field Values
-
MenuDetect
public static final int MenuDetect
The menu detect event type (value is 35).
-
SetData
public static final int SetData
The set data event type (value is 36).
-
MouseWheel
public static final int MouseWheel
The mouse vertical wheel event type (value is 37).Note: In RAP, this event type is only supported for ClientListeners. Server-side events of this type will not be fired.
- Since:
- 2.2
- See Also:
Display.addFilter(int, org.eclipse.swt.widgets.Listener),Event, Constant Field Values
-
Settings
public static final int Settings
The 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:
- 1.4
- See Also:
Display.addListener(int, org.eclipse.swt.widgets.Listener),Event, Constant Field Values
-
Skin
public static final int Skin
The skin event type (value is 45).The skin event is sent by the display when a widget needs to be skinned.
-
DRAG
public static final int DRAG
Indicates that a user-interface component is being dragged, for example dragging the thumb of a scroll bar (value is 1).- Since:
- 1.3
- See Also:
- Constant Field Values
-
SELECTED
public static final int SELECTED
Event detail field that indicates a user-interface component state is selected (value is 1<<1).- Since:
- 1.3
- See Also:
- Constant Field Values
-
FOCUSED
public static final int FOCUSED
Event detail field that indicates a user-interface component state is focused (value is 1<<2).- Since:
- 1.3
- See Also:
- Constant Field Values
-
BACKGROUND
public static final int BACKGROUND
Event detail field that indicates a user-interface component draws the background (value is 1<<3).- See Also:
- Constant Field Values
-
FOREGROUND
public static final int FOREGROUND
Event detail field that indicates a user-interface component draws the foreground (value is 1<<4).- Since:
- 1.2
- See Also:
- Constant Field Values
-
HOT
public static final int HOT
Event detail field that indicates a user-interface component state is hot (value is 1<<5).- Since:
- 1.3
- See Also:
- Constant Field Values
-
TRAVERSE_NONE
public static final int TRAVERSE_NONE
Traversal event detail field value indicating that no traversal action should be taken (value is 0).- Since:
- 1.2
- See Also:
- Constant Field Values
-
TRAVERSE_ESCAPE
public static final int TRAVERSE_ESCAPE
Traversal event detail field value indicating that the key which designates that a dialog should be cancelled was pressed; typically, this is the ESC key (value is 1<<1).- Since:
- 1.2
- See Also:
- Constant Field Values
-
TRAVERSE_RETURN
public static final int TRAVERSE_RETURN
Traversal event detail field value indicating that the key which activates the default button in a dialog was pressed; typically, this is the ENTER key (value is 1<<2).- Since:
- 1.2
- See Also:
- Constant Field Values
-
TRAVERSE_TAB_PREVIOUS
public static final int TRAVERSE_TAB_PREVIOUS
Traversal event detail field value indicating that the key which designates that focus should be given to the previous tab group was pressed; typically, this is the SHIFT-TAB key sequence (value is 1<<3).- Since:
- 1.2
- See Also:
- Constant Field Values
-
TRAVERSE_TAB_NEXT
public static final int TRAVERSE_TAB_NEXT
Traversal event detail field value indicating that the key which designates that focus should be given to the next tab group was pressed; typically, this is the TAB key (value is 1<<4).- Since:
- 1.2
- See Also:
- Constant Field Values
-
GESTURE_BEGIN
public static final int GESTURE_BEGIN
Gesture event detail field value indicating that a continuous gesture is about to begin.- Since:
- 1.4
- See Also:
- Constant Field Values
-
GESTURE_END
public static final int GESTURE_END
Gesture event detail field value indicating that a continuous gesture has ended.- Since:
- 1.4
- See Also:
- Constant Field Values
-
GESTURE_ROTATE
public static final int GESTURE_ROTATE
Gesture event detail field value indicating that a rotation gesture has happened. Only the rotation field of the event is valid.- Since:
- 1.4
- See Also:
- Constant Field Values
-
GESTURE_SWIPE
public static final int GESTURE_SWIPE
Gesture event detail field value indicating that a swipe gesture has happened.- Since:
- 1.4
- See Also:
- Constant Field Values
-
GESTURE_MAGNIFY
public static final int GESTURE_MAGNIFY
Gesture event detail field value indicating that a magnification gesture has happened.- Since:
- 1.4
- See Also:
- Constant Field Values
-
GESTURE_PAN
public static final int GESTURE_PAN
Gesture event detail field value indicating that a panning (two-finger scroll) gesture has happened.- Since:
- 1.4
- See Also:
- Constant Field Values
-
TOUCHSTATE_DOWN
public static final int TOUCHSTATE_DOWN
A constant indicating that a finger touched the device.- Since:
- 1.4
- See Also:
Touch.state, Constant Field Values
-
TOUCHSTATE_MOVE
public static final int TOUCHSTATE_MOVE
A constant indicating that a finger moved on the device.- Since:
- 1.4
- See Also:
Touch.state, Constant Field Values
-
TOUCHSTATE_UP
public static final int TOUCHSTATE_UP
A constant indicating that a finger was lifted from the device.- Since:
- 1.4
- See Also:
Touch.state, Constant Field Values
-
ALL
public static final int ALL
A constant indicating that a given operation should be performed on all widgets (value is 1<<0).Used By:
Compositelayout
- Since:
- 1.3
- See Also:
Composite.layout(org.eclipse.swt.widgets.Control[], int), Constant Field Values
-
CHANGED
public static final int CHANGED
A constant indicating that widgets have changed. (value is 1<<1).Used By:
Compositelayout
- Since:
- 1.3
- See Also:
Composite.layout(org.eclipse.swt.widgets.Control[], int), Constant Field Values
-
DEFER
public static final int DEFER
A constant indicating that a given operation should be deferred. (value is 1<<2).Used By:
Compositelayout
- Since:
- 1.3
- See Also:
Composite.layout(org.eclipse.swt.widgets.Control[], int), Constant Field Values
-
NULL
public static final int NULL
A constant known to be zero (0), used in operations which take pointers to indicate a null argument.- See Also:
- Constant Field Values
-
NONE
public static final int NONE
A constant known to be zero (0), typically used in operations which take bit flags to indicate that "no bits are set".- See Also:
- Constant Field Values
-
DEFAULT
public static final int DEFAULT
Indicates that a default should be used (value is -1).- See Also:
- Constant Field Values
-
OFF
public static final int OFF
Indicates that a property is off (value is 0).- Since:
- 1.3
- See Also:
- Constant Field Values
-
ON
public static final int ON
Indicates that a property is on (value is 1).- Since:
- 1.3
- See Also:
- Constant Field Values
-
UP
public static final int UP
Style constant for align up behavior (value is 1<<7, since align UP and align TOP are considered the same).Used By:
ButtonwithARROWstyle
- See Also:
- Constant Field Values
-
TOP
public static final int TOP
Style constant for align top behavior (value is 1<<7, since align UP and align TOP are considered the same).Used By:
FormAttachmentin aFormLayout
- See Also:
- Constant Field Values
-
DOWN
public static final int DOWN
Style constant for align down behavior (value is 1<<10, since align DOWN and align BOTTOM are considered the same).Used By:
ButtonwithARROWstyle
- See Also:
- Constant Field Values
-
BOTTOM
public static final int BOTTOM
Style constant for align bottom behavior (value is 1<<10, since align DOWN and align BOTTOM are considered the same).Used By:
FormAttachmentin aFormLayout
- See Also:
- Constant Field Values
-
LEAD
public static final int LEAD
Style constant for leading alignment (value is 1<<14).Used By:
ButtonLabelFormAttachmentin aFormLayout
- See Also:
- Constant Field Values
-
LEFT
public static final int LEFT
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.- See Also:
- Constant Field Values
-
TRAIL
public static final int TRAIL
Style constant for trailing alignment (value is 1<<17).Used By:
ButtonLabelTableColumnFormAttachmentin aFormLayout
- See Also:
- Constant Field Values
-
RIGHT
public static final int RIGHT
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.- See Also:
- Constant Field Values
-
CENTER
public static final int CENTER
Style constant for align center behavior (value is 1<<24).Used By:
ButtonLabelTableColumnFormAttachmentin aFormLayout
- See Also:
- Constant Field Values
-
HORIZONTAL
public static final int HORIZONTAL
Style constant for horizontal alignment or orientation behavior (value is 1<<8).Used By:
LabelProgressBarSashScrollBarToolBarFillLayouttypeRowLayouttype
- See Also:
- Constant Field Values
-
VERTICAL
public static final int VERTICAL
Style constant for vertical alignment or orientation behavior (value is 1<<9).Used By:
LabelProgressBarSashScrollBarToolBarCoolBarFillLayouttypeRowLayouttype
- See Also:
- Constant Field Values
-
BALLOON
public static final int BALLOON
Style constant for balloon behavior (value is 1<<12).Used By:
ToolTip
- Since:
- 1.4
- See Also:
- Constant Field Values
-
BEGINNING
public static final int BEGINNING
Style constant for vertical alignment or orientation behavior (value is 1).Used By:
GridLayouttype
- See Also:
- Constant Field Values
-
FILL
public static final int FILL
Style constant for vertical alignment or orientation behavior (value is 4).Used By:
GridLayouttype
- See Also:
- Constant Field Values
-
DEL
public static final char DEL
ASCII character convenience constant for the delete character (value is thecharwith value 127).- Since:
- 1.2
- See Also:
- Constant Field Values
-
ESC
public static final char ESC
ASCII character convenience constant for the escape character (value is thecharwith value 27).- Since:
- 1.1
- See Also:
- Constant Field Values
-
BS
public static final char BS
ASCII character convenience constant for the backspace character (value is thechar'\b').- Since:
- 1.1
- See Also:
- Constant Field Values
-
CR
public static final char CR
ASCII character convenience constant for the carriage return character (value is thechar'\r').- Since:
- 1.1
- See Also:
- Constant Field Values
-
LF
public static final char LF
ASCII character convenience constant for the line feed character (value is thechar'\n').- Since:
- 1.1
- See Also:
- Constant Field Values
-
TAB
public static final char TAB
ASCII character convenience constant for the tab character (value is thechar'\t').- Since:
- 1.1
- See Also:
- Constant Field Values
-
ALT
public static final int ALT
keyboard and/or mouse event mask indicating that the ALT key was pushed on the keyboard when the event was generated (value is 1<<16).- Since:
- 1.1
- See Also:
- Constant Field Values
-
SHIFT
public static final int SHIFT
Keyboard and/or mouse event mask indicating that the SHIFT key was pushed on the keyboard when the event was generated (value is 1<<17).- Since:
- 1.1
- See Also:
- Constant Field Values
-
CTRL
public static final int CTRL
Keyboard and/or mouse event mask indicating that the CTRL key was pushed on the keyboard when the event was generated (value is 1<<18).- Since:
- 1.1
- See Also:
- Constant Field Values
-
CONTROL
public static final int CONTROL
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).- Since:
- 1.1
- See Also:
- Constant Field Values
-
COMMAND
public static final int COMMAND
Keyboard and/or mouse event mask indicating that the COMMAND key was pushed on the keyboard when the event was generated (value is 1<<22).- Since:
- 1.1
- See Also:
- Constant Field Values
-
MODIFIER_MASK
public static final int MODIFIER_MASK
Keyboard and/or mouse event mask indicating all possible keyboard modifiers. To allow for the future, this mask is intended to be used in place of code that references each individual keyboard mask. For example, the following expression will determine whether any modifier is pressed and will continue to work as new modifier masks are added.(stateMask & SWT.MODIFIER_MASK) != 0.- Since:
- 1.2
-
BUTTON1
public static final int BUTTON1
Keyboard and/or mouse event mask indicating that mouse button one was pushed when the event was generated. (value is 1<<19).- Since:
- 1.3
- See Also:
- Constant Field Values
-
BUTTON2
public static final int BUTTON2
Keyboard and/or mouse event mask indicating that mouse button two was pushed when the event was generated. (value is 1<<20).- Since:
- 1.3
- See Also:
- Constant Field Values
-
BUTTON3
public static final int BUTTON3
Keyboard and/or mouse event mask indicating that mouse button three was pushed when the event was generated. (value is 1<<21).- Since:
- 1.3
- See Also:
- Constant Field Values
-
BUTTON4
public static final int BUTTON4
Keyboard and/or mouse event mask indicating that mouse button four was pushed when the event was generated. (value is 1<<23).- Since:
- 1.3
- See Also:
- Constant Field Values
-
BUTTON5
public static final int BUTTON5
Keyboard and/or mouse event mask indicating that mouse button five was pushed when the event was generated. (value is 1<<25).- Since:
- 1.3
- See Also:
- Constant Field Values
-
BUTTON_MASK
public static final int BUTTON_MASK
Keyboard and/or mouse event mask indicating all possible mouse buttons. To allow for the future, this mask is intended to be used in place of code that references each individual button mask. For example, the following expression will determine whether any button is pressed and will continue to work as new button masks are added.(stateMask & SWT.BUTTON_MASK) != 0.- Since:
- 1.3
-
MOD1
public static final int MOD1
Keyboard and/or mouse event mask indicating that the MOD1 key was pushed on the keyboard when the event was generated. This is the primary keyboard modifier for the platform.- Since:
- 1.3
-
MOD2
public static final int MOD2
Keyboard and/or mouse event mask indicating that the MOD2 key was pushed on the keyboard when the event was generated. This is the secondary keyboard modifier for the platform.- Since:
- 1.3
-
MOD3
public static final int MOD3
Keyboard and/or mouse event mask indicating that the MOD3 key was pushed on the keyboard when the event was generated.- Since:
- 1.3
-
MOD4
public static final int MOD4
Keyboard and/or mouse event mask indicating that the MOD4 key was pushed on the keyboard when the event was generated.- Since:
- 1.3
-
KEYCODE_BIT
public static final int KEYCODE_BIT
Accelerator constant used to differentiate a key code from a unicode character. If this bit is set, then the key stroke portion of an accelerator represents a key code. If this bit is not set, then the key stroke portion of an accelerator is a unicode character. The following expression is false:((SWT.MOD1 | SWT.MOD2 | 'T') & SWT.KEYCODE_BIT) != 0. The following expression is true:((SWT.MOD3 | SWT.F2) & SWT.KEYCODE_BIT) != 0. (value is (1<<24))- Since:
- 1.1
- See Also:
- Constant Field Values
-
KEY_MASK
public static final int KEY_MASK
Accelerator constant used to extract the key stroke portion of an accelerator. The key stroke may be a key code or a unicode value. If the key stroke is a key codeKEYCODE_BITwill be set.- Since:
- 1.2
- See Also:
- Constant Field Values
-
ARROW_UP
public static final int ARROW_UP
Keyboard event constant representing the UP ARROW key (value is (1<<24)+1).- Since:
- 1.2
- See Also:
- Constant Field Values
-
ARROW_DOWN
public static final int ARROW_DOWN
Keyboard event constant representing the DOWN ARROW key (value is (1<<24)+2).- Since:
- 1.2
- See Also:
- Constant Field Values
-
ARROW_LEFT
public static final int ARROW_LEFT
Keyboard event constant representing the LEFT ARROW key (value is (1<<24)+3).- Since:
- 1.2
- See Also:
- Constant Field Values
-
ARROW_RIGHT
public static final int ARROW_RIGHT
Keyboard event constant representing the RIGHT ARROW key (value is (1<<24)+4).- Since:
- 1.2
- See Also:
- Constant Field Values
-
PAGE_UP
public static final int PAGE_UP
Keyboard event constant representing the PAGE UP key (value is (1<<24)+5).- Since:
- 1.2
- See Also:
- Constant Field Values
-
PAGE_DOWN
public static final int PAGE_DOWN
Keyboard event constant representing the PAGE DOWN key (value is (1<<24)+6).- Since:
- 1.2
- See Also:
- Constant Field Values
-
HOME
public static final int HOME
Keyboard event constant representing the HOME key (value is (1<<24)+7).- Since:
- 1.2
- See Also:
- Constant Field Values
-
END
public static final int END
Keyboard event constant representing the END key (value is (1<<24)+8).- Since:
- 1.1
- See Also:
- Constant Field Values
-
INSERT
public static final int INSERT
Keyboard event constant representing the INSERT key (value is (1<<24)+9).- Since:
- 1.2
- See Also:
- Constant Field Values
-
F1
public static final int F1
Keyboard event constant representing the F1 key (value is (1<<24)+10).- Since:
- 1.2
- See Also:
- Constant Field Values
-
F2
public static final int F2
Keyboard event constant representing the F2 key (value is (1<<24)+11).- Since:
- 1.2
- See Also:
- Constant Field Values
-
F3
public static final int F3
Keyboard event constant representing the F3 key (value is (1<<24)+12).- Since:
- 1.2
- See Also:
- Constant Field Values
-
F4
public static final int F4
Keyboard event constant representing the F4 key (value is (1<<24)+13).- Since:
- 1.2
- See Also:
- Constant Field Values
-
F5
public static final int F5
Keyboard event constant representing the F5 key (value is (1<<24)+14).- Since:
- 1.2
- See Also:
- Constant Field Values
-
F6
public static final int F6
Keyboard event constant representing the F6 key (value is (1<<24)+15).- Since:
- 1.2
- See Also:
- Constant Field Values
-
F7
public static final int F7
Keyboard event constant representing the F7 key (value is (1<<24)+16).- Since:
- 1.2
- See Also:
- Constant Field Values
-
F8
public static final int F8
Keyboard event constant representing the F8 key (value is (1<<24)+17).- Since:
- 1.2
- See Also:
- Constant Field Values
-
F9
public static final int F9
Keyboard event constant representing the F9 key (value is (1<<24)+18).- Since:
- 1.2
- See Also:
- Constant Field Values
-
F10
public static final int F10
Keyboard event constant representing the F10 key (value is (1<<24)+19).- Since:
- 1.2
- See Also:
- Constant Field Values
-
F11
public static final int F11
Keyboard event constant representing the F11 key (value is (1<<24)+20).- Since:
- 1.2
- See Also:
- Constant Field Values
-
F12
public static final int F12
Keyboard event constant representing the F12 key (value is (1<<24)+21).- Since:
- 1.2
- See Also:
- Constant Field Values
-
F13
public static final int F13
Keyboard event constant representing the F13 key (value is (1<<24)+22).- Since:
- 1.3
- See Also:
- Constant Field Values
-
F14
public static final int F14
Keyboard event constant representing the F14 key (value is (1<<24)+23).- Since:
- 1.3
- See Also:
- Constant Field Values
-
F15
public static final int F15
Keyboard event constant representing the F15 key (value is (1<<24)+24).- Since:
- 1.3
- See Also:
- Constant Field Values
-
F16
public static final int F16
Keyboard event constant representing the F16 key (value is (1<<25)+25).- Since:
- 1.3
- See Also:
- Constant Field Values
-
F17
public static final int F17
Keyboard event constant representing the F17 key (value is (1<<26)+26).- Since:
- 1.3
- See Also:
- Constant Field Values
-
F18
public static final int F18
Keyboard event constant representing the F18 key (value is (1<<27)+27).- Since:
- 1.3
- See Also:
- Constant Field Values
-
F19
public static final int F19
Keyboard event constant representing the F19 key (value is (1<<28)+28).- Since:
- 1.3
- See Also:
- Constant Field Values
-
F20
public static final int F20
Keyboard event constant representing the F20 key (value is (1<<29)+29).- Since:
- 1.3
- See Also:
- Constant Field Values
-
KEYPAD_MULTIPLY
public static final int KEYPAD_MULTIPLY
Keyboard event constant representing the numeric key pad multiply key (value is (1<<24)+42).- Since:
- 1.2
- See Also:
- Constant Field Values
-
KEYPAD_ADD
public static final int KEYPAD_ADD
Keyboard event constant representing the numeric key pad add key (value is (1<<24)+43).- Since:
- 1.2
- See Also:
- Constant Field Values
-
KEYPAD_SUBTRACT
public static final int KEYPAD_SUBTRACT
Keyboard event constant representing the numeric key pad subtract key (value is (1<<24)+45).- Since:
- 1.2
- See Also:
- Constant Field Values
-
KEYPAD_DECIMAL
public static final int KEYPAD_DECIMAL
Keyboard event constant representing the numeric key pad decimal key (value is (1<<24)+46).- Since:
- 1.2
- See Also:
- Constant Field Values
-
KEYPAD_DIVIDE
public static final int KEYPAD_DIVIDE
Keyboard event constant representing the numeric key pad divide key (value is (1<<24)+47).- Since:
- 1.2
- See Also:
- Constant Field Values
-
KEYPAD_0
public static final int KEYPAD_0
Keyboard event constant representing the numeric key pad zero key (value is (1<<24)+48).- Since:
- 1.2
- See Also:
- Constant Field Values
-
KEYPAD_1
public static final int KEYPAD_1
Keyboard event constant representing the numeric key pad one key (value is (1<<24)+49).- Since:
- 1.2
- See Also:
- Constant Field Values
-
KEYPAD_2
public static final int KEYPAD_2
Keyboard event constant representing the numeric key pad two key (value is (1<<24)+50).- Since:
- 1.2
- See Also:
- Constant Field Values
-
KEYPAD_3
public static final int KEYPAD_3
Keyboard event constant representing the numeric key pad three key (value is (1<<24)+51).- Since:
- 1.2
- See Also:
- Constant Field Values
-
KEYPAD_4
public static final int KEYPAD_4
Keyboard event constant representing the numeric key pad four key (value is (1<<24)+52).- Since:
- 1.2
- See Also:
- Constant Field Values
-
KEYPAD_5
public static final int KEYPAD_5
Keyboard event constant representing the numeric key pad five key (value is (1<<24)+53).- Since:
- 1.2
- See Also:
- Constant Field Values
-
KEYPAD_6
public static final int KEYPAD_6
Keyboard event constant representing the numeric key pad six key (value is (1<<24)+54).- Since:
- 1.2
- See Also:
- Constant Field Values
-
KEYPAD_7
public static final int KEYPAD_7
Keyboard event constant representing the numeric key pad seven key (value is (1<<24)+55).- Since:
- 1.2
- See Also:
- Constant Field Values
-
KEYPAD_8
public static final int KEYPAD_8
Keyboard event constant representing the numeric key pad eight key (value is (1<<24)+56).- Since:
- 1.2
- See Also:
- Constant Field Values
-
KEYPAD_9
public static final int KEYPAD_9
Keyboard event constant representing the numeric key pad nine key (value is (1<<24)+57).- Since:
- 1.2
- See Also:
- Constant Field Values
-
KEYPAD_EQUAL
public static final int KEYPAD_EQUAL
Keyboard event constant representing the numeric key pad equal key (value is (1<<24)+61).- Since:
- 1.2
- See Also:
- Constant Field Values
-
KEYPAD_CR
public static final int KEYPAD_CR
Keyboard event constant representing the numeric key pad enter key (value is (1<<24)+80).- Since:
- 1.2
- See Also:
- Constant Field Values
-
HELP
public static final int HELP
Keyboard 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:
- 1.2
- See Also:
Help, Constant Field Values
-
CAPS_LOCK
public static final int CAPS_LOCK
Keyboard event constant representing the caps lock key (value is (1<<24)+82).- Since:
- 1.2
- See Also:
- Constant Field Values
-
NUM_LOCK
public static final int NUM_LOCK
Keyboard event constant representing the num lock key (value is (1<<24)+83).- Since:
- 1.2
- See Also:
- Constant Field Values
-
SCROLL_LOCK
public static final int SCROLL_LOCK
Keyboard event constant representing the scroll lock key (value is (1<<24)+84).- Since:
- 1.2
- See Also:
- Constant Field Values
-
PAUSE
public static final int PAUSE
Keyboard event constant representing the pause key (value is (1<<24)+85).- Since:
- 1.2
- See Also:
- Constant Field Values
-
BREAK
public static final int BREAK
Keyboard event constant representing the break key (value is (1<<24)+86).- Since:
- 1.2
- See Also:
- Constant Field Values
-
PRINT_SCREEN
public static final int PRINT_SCREEN
Keyboard event constant representing the print screen key (value is (1<<24)+87).- Since:
- 1.2
- See Also:
- Constant Field Values
-
SEPARATOR
public static final int SEPARATOR
Style constant for line separator behavior (value is 1<<1).Used By:
LabelMenuItemToolItem
- See Also:
- Constant Field Values
-
PUSH
public static final int PUSH
Style constant for push button behavior (value is 1<<3).Used By:
ButtonMenuItemToolItem
- See Also:
- Constant Field Values
-
RADIO
public static final int RADIO
Style constant for radio button behavior (value is 1<<4).Used By:
ButtonMenuItemToolItem
- See Also:
- Constant Field Values
-
CHECK
public static final int CHECK
Style constant for check box behavior (value is 1<<5).Used By:
ButtonMenuItemToolItemTableTree
- See Also:
- Constant Field Values
-
ARROW
public static final int ARROW
Style constant for arrow button behavior (value is 1<<2).- See Also:
- Constant Field Values
-
TOGGLE
public static final int TOGGLE
Style constant for toggle button behavior (value is 1<<1).Used By:
Button
- See Also:
- Constant Field Values
-
BORDER
public static final int BORDER
Style constant for bordered behavior (value is 1<<11).
Note that this is a HINT.Used By:
Controland subclasses
- See Also:
- Constant Field Values
-
CLIP_CHILDREN
public static final int CLIP_CHILDREN
Style constant indicating that the window manager should clip a widget's children with respect to its viewable area. (value is 1<<12).
Note that this is a HINT.Used By:
Controland subclasses
- See Also:
- Constant Field Values
-
CLIP_SIBLINGS
public static final int CLIP_SIBLINGS
Style constant indicating that the window manager should clip a widget's siblings with respect to its viewable area. (value is 1<<13).
Note that this is a HINT.Used By:
Controland subclasses
- See Also:
- Constant Field Values
-
FLAT
public static final int FLAT
Style constant for flat appearance. (value is 1<<23).
Note that this is a HINT.Used By:
ButtonToolBar
- See Also:
- Constant Field Values
-
SMOOTH
public static final int SMOOTH
Style constant for smooth appearance. (value is 1<<16).
Note that this is a HINT.Used By:
ProgressBarSash
- Since:
- 1.1
- See Also:
- Constant Field Values
-
NO_BACKGROUND
public static final int NO_BACKGROUND
Style constant for no background behavior (value is 1<<18).By default, before a widget paints, the client area is filled with the current background. 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
- Since:
- 1.4
- See Also:
- Constant Field Values
-
NO_FOCUS
public static final int NO_FOCUS
Style constant for no focus from the mouse behavior (value is 1<<19).
Note that this is a HINT.Used By:
Composite
- See Also:
- Constant Field Values
-
NO_REDRAW_RESIZE
public static final int NO_REDRAW_RESIZE
Style constant for no redraw on resize behavior (value is 1<<20).This style stops the entire client area from being invalidated when the size of the Canvas changes. Specifically, when the size of the Canvas gets smaller, the SWT.Paint event is not sent. When it gets bigger, an SWT.Paint event is sent with a GC clipped to only the new areas to be painted. Without this style, the entire client area will be repainted.
Note that this is a HINT.Used By:
Composite
- Since:
- 1.4
- See Also:
- Constant Field Values
-
NO_MERGE_PAINTS
public static final int NO_MERGE_PAINTS
Style constant for no paint event merging behavior (value is 1<<21).
Note that this is a HINT.Used By:
Composite
- See Also:
- Constant Field Values
-
NO_RADIO_GROUP
public static final int NO_RADIO_GROUP
Style constant for preventing child radio group behavior (value is 1<<22).Used By:
CompositeMenu
- Since:
- 1.4
- See Also:
- Constant Field Values
-
LEFT_TO_RIGHT
public static final int LEFT_TO_RIGHT
Style constant for left to right orientation (value is 1<<25).When orientation is not explicitly specified, orientation is inherited. This means that children will be assigned the orientation of their parent. To override this behavior and force an orientation for a child, explicitly set the orientation of the child when that child is created.
Note that this is a HINT.Used By:
ControlMenuGC
- Since:
- 1.2
- See Also:
- Constant Field Values
-
RIGHT_TO_LEFT
public static final int RIGHT_TO_LEFT
Style constant for right to left orientation (value is 1<<26).When orientation is not explicitly specified, orientation is inherited. This means that children will be assigned the orientation of their parent. To override this behavior and force an orientation for a child, explicitly set the orientation of the child when that child is created.
Note that this is a HINT.Used By:
ControlMenuGC
- Since:
- 3.1
- See Also:
- Constant Field Values
-
MIRRORED
public static final int MIRRORED
Style constant to indicate coordinate mirroring (value is 1<<27).Used By:
ControlMenu
- Since:
- 3.1
- See Also:
- Constant Field Values
-
H_SCROLL
public static final int H_SCROLL
Style constant for horizontal scrollbar behavior (value is 1<<8).Used By:
Scrollableand subclasses
- See Also:
- Constant Field Values
-
V_SCROLL
public static final int V_SCROLL
Style constant for vertical scrollbar behavior (value is 1<<9).Used By:
Scrollableand subclasses
- See Also:
- Constant Field Values
-
NO_SCROLL
public static final int NO_SCROLL
Style 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:
Table
- Since:
- 1.2
- See Also:
- Constant Field Values
-
READ_ONLY
public static final int READ_ONLY
Style constant for read-only behavior (value is 1<<3).Used By:
ComboText
- See Also:
- Constant Field Values
-
WRAP
public static final int WRAP
Style constant for automatic line wrap behavior (value is 1<<6).Used By:
ButtonLabelTextToolBarSpinner
- See Also:
- Constant Field Values
-
SEARCH
public static final int SEARCH
Style constant for search behavior (value is 1<<7).Used By:
Text
- Since:
- 1.3
- See Also:
- Constant Field Values
-
SIMPLE
public static final int SIMPLE
Style constant for simple (not drop down) behavior (value is 1<<6).Used By:
Combo
- See Also:
- Constant Field Values
-
BAR
public static final int BAR
Style constant for menu bar behavior (value is 1<<1).Used By:
Menu
- See Also:
- Constant Field Values
-
POP_UP
public static final int POP_UP
Style constant for pop up menu behavior (value is 1<<3).Used By:
Menu
- See Also:
- Constant Field Values
-
DROP_DOWN
public static final int DROP_DOWN
Style constant for drop down menu/list behavior (value is 1<<2).Used By:
MenuToolItemCoolItemComboDateTime
- See Also:
- Constant Field Values
-
CASCADE
public static final int CASCADE
Style constant for cascade behavior (value is 1<<6).Used By:
MenuItem
- See Also:
- Constant Field Values
-
SINGLE
public static final int SINGLE
Style constant for single selection behavior in lists and single line support on text fields (value is 1<<2).Used By:
TextListTableTree
- See Also:
- Constant Field Values
-
MULTI
public static final int MULTI
Style constant for multi-selection behavior in lists and multiple line support on text fields (value is 1<<1).Used By:
TextListFileDialog
- See Also:
- Constant Field Values
-
PASSWORD
public static final int PASSWORD
Style constant for password behavior (value is 1<<22).Used By:
Text
- See Also:
- Constant Field Values
-
TOOL
public static final int TOOL
Style constant for tool window behavior (value is 1<<2).A tool window is a window intended to be used as a floating toolbar. It typically has a title bar that is shorter than a normal title bar, and the window title is typically drawn using a smaller font.
Note that this is a HINT.Used By:
Decorationsand subclasses
- Since:
- 1.3
- See Also:
- Constant Field Values
-
NO_TRIM
public static final int NO_TRIM
Style constant to ensure no trimmings are used (value is 1<<3).
Note that this overrides all other trim styles.Used By:
Decorationsand subclasses
- See Also:
- Constant Field Values
-
RESIZE
public static final int RESIZE
Style constant for resize box trim (value is 1<<4).Used By:
Decorationsand subclasses
- See Also:
- Constant Field Values
-
TITLE
public static final int TITLE
Style constant for title area trim (value is 1<<5).Used By:
Decorationsand subclasses
- See Also:
- Constant Field Values
-
CLOSE
public static final int CLOSE
Style constant for close box trim (value is 1<<6, since we do not distinguish between CLOSE style and MENU style).Used By:
Decorationsand subclasses
- See Also:
- Constant Field Values
-
MIN
public static final int MIN
Style constant for minimize box trim (value is 1<<7).Used By:
Decorationsand subclasses
- See Also:
- Constant Field Values
-
MAX
public static final int MAX
Style constant for maximize box trim (value is 1<<10).Used By:
Decorationsand subclasses
- See Also:
- Constant Field Values
-
ON_TOP
public static final int ON_TOP
Style constant for always on top behavior (value is 1<<14).
Note that this is a HINT.Used By:
Shelland subclasses
- See Also:
- Constant Field Values
-
SHEET
public static final int SHEET
Style 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.
Note that this is a HINT.Used By:
Shelland subclasses
- Since:
- 1.3
- See Also:
- Constant Field Values
-
SHELL_TRIM
public static final int SHELL_TRIM
Trim style convenience constant for the most common top level shell appearance (value is CLOSE|TITLE|MIN|MAX|RESIZE).Used By:
Shell
- See Also:
- Constant Field Values
-
DIALOG_TRIM
public static final int DIALOG_TRIM
Trim style convenience constant for the most common dialog shell appearance (value is CLOSE|TITLE|BORDER).Used By:
Shell
- See Also:
- Constant Field Values
-
MODELESS
public static final int MODELESS
Style constant for modeless behavior (value is 0).
Note that this is a HINT.Used By:
DialogShell
- Since:
- 1.3
- See Also:
- Constant Field Values
-
PRIMARY_MODAL
public static final int PRIMARY_MODAL
Style constant for primary modal behavior (value is 1<<15).
Note that this is a HINT.Used By:
DialogShell
- Since:
- 1.3
- See Also:
- Constant Field Values
-
APPLICATION_MODAL
public static final int APPLICATION_MODAL
Style constant for application modal behavior (value is 1<<16).
Note that this is a HINT.Used By:
DialogShell
- See Also:
- Constant Field Values
-
SYSTEM_MODAL
public static final int SYSTEM_MODAL
Style constant for system modal behavior (value is 1<<17).
Note that this is a HINT.Used By:
DialogShell
- Since:
- 1.3
- See Also:
- Constant Field Values
-
SHADOW_IN
public static final int SHADOW_IN
Style constant for shadow in behavior (value is 1<<2).
Note that this is a HINT.Used By:
LabelGroup
- See Also:
- Constant Field Values
-
SHADOW_OUT
public static final int SHADOW_OUT
Style constant for shadow out behavior (value is 1<<3).
Note that this is a HINT.Used By:
LabelGroupToolBar
- See Also:
- Constant Field Values
-
SHADOW_ETCHED_IN
public static final int SHADOW_ETCHED_IN
Style constant for shadow etched in behavior (value is 1<<4).
Note that this is a HINT. It is ignored on all platforms except Motif.Used By:
Group
- Since:
- 1.5
- See Also:
- Constant Field Values
-
SHADOW_ETCHED_OUT
public static final int SHADOW_ETCHED_OUT
Style constant for shadow etched out behavior (value is 1<<6).
Note that this is a HINT. It is ignored on all platforms except Motif.Used By:
Group
- Since:
- 1.5
- See Also:
- Constant Field Values
-
SHADOW_NONE
public static final int SHADOW_NONE
Style constant for no shadow behavior (value is 1<<5).
Note that this is a HINT.Used By:
LabelGroup
- See Also:
- Constant Field Values
-
HIDE_SELECTION
public static final int HIDE_SELECTION
Style constant for selection hiding behavior when the widget loses focus (value is 1<<15).
Note that this is a HINT.Used By:
Table
- Since:
- 1.4
- See Also:
- Constant Field Values
-
FULL_SELECTION
public static final int FULL_SELECTION
Style 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:
TableTree
- See Also:
- Constant Field Values
-
INDETERMINATE
public static final int INDETERMINATE
Style constant for progress bar behavior (value is 1<<1).Used By:
ProgressBar
- See Also:
- Constant Field Values
-
VIRTUAL
public static final int VIRTUAL
Style constant to allow virtual data (value is 1<<28).Used By:
TableTree
- See Also:
- Constant Field Values
-
DOUBLE_BUFFERED
public static final int DOUBLE_BUFFERED
Style constant to indicate double buffering (value is 1<<29).Used By:
Control
- Since:
- 1.3
- See Also:
- Constant Field Values
-
ERROR
public static final int ERROR
Constant to indicate an error state (value is 1).Used By:
ProgressBar
- Since:
- 1.3
- See Also:
- Constant Field Values
-
PAUSED
public static final int PAUSED
Constant to a indicate a paused state (value is 4).Used By:
ProgressBar
- Since:
- 1.3
- See Also:
- Constant Field Values
-
NORMAL
public static final int NORMAL
The font style constant indicating a normal weight, non-italic font (value is 0).- See Also:
- Constant Field Values
-
BOLD
public static final int BOLD
The font style constant indicating a bold weight font (value is 1<<0).- See Also:
- Constant Field Values
-
ITALIC
public static final int ITALIC
The font style constant indicating an italic font (value is 1<<1).- See Also:
- Constant Field Values
-
CURSOR_ARROW
public static final int CURSOR_ARROW
System arrow cursor (value is 0).- Since:
- 1.2
- See Also:
Cursor, Constant Field Values
-
CURSOR_WAIT
public static final int CURSOR_WAIT
System wait cursor (value is 1).- Since:
- 1.2
- See Also:
Cursor, Constant Field Values
-
CURSOR_CROSS
public static final int CURSOR_CROSS
System cross hair cursor (value is 2).- Since:
- 1.2
- See Also:
- Constant Field Values
-
CURSOR_APPSTARTING
public static final int CURSOR_APPSTARTING
System app startup cursor (value is 3).- Since:
- 1.3
- See Also:
- Constant Field Values
-
CURSOR_HELP
public static final int CURSOR_HELP
System help cursor (value is 4).- Since:
- 1.2
- See Also:
- Constant Field Values
-
CURSOR_SIZEALL
public static final int CURSOR_SIZEALL
System resize all directions cursor (value is 5).- Since:
- 1.2
- See Also:
- Constant Field Values
-
CURSOR_SIZENESW
public static final int CURSOR_SIZENESW
System resize north-east-south-west cursor (value is 6).- Since:
- 1.4
- See Also:
- Constant Field Values
-
CURSOR_SIZENS
public static final int CURSOR_SIZENS
System resize north-south cursor (value is 7).- Since:
- 1.2
- See Also:
- Constant Field Values
-
CURSOR_SIZENWSE
public static final int CURSOR_SIZENWSE
System resize north-west-south-east cursor (value is 8).- Since:
- 1.4
- See Also:
- Constant Field Values
-
CURSOR_SIZEWE
public static final int CURSOR_SIZEWE
System resize west-east cursor (value is 9).- Since:
- 1.2
- See Also:
- Constant Field Values
-
CURSOR_SIZEN
public static final int CURSOR_SIZEN
System resize north cursor (value is 10).- Since:
- 1.2
- See Also:
- Constant Field Values
-
CURSOR_SIZES
public static final int CURSOR_SIZES
System resize south cursor (value is 11).- Since:
- 1.2
- See Also:
- Constant Field Values
-
CURSOR_SIZEE
public static final int CURSOR_SIZEE
System resize east cursor (value is 12).- Since:
- 1.2
- See Also:
- Constant Field Values
-
CURSOR_SIZEW
public static final int CURSOR_SIZEW
System resize west cursor (value is 13).- Since:
- 1.2
- See Also:
- Constant Field Values
-
CURSOR_SIZENE
public static final int CURSOR_SIZENE
System resize north-east cursor (value is 14).- Since:
- 1.2
- See Also:
- Constant Field Values
-
CURSOR_SIZESE
public static final int CURSOR_SIZESE
System resize south-east cursor (value is 15).- Since:
- 1.2
- See Also:
- Constant Field Values
-
CURSOR_SIZESW
public static final int CURSOR_SIZESW
System resize south-west cursor (value is 16).- Since:
- 1.2
- See Also:
- Constant Field Values
-
CURSOR_SIZENW
public static final int CURSOR_SIZENW
System resize north-west cursor (value is 17).- Since:
- 1.2
- See Also:
- Constant Field Values
-
CURSOR_UPARROW
public static final int CURSOR_UPARROW
System up arrow cursor (value is 18).- Since:
- 1.3
- See Also:
- Constant Field Values
-
CURSOR_IBEAM
public static final int CURSOR_IBEAM
System i-beam cursor (value is 19).- Since:
- 1.2
- See Also:
- Constant Field Values
-
CURSOR_NO
public static final int CURSOR_NO
System "not allowed" cursor (value is 20).- Since:
- 1.3
- See Also:
- Constant Field Values
-
CURSOR_HAND
public static final int CURSOR_HAND
System hand cursor (value is 21).- Since:
- 1.2
- See Also:
- Constant Field Values
-
CAP_FLAT
public static final int CAP_FLAT
Line drawing style for flat end caps (value is 1).- Since:
- 1.3
- See Also:
GC.setLineCap(int),GC.getLineCap(), Constant Field Values
-
CAP_ROUND
public static final int CAP_ROUND
Line drawing style for rounded end caps (value is 2).- Since:
- 1.3
- See Also:
GC.setLineCap(int),GC.getLineCap(), Constant Field Values
-
CAP_SQUARE
public static final int CAP_SQUARE
Line drawing style for square end caps (value is 3).- Since:
- 1.3
- See Also:
GC.setLineCap(int),GC.getLineCap(), Constant Field Values
-
JOIN_MITER
public static final int JOIN_MITER
Line drawing style for miter joins (value is 1).- Since:
- 1.3
- See Also:
GC.setLineJoin(int),GC.getLineJoin(), Constant Field Values
-
JOIN_ROUND
public static final int JOIN_ROUND
Line drawing style for rounded joins (value is 2).- Since:
- 1.3
- See Also:
GC.setLineJoin(int),GC.getLineJoin(), Constant Field Values
-
JOIN_BEVEL
public static final int JOIN_BEVEL
Line drawing style for bevel joins (value is 3).- Since:
- 1.3
- See Also:
GC.setLineJoin(int),GC.getLineJoin(), Constant Field Values
-
DRAW_TRANSPARENT
public static final int DRAW_TRANSPARENT
Draw constant indicating whether the drawing operation should fill the background (value is 1<<0).- Since:
- 1.3
- See Also:
- Constant Field Values
-
DRAW_DELIMITER
public static final int DRAW_DELIMITER
Draw constant indicating whether the string drawing operation should handle line-delimiters (value is 1<<1).- Since:
- 1.3
- See Also:
- Constant Field Values
-
DRAW_TAB
public static final int DRAW_TAB
Draw constant indicating whether the string drawing operation should expand TAB characters (value is 1<<2).- Since:
- 1.3
- See Also:
- Constant Field Values
-
DRAW_MNEMONIC
public static final int DRAW_MNEMONIC
Draw constant indicating whether the string drawing operation should handle mnemonics (value is 1<<3).- Since:
- 1.4
- See Also:
- Constant Field Values
-
LINE_SOLID
public static final int LINE_SOLID
Line drawing style for solid lines (value is 1).- Since:
- 3.19
- See Also:
- Constant Field Values
-
LINE_DASH
public static final int LINE_DASH
Line drawing style for dashed lines (value is 2).- Since:
- 3.19
- See Also:
- Constant Field Values
-
LINE_DOT
public static final int LINE_DOT
Line drawing style for dotted lines (value is 3).- Since:
- 3.19
- See Also:
- Constant Field Values
-
LINE_DASHDOT
public static final int LINE_DASHDOT
Line drawing style for alternating dash-dot lines (value is 4).- Since:
- 3.19
- See Also:
- Constant Field Values
-
LINE_DASHDOTDOT
public static final int LINE_DASHDOTDOT
Line drawing style for dash-dot-dot lines (value is 5).- Since:
- 3.19
- See Also:
- Constant Field Values
-
LINE_CUSTOM
public static final int LINE_CUSTOM
Line drawing style for custom dashed lines (value is 6).- Since:
- 3.19
- See Also:
GC.setLineDash(int[]),GC.getLineDash(), Constant Field Values
-
PATH_MOVE_TO
public static final int PATH_MOVE_TO
Path constant that represents a "move to" operation (value is 1).- Since:
- 2.1
- See Also:
- Constant Field Values
-
PATH_LINE_TO
public static final int PATH_LINE_TO
Path constant that represents a "line to" operation (value is 2).- Since:
- 2.1
- See Also:
- Constant Field Values
-
PATH_QUAD_TO
public static final int PATH_QUAD_TO
Path constant that represents a "quadratic curve to" operation (value is 3).- Since:
- 2.1
- See Also:
- Constant Field Values
-
PATH_CUBIC_TO
public static final int PATH_CUBIC_TO
Path constant that represents a "cubic curve to" operation (value is 4).- Since:
- 2.1
- See Also:
- Constant Field Values
-
PATH_CLOSE
public static final int PATH_CLOSE
Path constant that represents a "close" operation (value is 5).- Since:
- 2.1
- See Also:
- Constant Field Values
-
ICON_ERROR
public static final int ICON_ERROR
TheMessageBoxstyle constant for error icon behavior (value is 1).- See Also:
- Constant Field Values
-
ICON_INFORMATION
public static final int ICON_INFORMATION
TheMessageBoxstyle constant for information icon behavior (value is 1<<1).- See Also:
- Constant Field Values
-
ICON_QUESTION
public static final int ICON_QUESTION
TheMessageBoxstyle constant for question icon behavior (value is 1<<2).- See Also:
- Constant Field Values
-
ICON_WARNING
public static final int ICON_WARNING
TheMessageBoxstyle constant for warning icon behavior (value is 1<<3).- See Also:
- Constant Field Values
-
ICON_WORKING
public static final int ICON_WORKING
TheMessageBoxstyle constant for "working" icon behavior (value is 1<<4).- See Also:
- Constant Field Values
-
ICON_SEARCH
public static final int ICON_SEARCH
The style constant for "search" icon. This style constant is used withTextin combination withSWT.SEARCH(value is 1<<9).
Note that this is a HINT.Used By:
Text
- Since:
- 1.3
- See Also:
SEARCH,ICON_CANCEL, Constant Field Values
-
ICON_CANCEL
public static final int ICON_CANCEL
The style constant for "cancel" icon. This style constant is used withTextin combination withSWT.SEARCH(value is 1<<8).
Note that this is a HINT.Used By:
Text
- Since:
- 1.3
- See Also:
SEARCH,ICON_SEARCH, Constant Field Values
-
OK
public static final int OK
TheMessageBoxstyle constant for an OK button; valid combinations are OK, OK|CANCEL (value is 1<<5).- Since:
- 1.2
- See Also:
- Constant Field Values
-
YES
public static final int YES
TheMessageBoxstyle constant for YES button; valid combinations are YES|NO, YES|NO|CANCEL (value is 1<<6).- Since:
- 1.2
- See Also:
- Constant Field Values
-
NO
public static final int NO
TheMessageBoxstyle constant for NO button; valid combinations are YES|NO, YES|NO|CANCEL (value is 1<<7).- Since:
- 1.2
- See Also:
- Constant Field Values
-
CANCEL
public static final int CANCEL
TheMessageBoxstyle constant for a CANCEL button; valid combinations are OK|CANCEL, YES|NO|CANCEL, RETRY|CANCEL (value is 1<<8).Used By:
MessageBox
- Since:
- 1.2
- See Also:
- Constant Field Values
-
ABORT
public static final int ABORT
TheMessageBoxstyle constant for an ABORT button; the only valid combination is ABORT|RETRY|IGNORE (value is 1<<9).- Since:
- 1.2
- See Also:
- Constant Field Values
-
RETRY
public static final int RETRY
TheMessageBoxstyle constant for a RETRY button; valid combinations are ABORT|RETRY|IGNORE, RETRY|CANCEL (value is 1<<10).- Since:
- 1.2
- See Also:
- Constant Field Values
-
IGNORE
public static final int IGNORE
TheMessageBoxstyle constant for an IGNORE button; the only valid combination is ABORT|RETRY|IGNORE (value is 1<<11).- Since:
- 1.2
- See Also:
- Constant Field Values
-
OPEN
public static final int OPEN
TheFileDialogstyle constant for open file dialog behavior (value is 1<<12).- See Also:
- Constant Field Values
-
SAVE
public static final int SAVE
TheFileDialogstyle constant for save file dialog behavior (value is 1<<13).Note:
This constant is meant to ease single-sourcing. In RAP theFileDialogdoes not support this constant.- Since:
- 1.3
- See Also:
- Constant Field Values
-
INHERIT_NONE
public static final int INHERIT_NONE
TheCompositeconstant to indicate that an attribute (such as background) is not inherited by the children (value is 0).- Since:
- 1.1
- See Also:
- Constant Field Values
-
INHERIT_DEFAULT
public static final int INHERIT_DEFAULT
TheCompositeconstant 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:
- 1.1
- See Also:
- Constant Field Values
-
INHERIT_FORCE
public static final int INHERIT_FORCE
TheCompositeconstant to indicate that an attribute (such as background) is inherited by all children.- Since:
- 1.1
- See Also:
- Constant Field Values
-
COLOR_WHITE
public static final int COLOR_WHITE
Default color white (value is 1).- See Also:
- Constant Field Values
-
COLOR_BLACK
public static final int COLOR_BLACK
Default color black (value is 2).- See Also:
- Constant Field Values
-
COLOR_RED
public static final int COLOR_RED
Default color red (value is 3).- See Also:
- Constant Field Values
-
COLOR_DARK_RED
public static final int COLOR_DARK_RED
Default color dark red (value is 4).- See Also:
- Constant Field Values
-
COLOR_GREEN
public static final int COLOR_GREEN
Default color green (value is 5).- See Also:
- Constant Field Values
-
COLOR_DARK_GREEN
public static final int COLOR_DARK_GREEN
Default color dark green (value is 6).- See Also:
- Constant Field Values
-
COLOR_YELLOW
public static final int COLOR_YELLOW
Default color yellow (value is 7).- See Also:
- Constant Field Values
-
COLOR_DARK_YELLOW
public static final int COLOR_DARK_YELLOW
Default color dark yellow (value is 8).- See Also:
- Constant Field Values
-
COLOR_BLUE
public static final int COLOR_BLUE
Default color blue (value is 9).- See Also:
- Constant Field Values
-
COLOR_DARK_BLUE
public static final int COLOR_DARK_BLUE
Default color dark blue (value is 10).- See Also:
- Constant Field Values
-
COLOR_MAGENTA
public static final int COLOR_MAGENTA
Default color magenta (value is 11).- See Also:
- Constant Field Values
-
COLOR_DARK_MAGENTA
public static final int COLOR_DARK_MAGENTA
Default color dark magenta (value is 12).- See Also:
- Constant Field Values
-
COLOR_CYAN
public static final int COLOR_CYAN
Default color cyan (value is 13).- See Also:
- Constant Field Values
-
COLOR_DARK_CYAN
public static final int COLOR_DARK_CYAN
Default color dark cyan (value is 14).- See Also:
- Constant Field Values
-
COLOR_GRAY
public static final int COLOR_GRAY
Default color gray (value is 15).- See Also:
- Constant Field Values
-
COLOR_DARK_GRAY
public static final int COLOR_DARK_GRAY
Default color dark gray (value is 16).- See Also:
- Constant Field Values
-
COLOR_WIDGET_DARK_SHADOW
public static final int COLOR_WIDGET_DARK_SHADOW
System color used to paint dark shadow areas (value is 17).- See Also:
- Constant Field Values
-
COLOR_WIDGET_NORMAL_SHADOW
public static final int COLOR_WIDGET_NORMAL_SHADOW
System color used to paint normal shadow areas (value is 18).- See Also:
- Constant Field Values
-
COLOR_WIDGET_LIGHT_SHADOW
public static final int COLOR_WIDGET_LIGHT_SHADOW
System color used to paint light shadow areas (value is 19).- See Also:
- Constant Field Values
-
COLOR_WIDGET_HIGHLIGHT_SHADOW
public static final int COLOR_WIDGET_HIGHLIGHT_SHADOW
System color used to paint highlight shadow areas (value is 20).- See Also:
- Constant Field Values
-
COLOR_WIDGET_FOREGROUND
public static final int COLOR_WIDGET_FOREGROUND
System color used to paint foreground areas (value is 21).- See Also:
- Constant Field Values
-
COLOR_WIDGET_BACKGROUND
public static final int COLOR_WIDGET_BACKGROUND
System color used to paint background areas (value is 22).- See Also:
- Constant Field Values
-
COLOR_WIDGET_BORDER
public static final int COLOR_WIDGET_BORDER
System color used to paint border areas (value is 23).- See Also:
- Constant Field Values
-
COLOR_LIST_FOREGROUND
public static final int COLOR_LIST_FOREGROUND
System color used to paint list foreground areas (value is 24).- See Also:
- Constant Field Values
-
COLOR_LIST_BACKGROUND
public static final int COLOR_LIST_BACKGROUND
System color used to paint list background areas (value is 25).- See Also:
- Constant Field Values
-
COLOR_LIST_SELECTION
public static final int COLOR_LIST_SELECTION
System color used to paint list selection background areas (value is 26).- See Also:
- Constant Field Values
-
COLOR_LIST_SELECTION_TEXT
public static final int COLOR_LIST_SELECTION_TEXT
System color used to paint list selected text (value is 27).- See Also:
- Constant Field Values
-
COLOR_INFO_FOREGROUND
public static final int COLOR_INFO_FOREGROUND
System color used to paint tooltip text (value is 28).- See Also:
- Constant Field Values
-
COLOR_INFO_BACKGROUND
public static final int COLOR_INFO_BACKGROUND
System color used to paint tooltip background areas (value is 29).- See Also:
- Constant Field Values
-
COLOR_TITLE_FOREGROUND
public static final int COLOR_TITLE_FOREGROUND
System color used to paint title text (value is 30).- See Also:
- Constant Field Values
-
COLOR_TITLE_BACKGROUND
public static final int COLOR_TITLE_BACKGROUND
System color used to paint title background areas (value is 31).- See Also:
- Constant Field Values
-
COLOR_TITLE_BACKGROUND_GRADIENT
public static final int COLOR_TITLE_BACKGROUND_GRADIENT
System color used to paint title background gradient (value is 32).- See Also:
- Constant Field Values
-
COLOR_TITLE_INACTIVE_FOREGROUND
public static final int COLOR_TITLE_INACTIVE_FOREGROUND
System color used to paint inactive title text (value is 33).- See Also:
- Constant Field Values
-
COLOR_TITLE_INACTIVE_BACKGROUND
public static final int COLOR_TITLE_INACTIVE_BACKGROUND
System color used to paint inactive title background areas (value is 34).- See Also:
- Constant Field Values
-
COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT
public static final int COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT
System color used to paint inactive title background gradient (value is 35).- See Also:
- Constant Field Values
-
COLOR_TRANSPARENT
public static final int COLOR_TRANSPARENT
System color used to paint with alpha 0 (value is 37).This pseudo-color can be used to set a transparent background on SWT controls.
- Since:
- 3.1
- See Also:
- Constant Field Values
-
ERROR_UNSPECIFIED
public static final int ERROR_UNSPECIFIED
SWT error constant indicating that no error number was specified (value is 1).- See Also:
- Constant Field Values
-
ERROR_NO_HANDLES
public static final int ERROR_NO_HANDLES
SWT error constant indicating that no more handles for an operating system resource are available (value is 2).- See Also:
- Constant Field Values
-
ERROR_NO_MORE_CALLBACKS
public static final int ERROR_NO_MORE_CALLBACKS
SWT error constant indicating that no more callback resources are available (value is 3).- See Also:
- Constant Field Values
-
ERROR_NULL_ARGUMENT
public static final int ERROR_NULL_ARGUMENT
SWT error constant indicating that a null argument was passed in (value is 4).- See Also:
- Constant Field Values
-
ERROR_INVALID_ARGUMENT
public static final int ERROR_INVALID_ARGUMENT
SWT error constant indicating that an invalid argument was passed in (value is 5).- See Also:
- Constant Field Values
-
ERROR_INVALID_RANGE
public static final int ERROR_INVALID_RANGE
SWT error constant indicating that a value was found to be outside the allowable range (value is 6).- See Also:
- Constant Field Values
-
ERROR_CANNOT_BE_ZERO
public static final int ERROR_CANNOT_BE_ZERO
SWT error constant indicating that a value which can not be zero was found to be (value is 7).- See Also:
- Constant Field Values
-
ERROR_CANNOT_GET_ITEM
public static final int ERROR_CANNOT_GET_ITEM
SWT error constant indicating that the underlying operating system was unable to provide the value of an item (value is 8).- See Also:
- Constant Field Values
-
ERROR_CANNOT_GET_SELECTION
public static final int ERROR_CANNOT_GET_SELECTION
SWT error constant indicating that the underlying operating system was unable to provide the selection (value is 9).- See Also:
- Constant Field Values
-
ERROR_CANNOT_INVERT_MATRIX
public static final int ERROR_CANNOT_INVERT_MATRIX
SWT error constant indicating that the matrix is not invertible (value is 10).- See Also:
- Constant Field Values
-
ERROR_CANNOT_GET_ITEM_HEIGHT
public static final int ERROR_CANNOT_GET_ITEM_HEIGHT
SWT error constant indicating that the underlying operating system was unable to provide the height of an item (value is 11).- See Also:
- Constant Field Values
-
ERROR_CANNOT_GET_TEXT
public static final int ERROR_CANNOT_GET_TEXT
SWT error constant indicating that the underlying operating system was unable to provide the text of a widget (value is 12).- See Also:
- Constant Field Values
-
ERROR_CANNOT_SET_TEXT
public static final int ERROR_CANNOT_SET_TEXT
SWT error constant indicating that the underlying operating system was unable to set the text of a widget (value is 13).- See Also:
- Constant Field Values
-
ERROR_ITEM_NOT_ADDED
public static final int ERROR_ITEM_NOT_ADDED
SWT error constant indicating that the underlying operating system was unable to add an item (value is 14).- See Also:
- Constant Field Values
-
ERROR_ITEM_NOT_REMOVED
public static final int ERROR_ITEM_NOT_REMOVED
SWT error constant indicating that the underlying operating system was unable to remove an item (value is 15).- See Also:
- Constant Field Values
-
ERROR_NO_GRAPHICS_LIBRARY
public static final int ERROR_NO_GRAPHICS_LIBRARY
SWT error constant indicating that the graphics library is not available (value is 16).- See Also:
- Constant Field Values
-
ERROR_NOT_IMPLEMENTED
public static final int ERROR_NOT_IMPLEMENTED
SWT error constant indicating that a particular feature has not been implemented on this platform (value is 20).- See Also:
- Constant Field Values
-
ERROR_MENU_NOT_DROP_DOWN
public static final int ERROR_MENU_NOT_DROP_DOWN
SWT error constant indicating that a menu which needed to have the drop down style had some other style instead (value is 21).- See Also:
- Constant Field Values
-
ERROR_THREAD_INVALID_ACCESS
public static final int ERROR_THREAD_INVALID_ACCESS
SWT error constant indicating that an attempt was made to invoke an SWT operation which can only be executed by the user-interface thread from some other thread (value is 22).- See Also:
- Constant Field Values
-
ERROR_WIDGET_DISPOSED
public static final int ERROR_WIDGET_DISPOSED
SWT error constant indicating that an attempt was made to invoke an SWT operation using a widget which had already been disposed (value is 24).- See Also:
- Constant Field Values
-
ERROR_MENUITEM_NOT_CASCADE
public static final int ERROR_MENUITEM_NOT_CASCADE
SWT error constant indicating that a menu item which needed to have the cascade style had some other style instead (value is 27).- See Also:
- Constant Field Values
-
ERROR_CANNOT_SET_SELECTION
public static final int ERROR_CANNOT_SET_SELECTION
SWT error constant indicating that the underlying operating system was unable to set the selection of a widget (value is 28).- See Also:
- Constant Field Values
-
ERROR_CANNOT_SET_MENU
public static final int ERROR_CANNOT_SET_MENU
SWT error constant indicating that the underlying operating system was unable to set the menu (value is 29).- See Also:
- Constant Field Values
-
ERROR_CANNOT_SET_ENABLED
public static final int ERROR_CANNOT_SET_ENABLED
SWT error constant indicating that the underlying operating system was unable to set the enabled state (value is 30).- See Also:
- Constant Field Values
-
ERROR_CANNOT_GET_ENABLED
public static final int ERROR_CANNOT_GET_ENABLED
SWT error constant indicating that the underlying operating system was unable to provide enabled/disabled state information (value is 31).- See Also:
- Constant Field Values
-
ERROR_INVALID_PARENT
public static final int ERROR_INVALID_PARENT
SWT error constant indicating that a provided widget can not be used as a parent in the current operation (value is 32).- See Also:
- Constant Field Values
-
ERROR_MENU_NOT_BAR
public static final int ERROR_MENU_NOT_BAR
SWT error constant indicating that a menu which needed to have the menu bar style had some other style instead (value is 33).- See Also:
- Constant Field Values
-
ERROR_CANNOT_GET_COUNT
public static final int ERROR_CANNOT_GET_COUNT
SWT error constant indicating that the underlying operating system was unable to provide count information (value is 36).- See Also:
- Constant Field Values
-
ERROR_MENU_NOT_POP_UP
public static final int ERROR_MENU_NOT_POP_UP
SWT error constant indicating that a menu which needed to have the pop up menu style had some other style instead (value is 37).- See Also:
- Constant Field Values
-
ERROR_UNSUPPORTED_DEPTH
public static final int ERROR_UNSUPPORTED_DEPTH
SWT error constant indicating that a graphics operation was attempted with an image of an unsupported depth (value is 38).- See Also:
- Constant Field Values
-
ERROR_IO
public static final int ERROR_IO
SWT error constant indicating that an input/output operation failed during the execution of an SWT operation (value is 39).- See Also:
- Constant Field Values
-
ERROR_INVALID_IMAGE
public static final int ERROR_INVALID_IMAGE
SWT error constant indicating that a graphics operation was attempted with an image having an invalid format (value is 40).- See Also:
- Constant Field Values
-
ERROR_UNSUPPORTED_FORMAT
public static final int ERROR_UNSUPPORTED_FORMAT
SWT error constant indicating that a graphics operation was attempted with an image having a valid but unsupported format (value is 42).- See Also:
- Constant Field Values
-
ERROR_INVALID_SUBCLASS
public static final int ERROR_INVALID_SUBCLASS
SWT 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:
Widget.checkSubclass(), Constant Field Values
-
ERROR_GRAPHIC_DISPOSED
public static final int ERROR_GRAPHIC_DISPOSED
SWT error constant indicating that an attempt was made to invoke an SWT operation using a graphics object which had already been disposed (value is 44).- See Also:
- Constant Field Values
-
ERROR_DEVICE_DISPOSED
public static final int ERROR_DEVICE_DISPOSED
SWT error constant indicating that an attempt was made to invoke an SWT operation using a device which had already been disposed (value is 45).- See Also:
- Constant Field Values
-
ERROR_FAILED_EXEC
public static final int ERROR_FAILED_EXEC
SWT error constant indicating that an exception happened when executing a runnable (value is 46).- See Also:
- Constant Field Values
-
ERROR_FAILED_LOAD_LIBRARY
public static final int ERROR_FAILED_LOAD_LIBRARY
SWT error constant indicating that an unsatisfied link error occurred while attempting to load a library (value is 47).- See Also:
- Constant Field Values
-
ERROR_INVALID_FONT
public static final int ERROR_INVALID_FONT
SWT error constant indicating that a font is not valid (value is 48).- See Also:
- Constant Field Values
-
ERROR_FUNCTION_DISPOSED
public static final int ERROR_FUNCTION_DISPOSED
SWT error constant indicating that an attempt was made to use an BrowserFunction object which had already been disposed (value is 49).- Since:
- 1.3
- See Also:
- Constant Field Values
-
ERROR_FAILED_EVALUATE
public static final int ERROR_FAILED_EVALUATE
SWT error constant indicating that an exception happened when evaluating a javascript expression (value is 50).- Since:
- 1.4
- See Also:
- Constant Field Values
-
ERROR_INVALID_RETURN_VALUE
public static final int ERROR_INVALID_RETURN_VALUE
SWT error constant indicating that an invalid value was returned (value is 51).- Since:
- 2.3
- See Also:
- Constant Field Values
-
IMAGE_COPY
public static final int IMAGE_COPY
TheImageconstructor argument indicating that the new image should be a copy of the image provided as an argument (value is 0).- Since:
- 1.3
- See Also:
- Constant Field Values
-
IMAGE_DISABLE
public static final int IMAGE_DISABLE
TheImageconstructor 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).- Since:
- 3.0
- See Also:
- Constant Field Values
-
IMAGE_GRAY
public static final int IMAGE_GRAY
TheImageconstructor 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).- Since:
- 3.0
- See Also:
- Constant Field Values
-
IMAGE_UNDEFINED
public static final int IMAGE_UNDEFINED
Image format constant indicating an unknown image type (value is -1).- See Also:
- Constant Field Values
-
IMAGE_BMP
public static final int IMAGE_BMP
Image format constant indicating a Windows BMP format image (value is 0).- See Also:
- Constant Field Values
-
IMAGE_BMP_RLE
public static final int IMAGE_BMP_RLE
Image format constant indicating a run-length encoded Windows BMP format image (value is 1).- See Also:
- Constant Field Values
-
IMAGE_GIF
public static final int IMAGE_GIF
Image format constant indicating a GIF format image (value is 2).- See Also:
- Constant Field Values
-
IMAGE_ICO
public static final int IMAGE_ICO
Image format constant indicating a ICO format image (value is 3).- See Also:
- Constant Field Values
-
IMAGE_JPEG
public static final int IMAGE_JPEG
Image format constant indicating a JPEG format image (value is 4).- See Also:
- Constant Field Values
-
IMAGE_PNG
public static final int IMAGE_PNG
Image format constant indicating a PNG format image (value is 5).- See Also:
- Constant Field Values
-
IMAGE_TIFF
public static final int IMAGE_TIFF
Image format constant indicating a TIFF format image (value is 6).- See Also:
- Constant Field Values
-
IMAGE_OS2_BMP
public static final int IMAGE_OS2_BMP
Image format constant indicating an OS/2 BMP format image (value is 7).- See Also:
- Constant Field Values
-
DM_UNSPECIFIED
public static final int DM_UNSPECIFIED
GIF image disposal method constants indicating that the disposal method is unspecified (value is 0).- See Also:
- Constant Field Values
-
DM_FILL_NONE
public static final int DM_FILL_NONE
GIF image disposal method constants indicating that the disposal method is to do nothing; that is, to leave the previous image in place (value is 1).- See Also:
- Constant Field Values
-
DM_FILL_BACKGROUND
public static final int DM_FILL_BACKGROUND
GIF image disposal method constants indicating that the the previous images should be covered with the background color before displaying the next image (value is 2).- See Also:
- Constant Field Values
-
DM_FILL_PREVIOUS
public static final int DM_FILL_PREVIOUS
GIF image disposal method constants indicating that the disposal method is to restore the previous picture (value is 3).- See Also:
- Constant Field Values
-
TRANSPARENCY_NONE
public static final int TRANSPARENCY_NONE
Image transparency constant indicating that the image contains no transparency information (value is 0).- See Also:
- Constant Field Values
-
TRANSPARENCY_ALPHA
public static final int TRANSPARENCY_ALPHA
Image transparency constant indicating that the image contains alpha transparency information (value is 1<<0).- See Also:
- Constant Field Values
-
TRANSPARENCY_MASK
public static final int TRANSPARENCY_MASK
Image transparency constant indicating that the image contains a transparency mask (value is 1<<1).- See Also:
- Constant Field Values
-
TRANSPARENCY_PIXEL
public static final int TRANSPARENCY_PIXEL
Image transparency constant indicating that the image contains a transparent pixel (value is 1<<2).- See Also:
- Constant Field Values
-
DATE
public static final int DATE
Style constant for date display (value is 1<<5).Used By:
DateTime
- Since:
- 1.1.1
- See Also:
- Constant Field Values
-
TIME
public static final int TIME
Style constant for time display (value is 1<<7).Used By:
DateTime
- Since:
- 1.1.1
- See Also:
- Constant Field Values
-
CALENDAR
public static final int CALENDAR
Style constant for calendar display (value is 1<<10).Used By:
DateTime
- Since:
- 1.1.1
- See Also:
- Constant Field Values
-
SHORT
public static final int SHORT
Style 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:
- 1.1.1
- See Also:
- Constant Field Values
-
MEDIUM
public static final int MEDIUM
Style 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:
- 1.1.1
- See Also:
- Constant Field Values
-
LONG
public static final int LONG
Style 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:
- 1.1.1
- See Also:
- Constant Field Values
-
MOZILLA
public static final int MOZILLA
Style constant specifying that a Browser should use a Mozilla GRE for rendering its content (value is 1<<15).Used By:
Browser
- Since:
- 1.4
- See Also:
- Constant Field Values
-
WEBKIT
public static final int WEBKIT
Style constant specifying that a Browser should use WebKit for rendering its content (value is 1<<16).Used By:
Browser
- Since:
- 1.4
- See Also:
- Constant Field Values
-
SKIN_CLASS
public static final java.lang.String SKIN_CLASS
Key value for setting and getting the skin class of a widget.- Since:
- 1.3
- See Also:
Widget.getData(String),Widget.setData(String, Object), Constant Field Values
-
SKIN_ID
public static final java.lang.String SKIN_ID
Key value for setting and getting the skin id of a widget.- Since:
- 1.3
- See Also:
Widget.getData(String),Widget.setData(String, Object), Constant Field Values
-
ID_ABOUT
public static final int ID_ABOUT
ID for the About menu item (value is -1).- Since:
- 1.4
- See Also:
MenuItem.setID(int),MenuItem.getID(), Constant Field Values
-
ID_PREFERENCES
public static final int ID_PREFERENCES
ID for the Preferences menu item (value is -2).- Since:
- 1.4
- See Also:
MenuItem.setID(int),MenuItem.getID(), Constant Field Values
-
ID_HIDE
public static final int ID_HIDE
ID for the Hide menu item (value is -3).- Since:
- 1.4
- See Also:
MenuItem.setID(int),MenuItem.getID(), Constant Field Values
-
ID_HIDE_OTHERS
public static final int ID_HIDE_OTHERS
ID for the Hide Others menu item (value is -4).- Since:
- 1.4
- See Also:
MenuItem.setID(int),MenuItem.getID(), Constant Field Values
-
ID_SHOW_ALL
public static final int ID_SHOW_ALL
ID for the Show All menu item (value is -5).- Since:
- 1.4
- See Also:
MenuItem.setID(int),MenuItem.getID(), Constant Field Values
-
ID_QUIT
public static final int ID_QUIT
ID for the Quit menu item (value is -6).- Since:
- 1.4
- See Also:
MenuItem.setID(int),MenuItem.getID(), Constant Field Values
-
-
Method Detail
-
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
public static void error(int code, java.lang.Throwable throwable)Throws an appropriate exception based on the passed in error code. Thethrowableargument 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:
SWTError,SWTException,IllegalArgumentException
-
error
public static void error(int code, java.lang.Throwable throwable, java.lang.String detail)Throws an appropriate exception based on the passed in error code. Thethrowableargument 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.- See Also:
SWTError,SWTException,IllegalArgumentException
-
getVersion
public static int getVersion()
Returns the SWT version number as an integer. Example: "SWT051" == 51Note: In RWT, this method returns the RWT version number. Use in combination with
getPlatform().- Returns:
- the SWT version number
- Since:
- 1.3
-
getPlatform
public static java.lang.String getPlatform()
Returns the SWT platform name. Examples: "win32", "motif", "gtk", "photon", "carbon", "rap"- Returns:
- the SWT platform name
- Since:
- 1.1
-
getMessage
public static java.lang.String getMessage(java.lang.String key)
Returns the NLS'ed message for the given argument.- Parameters:
key- the key to look up- Returns:
- the message for the given key
- Throws:
java.lang.IllegalArgumentException-- ERROR_NULL_ARGUMENT - if the key is null
-
-