From b5b3cd3e945be0d98bd10b79ba463d35b14e782e Mon Sep 17 00:00:00 2001
From: summer-alice
+ * On some platforms the orientation of text widgets
+ * can be changed by keyboard shortcut.
+ * The application can use the
+ * The skin event is sent by the display when a widget needs to
+ * be skinned.
+ *
+ * This event is sent when SWT receives notification that a document
+ * should be opened.
+ *
+ * This event is sent when a touch has been performed
+ * on a touch-based input source.
+ *
+ * This event is sent when a gesture has been performed.
+ *
+ * This event is sent when text content has been changed.
+ *
+ * This event is sent before an event other than {@link #PreExternalEventDispatch} or
+ * {@link #PostExternalEventDispatch} is dispatched.
+ *
+ * The detail field of the event contains the type of the following event.
+ *
+ * This event is sent after an event other than {@link #PreExternalEventDispatch} or
+ * {@link #PostExternalEventDispatch} is dispatched.
+ *
+ * The detail field of the event contains the type of the prior event.
+ *
+ * This event is sent before calling a blocking method that does its own event dispatch outside
+ * of the SWT code.
+ *
+ * This event is sent after calling a blocking method that does its own event dispatch outside
+ * of the SWT code.
+ * Used By:doit
field
+ * of the event to stop the change from happening.
+ *
+ *
Composite
layout
Used By:
Composite
layoutToolItem
CoolItem
Combo
DateTime
Used By:
ToolItem.setWidth()
Used By:
Used By:
Text
List
Table
Tree
FileDialog
Used By:
Button
Label
Text
ToolBar
Used By:
Combo
Used By:
Group
Used By:
Group
Note that this is a HINT. + *
Used By:
Shell
Used By:
+ * A sheet window is a window intended to be used as a temporary modal
+ * dialog that is attached to a parent window. It is typically used to
+ * prompt the user before proceeding. The window trim, positioning and
+ * general look of a sheet window is platform specific. For example,
+ * on the Macintosh, at the time this documentation was written, the
+ * window title is not visible.
+ *
Note that this is a HINT.
+ *
Used By:
Dialog
and subclassesShell
and subclasses
+ * When the bit is set, text direction mismatches the widget orientation.
+ *
Note that this is a HINT.
+ *
Used By:
Control
+ * When the bit is set, text direction is derived from the direction of the + * first strong Bidi character. + *
+ *Used By:
Control
TextLayout
+ * If the text color or the underline color are not set in the range
+ * the usage of UNDERLINE_LINK
will change these colors
+ * to the preferred link color of the platform.
+ * Note that clients that use this style, such as StyledText
,
+ * will include code to track the mouse and change the cursor to the hand
+ * cursor when mouse is over the link.
+ *
Used By:
TextStyle
Used By:
Used By:
FormAttachment
in a FormLayout
TabFolder
Used By:
Button
Label
Text
TableColumn
TreeColumn
Tracker
FormAttachment
in a FormLayout
+ * This constant can also be used to representing the left keyboard + * location during a key event. + *
*/ public static const int LEFT = LEAD; @@ -1649,7 +2073,9 @@ public class SWT { *Used By:
Button
Label
Text
TableColumn
TreeColumn
Tracker
FormAttachment
in a FormLayout
+ * This constant can also be used to representing the right keyboard + * location during a key event. + *
*/ public static const int RIGHT = TRAIL; @@ -1798,6 +2228,19 @@ public class SWT { */ public static const int MOZILLA = 1 << 15; + /** + * Style constant specifying that a Browser should use WebKit + * for rendering its content (value is 1<<16). + *+ *
Used By:
Browser
Used By:
char
' ').
+ *
+ * @since 3.7
+ */
+ public static const char SPACE = ' ';
+
/**
* keyboard and/or mouse event mask indicating that the ALT key
* was pushed on the keyboard when the event was generated
@@ -1946,19 +2397,19 @@ public class SWT {
public static const int MODIFIER_MASK = ALT | SHIFT | CTRL | COMMAND;
/**
- * Keyboard and/or mouse event mask indicating that mouse button one
+ * Keyboard and/or mouse event mask indicating that mouse button one (usually 'left')
* was pushed when the event was generated. (value is 1<<19).
*/
public static const int BUTTON1 = 1 << 19;
/**
- * Keyboard and/or mouse event mask indicating that mouse button two
+ * Keyboard and/or mouse event mask indicating that mouse button two (usually 'middle')
* was pushed when the event was generated. (value is 1<<20).
*/
public static const int BUTTON2 = 1 << 20;
/**
- * Keyboard and/or mouse event mask indicating that mouse button three
+ * Keyboard and/or mouse event mask indicating that mouse button three (usually 'right')
* was pushed when the event was generated. (value is 1<<21).
*/
public static const int BUTTON3 = 1 << 21;
@@ -2003,7 +2454,7 @@ public class SWT {
*
* @since 2.1
*/
- version(CARBON){
+ version(Cocoa){
public static const int MOD1 = COMMAND;
}
else{
@@ -2018,7 +2469,7 @@ public class SWT {
*
* @since 2.1
*/
- version(CARBON){
+ version(Cocoa){
public static const int MOD2 = SHIFT;
}
else{
@@ -2031,7 +2482,7 @@ public class SWT {
*
* @since 2.1
*/
- version(CARBON){
+ version(Cocoa){
public static const int MOD3 = ALT;
}
else{
@@ -2044,7 +2495,7 @@ public class SWT {
*
* @since 2.1
*/
- version(CARBON){
+ version(Cocoa){
public static const int MOD4 = CONTROL;
}
else{
@@ -2256,6 +2707,57 @@ public class SWT {
*/
public static const int F15 = KEYCODE_BIT + 24;
+ /**
+ * Keyboard event constant representing the F16 key
+ * (value is (1<<25)+25).
+ *
+ * @since 3.6
+ */
+ public static const int F16 = KEYCODE_BIT + 25;
+
+
+ /**
+ * Keyboard event constant representing the F17 key
+ * (value is (1<<26)+26).
+ *
+ * @since 3.6
+ */
+ public static const int F17 = KEYCODE_BIT + 26;
+
+
+ /**
+ * Keyboard event constant representing the F18 key
+ * (value is (1<<27)+27).
+ *
+ * @since 3.6
+ */
+ public static const int F18 = KEYCODE_BIT + 27;
+
+
+ /**
+ * Keyboard event constant representing the F19 key
+ * (value is (1<<28)+28).
+ *
+ * @since 3.6
+ */
+ public static const int F19 = KEYCODE_BIT + 28;
+
+ /**
+ * Keyboard event constant representing the F20 key
+ * (value is (1<<29)+29).
+ *
+ * @since 3.6
+ */
+ public static const int F20 = KEYCODE_BIT + 29;
+
+ /**
+ * Keyboard event constant representing the keypad location.
+ * (value is 1<<1).
+ *
+ * @since 3.6
+ */
+ public static const int KEYPAD = 1 << 1;
+
/**
* Keyboard event constant representing the numeric key
* pad multiply key (value is (1<<24)+42).
@@ -2485,6 +2987,40 @@ public class SWT {
*/
public static const int ICON_WORKING = 1 << 4;
+ /**
+ * The style constant for "search" icon. This style constant is
+ * used with Text
in combination with SWT.SEARCH
+ *
(value is 1<<9).
+ * Used By:
Text
Text
in combination with SWT.SEARCH
+ *
(value is 1<<8).
+ * Used By:
Text
MessageBox
style constant for an OK button;
* valid combinations are OK, OK|CANCEL
@@ -2509,12 +3045,10 @@ public class SWT {
/**
* The MessageBox
style constant for a CANCEL button;
* valid combinations are OK|CANCEL, YES|NO|CANCEL, RETRY|CANCEL
- * (value is 1<<8). This style constant is also used with
- * Text
in combination with SEARCH.
+ * (value is 1<<8).
*
* Used By:
MessageBox
Text
+ * This pseudo-color can be used to set a transparent background on SWT
+ * controls.
+ * Note that this is a HINT and may be overridden by the platform.
+ * For example:
+ *
Used By:
Composite
layout+ * Note: SWT currently doesn't read or process this property. The only + * effect of setting this property is to trigger a call to + * {@link Widget#reskin(int) Widget#reskin(SWT.ALL)}. + *
+ * + * @see org.eclipse.swt.widgets.Widget#getData(String) + * @see org.eclipse.swt.widgets.Widget#setData(String, Object) + * + * @since 3.6 + */ + public static const String SKIN_CLASS = "org.eclipse.swt.skin.class"; //$NON-NLS-1$ + + /** + * Key name for setting and getting the skin id of a widget. + *+ * Note: SWT currently doesn't read or process this property. The only + * effect of setting this property is to trigger a call to + * {@link Widget#reskin(int) Widget#reskin(SWT.ALL)}. + *
+ * + * @see org.eclipse.swt.widgets.Widget#getData(String) + * @see org.eclipse.swt.widgets.Widget#setData(String, Object) + * + * @since 3.6 + */ + public static const String SKIN_ID = "org.eclipse.swt.skin.id"; //$NON-NLS-1$ + + /** + * TheScrollable
constant to indicate that
+ * the receiver is using overlay scrollbars. (value is 1)
+ *
+ * @since 3.8
+ */
+ public static const int SCROLLBAR_OVERLAY = 1 << 1;
+
+/**
+ * Returns a boolean indicating whether this SWT implementation can
+ * be loaded. Examples of criteria that may be used to determine this
+ * include the OS and architecture of the JRE that is being used.
+ *
+ * @return true
if this SWT implementation can be loaded
+ * and false
otherwise
+ *
+ * @since 3.8
+ */
+static bool isLoadable() {
+ return Platform.isLoadable();
+}
/**
* Answers a concise, human readable description of the error code.
@@ -3620,6 +4334,7 @@ static String findErrorText (int code) {
case ERROR_NO_MORE_CALLBACKS: return "No more callbacks"; //$NON-NLS-1$
case ERROR_NULL_ARGUMENT: return "Argument cannot be null"; //$NON-NLS-1$
case ERROR_INVALID_ARGUMENT: return "Argument not valid"; //$NON-NLS-1$
+ case ERROR_INVALID_RETURN_VALUE: return "Return value not valid"; // $NON-NLS-1$
case ERROR_INVALID_RANGE: return "Index out of bounds"; //$NON-NLS-1$
case ERROR_CANNOT_BE_ZERO: return "Argument cannot be zero"; //$NON-NLS-1$
case ERROR_CANNOT_GET_ITEM: return "Cannot get item"; //$NON-NLS-1$
@@ -3649,7 +4364,9 @@ static String findErrorText (int code) {
case ERROR_INVALID_SUBCLASS: return "Subclassing not allowed"; //$NON-NLS-1$
case ERROR_GRAPHIC_DISPOSED: return "Graphic is disposed"; //$NON-NLS-1$
case ERROR_DEVICE_DISPOSED: return "Device is disposed"; //$NON-NLS-1$
+ case ERROR_FUNCTION_DISPOSED: return "BrowserFunction is disposed"; //$NON-NLS-1$
case ERROR_FAILED_EXEC: return "Failed to execute runnable"; //$NON-NLS-1$
+ case ERROR_FAILED_EVALUATE: return "Failed to evaluate javascript expression"; //$NON-NLS-1$
case ERROR_FAILED_LOAD_LIBRARY: return "Unable to load library"; //$NON-NLS-1$
case ERROR_CANNOT_INVERT_MATRIX: return "Cannot invert matrix"; //$NON-NLS-1$
case ERROR_NO_GRAPHICS_LIBRARY: return "Unable to load graphics library"; //$NON-NLS-1$
@@ -3674,9 +4391,13 @@ public static String getMessage(String key) {
return Compatibility.getMessage(key);
}
+public static String getMessage(String key, Object[] args) {
+ return Compatibility.getMessage(key, args);
+}
+
/**
* Returns the SWT platform name.
- * Examples: "win32", "motif", "gtk", "photon", "carbon"
+ * Examples: "win32", "gtk", "cocoa"
*
* @return the SWT platform name
*/
@@ -3807,12 +4528,15 @@ public static void error (int code, Exception throwable, String detail) {
case ERROR_WIDGET_DISPOSED:
case ERROR_GRAPHIC_DISPOSED:
case ERROR_DEVICE_DISPOSED:
+ case ERROR_FUNCTION_DISPOSED:
case ERROR_INVALID_IMAGE:
case ERROR_UNSUPPORTED_DEPTH:
case ERROR_UNSUPPORTED_FORMAT:
case ERROR_FAILED_EXEC:
+ case ERROR_FAILED_EVALUATE:
case ERROR_CANNOT_INVERT_MATRIX:
case ERROR_NO_GRAPHICS_LIBRARY:
+ case ERROR_INVALID_RETURN_VALUE:
case ERROR_IO: {
SWTException exception = new SWTException (code, message);
exception.throwable = throwable;
From 09af2b43701bfee50a1576f617261cfb1c298c59 Mon Sep 17 00:00:00 2001
From: summer-alice - * By defining constants like UP and DOWN in a single class, SWT - * can share common names and concepts at the same time minimizing - * the number of classes, names and constants for the application - * programmer. - *
- * Note that some of the constants provided by this class represent - * optional, appearance related aspects of widgets which are available - * either only on some window systems, or for a differing set of - * widgets on each window system. These constants are marked - * as HINTs. The set of widgets which support a particular - * HINT may change from release to release, although we typically - * will not withdraw support for a HINT once it is made available. - *
- * - * @see Sample code and further information - */ - -/* NOTE: - * Good javadoc coding style is to put the values of static const - * constants in the comments. This reinforces the fact that - * consumers are allowed to rely on the value (and they must - * since the values are compiled inline in their code). We - * can not change the values of these constants between - * releases. - */ -public class SWT { - - /* Widget Event Constants */ - - /** - * The null event type (value is 0). - * - * @since 3.0 - */ - public static const int None = 0; - - /** - * The key down event type (value is 1). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Control#addKeyListener - * @see org.eclipse.swt.widgets.Tracker#addKeyListener - * @see org.eclipse.swt.events.KeyListener#keyPressed - * @see org.eclipse.swt.events.KeyEvent - */ - public static const int KeyDown = 1; - - /** - * The key up event type (value is 2). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Control#addKeyListener - * @see org.eclipse.swt.widgets.Tracker#addKeyListener - * @see org.eclipse.swt.events.KeyListener#keyReleased - * @see org.eclipse.swt.events.KeyEvent - */ - public static const int KeyUp = 2; - - /** - * The mouse down event type (value is 3). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Control#addMouseListener - * @see org.eclipse.swt.events.MouseListener#mouseDown - * @see org.eclipse.swt.events.MouseEvent - */ - public static const int MouseDown = 3; - - /** - * The mouse up event type (value is 4). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Control#addMouseListener - * @see org.eclipse.swt.events.MouseListener#mouseUp - * @see org.eclipse.swt.events.MouseEvent - */ - public static const int MouseUp = 4; - - /** - * The mouse move event type (value is 5). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Control#addMouseMoveListener - * @see org.eclipse.swt.events.MouseMoveListener#mouseMove - * @see org.eclipse.swt.events.MouseEvent - */ - public static const int MouseMove = 5; - - /** - * The mouse enter event type (value is 6). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Control#addMouseTrackListener - * @see org.eclipse.swt.events.MouseTrackListener#mouseEnter - * @see org.eclipse.swt.events.MouseEvent - */ - public static const int MouseEnter = 6; - - /** - * The mouse exit event type (value is 7). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Control#addMouseTrackListener - * @see org.eclipse.swt.events.MouseTrackListener#mouseExit - * @see org.eclipse.swt.events.MouseEvent - */ - public static const int MouseExit = 7; - - /** - * The mouse double click event type (value is 8). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Control#addMouseListener - * @see org.eclipse.swt.events.MouseListener#mouseDoubleClick - * @see org.eclipse.swt.events.MouseEvent - */ - public static const int MouseDoubleClick = 8; - - /** - * The paint event type (value is 9). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Control#addPaintListener - * @see org.eclipse.swt.events.PaintListener#paintControl - * @see org.eclipse.swt.events.PaintEvent - */ - public static const int Paint = 9; - - /** - * The move event type (value is 10). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Control#addControlListener - * @see org.eclipse.swt.widgets.TableColumn#addControlListener - * @see org.eclipse.swt.widgets.Tracker#addControlListener - * @see org.eclipse.swt.widgets.TreeColumn#addControlListener - * @see org.eclipse.swt.events.ControlListener#controlMoved - * @see org.eclipse.swt.events.ControlEvent - */ - public static const int Move = 10; - - /** - * The resize event type (value is 11). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Control#addControlListener - * @see org.eclipse.swt.widgets.TableColumn#addControlListener - * @see org.eclipse.swt.widgets.Tracker#addControlListener - * @see org.eclipse.swt.widgets.TreeColumn#addControlListener - * @see org.eclipse.swt.events.ControlListener#controlResized - * @see org.eclipse.swt.events.ControlEvent - */ - public static const int Resize = 11; - - /** - * The dispose event type (value is 12). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Widget#addDisposeListener - * @see org.eclipse.swt.events.DisposeListener#widgetDisposed - * @see org.eclipse.swt.events.DisposeEvent - */ - public static const int Dispose = 12; - - /** - * The selection event type (value is 13). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Button#addSelectionListener - * @see org.eclipse.swt.widgets.Combo#addSelectionListener - * @see org.eclipse.swt.widgets.CoolItem#addSelectionListener - * @see org.eclipse.swt.widgets.Link#addSelectionListener - * @see org.eclipse.swt.widgets.List#addSelectionListener - * @see org.eclipse.swt.widgets.MenuItem#addSelectionListener - * @see org.eclipse.swt.widgets.Sash#addSelectionListener - * @see org.eclipse.swt.widgets.Scale#addSelectionListener - * @see org.eclipse.swt.widgets.ScrollBar#addSelectionListener - * @see org.eclipse.swt.widgets.Slider#addSelectionListener - * @see org.eclipse.swt.widgets.TabFolder#addSelectionListener - * @see org.eclipse.swt.widgets.Table#addSelectionListener - * @see org.eclipse.swt.widgets.TableColumn#addSelectionListener - * @see org.eclipse.swt.widgets.ToolItem#addSelectionListener - * @see org.eclipse.swt.widgets.TrayItem#addSelectionListener - * @see org.eclipse.swt.widgets.Tree#addSelectionListener - * @see org.eclipse.swt.widgets.TreeColumn#addSelectionListener - * @see org.eclipse.swt.events.SelectionListener#widgetSelected - * @see org.eclipse.swt.events.SelectionEvent - */ - public static const int Selection = 13; - - /** - * The default selection event type (value is 14). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Combo#addSelectionListener - * @see org.eclipse.swt.widgets.List#addSelectionListener - * @see org.eclipse.swt.widgets.Spinner#addSelectionListener - * @see org.eclipse.swt.widgets.Table#addSelectionListener - * @see org.eclipse.swt.widgets.Text#addSelectionListener - * @see org.eclipse.swt.widgets.TrayItem#addSelectionListener - * @see org.eclipse.swt.widgets.Tree#addSelectionListener - * @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected - * @see org.eclipse.swt.events.SelectionEvent - */ - public static const int DefaultSelection = 14; - - /** - * The focus in event type (value is 15). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Control#addFocusListener - * @see org.eclipse.swt.events.FocusListener#focusGained - * @see org.eclipse.swt.events.FocusEvent - */ - public static const int FocusIn = 15; - - /** - * The focus out event type (value is 16). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Control#addFocusListener - * @see org.eclipse.swt.events.FocusListener#focusLost - * @see org.eclipse.swt.events.FocusEvent - */ - public static const int FocusOut = 16; - - /** - * The expand event type (value is 17). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Tree#addTreeListener - * @see org.eclipse.swt.events.TreeListener#treeExpanded - * @see org.eclipse.swt.events.TreeEvent - */ - public static const int Expand = 17; - - /** - * The collapse event type (value is 18). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Tree#addTreeListener - * @see org.eclipse.swt.events.TreeListener#treeCollapsed - * @see org.eclipse.swt.events.TreeEvent - */ - public static const int Collapse = 18; - - /** - * The iconify event type (value is 19). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Shell#addShellListener - * @see org.eclipse.swt.events.ShellListener#shellIconified - * @see org.eclipse.swt.events.ShellEvent - */ - public static const int Iconify = 19; - - /** - * The de-iconify event type (value is 20). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Shell#addShellListener - * @see org.eclipse.swt.events.ShellListener#shellDeiconified - * @see org.eclipse.swt.events.ShellEvent - */ - public static const int Deiconify = 20; - - /** - * The close event type (value is 21). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Shell#addShellListener - * @see org.eclipse.swt.events.ShellListener#shellClosed - * @see org.eclipse.swt.events.ShellEvent - */ - public static const int Close = 21; - - /** - * The show event type (value is 22). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Menu#addMenuListener - * @see org.eclipse.swt.events.MenuListener#menuShown - * @see org.eclipse.swt.events.MenuEvent - */ - public static const int Show = 22; - - /** - * The hide event type (value is 23). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Menu#addMenuListener - * @see org.eclipse.swt.events.MenuListener#menuHidden - * @see org.eclipse.swt.events.MenuEvent - */ - public static const int Hide = 23; - - /** - * The modify event type (value is 24). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Combo#addModifyListener - * @see org.eclipse.swt.widgets.Spinner#addModifyListener - * @see org.eclipse.swt.widgets.Text#addModifyListener - * @see org.eclipse.swt.events.ModifyListener#modifyText - * @see org.eclipse.swt.events.ModifyEvent - */ - public static const int Modify = 24; - - /** - * The verify event type (value is 25). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.custom.CCombo#addVerifyListener - * @see org.eclipse.swt.widgets.Combo#addVerifyListener - * @see org.eclipse.swt.custom.StyledText#addVerifyListener - * @see org.eclipse.swt.widgets.Text#addVerifyListener - * @see org.eclipse.swt.events.VerifyListener#verifyText - * @see org.eclipse.swt.events.VerifyEvent - */ - public static const int Verify = 25; - - /** - * The activate event type (value is 26). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Shell#addShellListener - * @see org.eclipse.swt.events.ShellListener#shellActivated - * @see org.eclipse.swt.events.ShellEvent - */ - public static const int Activate = 26; - - /** - * The deactivate event type (value is 27). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Shell#addShellListener - * @see org.eclipse.swt.events.ShellListener#shellDeactivated - * @see org.eclipse.swt.events.ShellEvent - */ - public static const int Deactivate = 27; - - /** - * The help event type (value is 28). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Control#addHelpListener - * @see org.eclipse.swt.widgets.Menu#addHelpListener - * @see org.eclipse.swt.widgets.MenuItem#addHelpListener - * @see org.eclipse.swt.events.HelpListener#helpRequested - * @see org.eclipse.swt.events.HelpEvent - */ - public static const int Help = 28; - - /** - * The drag detect event type (value is 29). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.dnd.DragSource - */ - public static const int DragDetect = 29; - - /** - * The arm event type (value is 30). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.MenuItem#addArmListener - * @see org.eclipse.swt.events.ArmListener#widgetArmed - * @see org.eclipse.swt.events.ArmEvent - */ - public static const int Arm = 30; - - /** - * The traverse event type (value is 31). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Control#addTraverseListener - * @see org.eclipse.swt.events.TraverseListener#keyTraversed - * @see org.eclipse.swt.events.TraverseEvent - */ - public static const int Traverse = 31; - - /** - * The mouse hover event type (value is 32). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Control#addMouseTrackListener - * @see org.eclipse.swt.events.MouseTrackListener#mouseHover - * @see org.eclipse.swt.events.MouseEvent - */ - public static const int MouseHover = 32; - - /** - * The hardware key down event type (value is 33). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - */ - public static const int HardKeyDown = 33; - - /** - * The hardware key up event type (value is 34). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - */ - public static const int HardKeyUp = 34; - - /** - * The menu detect event type (value is 35). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @since 3.0 - */ - public static const int MenuDetect = 35; - - /** - * The set data event type (value is 36). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @see org.eclipse.swt.widgets.Table - * @see org.eclipse.swt.widgets.Tree - * - * @since 3.0 - */ - public static const int SetData = 36; - - /** - * The mouse wheel event type (value is 37). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @since 3.1 - */ - public static const int MouseWheel = 37; - - /** - * 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. - *
- * - * @see org.eclipse.swt.widgets.Display#addListener - * @see org.eclipse.swt.widgets.Event - * - * @since 3.2 - */ - public static const int Settings = 39; - - /** - * The erase item event type (value is 40). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @since 3.2 - */ - public static const int EraseItem = 40; - - /** - * The measure item event type (value is 41). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @since 3.2 - */ - public static const int MeasureItem = 41; - - /** - * The paint item event type (value is 42). - * - * @see org.eclipse.swt.widgets.Widget#addListener - * @see org.eclipse.swt.widgets.Display#addFilter - * @see org.eclipse.swt.widgets.Event - * - * @since 3.2 - */ - public static const int PaintItem = 42; - - /** - * The IME composition event type (value is 43). - *- * The IME composition event is sent to allow - * custom text editors to implement in-line - * editing of international text. - *
- * - * The detail field indicates the action to be taken: - *Used By:
Menu
Used By:
Menu
ToolItem
CoolItem
Combo
Used By:
Menu
Used By:
Label
MenuItem
ToolItem
Used By:
Button
Used By:
Button
Used By:
Button
MenuItem
ToolItem
Used By:
Button
MenuItem
ToolItem
Used By:
Button
MenuItem
ToolItem
Table
Tree
Used By:
MenuItem
Used By:
Text
List
FileDialog
Used By:
Text
List
Table
Tree
Used By:
Combo
Text
Used By:
Label
Text
ToolBar
Spinner
Used By:
Text
Used By:
Combo
Used By:
Text
Used By:
Label
Group
Used By:
Label
Group
ToolBar
Used By:
Group
Used By:
Group
Used By:
Label
Group
Used By:
ProgressBar
- * A tool window is a window intended to be used as a floating toolbar.
- * It typically has a title bar that is shorter than a normal title bar,
- * and the window title is typically drawn using a smaller font.
- *
Note that this is a HINT.
- *
Used By:
Decorations
and subclassesUsed By:
Decorations
and subclassesUsed By:
Decorations
and subclassesTracker
Used By:
Decorations
and subclassesUsed By:
Decorations
and subclassesUsed By:
Decorations
and subclassesUsed By:
Decorations
and subclassesUsed By:
Decorations
and subclassesUsed By:
Scrollable
and subclassesUsed By:
Scrollable
and subclasses- * When neither H_SCROLL or V_SCROLL are specified, controls - * are free to create the default scroll bars for the control. - * Using NO_SCROLL overrides the default and forces the control - * to have no scroll bars. - * - * Used By:
Tree
Table
Used By:
Control
and subclassesUsed By:
Control
and subclassesUsed By:
Control
and subclassesUsed By:
Shell
and subclassesUsed By:
Shell
Used By:
Shell
Used By:
Dialog
Shell
Used By:
Dialog
Shell
Used By:
Dialog
Shell
Used By:
Dialog
Shell
Used By:
Table
Used By:
Table
Tree
StyledText
TextLayout
Used By:
Button
ToolBar
Used By:
ProgressBar
Sash
- * 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
- * Normally, when the user clicks on a control, focus is assigned to that
- * control, providing the control has no children. Some controls, such as
- * tool bars and sashes, don't normally take focus when the mouse is clicked
- * or accept focus when assigned from within the program. This style allows
- * Composites to implement "no focus" mouse behavior.
- *
- *
Note that this is a HINT.
- *
Used By:
Composite
- * 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
Used By:
Composite
Used By:
Composite
- * When orientation is not explicitly specified, orientation is
- * inherited. This means that children will be assigned the
- * orientation of their parent. To override this behavior and
- * force an orientation for a child, explicitly set the orientation
- * of the child when that child is created.
- *
Note that this is a HINT.
- *
Used By:
Control
Menu
GC
- * When orientation is not explicitly specified, orientation is
- * inherited. This means that children will be assigned the
- * orientation of their parent. To override this behavior and
- * force an orientation for a child, explicitly set the orientation
- * of the child when that child is created.
- *
Note that this is a HINT.
- *
Used By:
Control
Menu
GC
Used By:
Control
Menu
Used By:
Composite
Used By:
Table
Tree
Used By:
Control
- * By default, before a widget paints, the client area is filled with the current background. - * When this style is specified, the background is not filled and widgets that are obscured - * will draw through. - *
Used By:
Composite
Used By:
Button
with ARROW
styleTracker
Table
Tree
Used By:
TextStyle
Used By:
TextStyle
Used By:
TextStyle
Used By:
TextStyle
Used By:
TextStyle
Used By:
TextStyle
Used By:
TextStyle
Used By:
FormAttachment
in a FormLayout
Used By:
Button
with ARROW
styleTracker
Table
Tree
Used By:
FormAttachment
in a FormLayout
Used By:
Button
Label
TableColumn
Tracker
FormAttachment
in a FormLayout
Used By:
Button
Label
TableColumn
Tracker
FormAttachment
in a FormLayout
Used By:
Button
Label
TableColumn
FormAttachment
in a FormLayout
Used By:
Label
ProgressBar
Sash
Scale
ScrollBar
Slider
ToolBar
FillLayout
typeRowLayout
typeUsed By:
Label
ProgressBar
Sash
Scale
ScrollBar
Slider
ToolBar
CoolBar
FillLayout
typeRowLayout
typeUsed By:
DateTime
Used By:
DateTime
Used By:
DateTime
- * A short date displays the month and year.
- * A short time displays hours and minutes.
- *
Note that this is a HINT.
- *
Used By:
DateTime
- * 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
- * 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
- *
Used By:
Browser
Used By:
ToolTip
Used By:
GridLayout
typeUsed By:
GridLayout
typechar
'\b').
- */
- public static const char BS = '\b';
-
- /**
- * ASCII character convenience constant for the carriage return character
- * (value is the char
'\r').
- */
- public static const char CR = '\r';
-
- /**
- * ASCII character convenience constant for the delete character
- * (value is the char
with value 127).
- */
- public static const char DEL = 0x7F;
-
- /**
- * ASCII character convenience constant for the escape character
- * (value is the char
with value 27).
- */
- public static const char ESC = 0x1B;
-
- /**
- * ASCII character convenience constant for the line feed character
- * (value is the char
'\n').
- */
- public static const char LF = '\n';
-
- /**
- * ASCII character convenience constant for the tab character
- * (value is the char
'\t').
- *
- * @since 2.1
- */
- public static const char TAB = '\t';
-
- /**
- * 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).
- */
- public static const int ALT = 1 << 16;
-
- /**
- * 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).
- */
- public static const int SHIFT = 1 << 17;
-
- /**
- * 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).
- */
- public static const int CTRL = 1 << 18;
-
- /**
- * 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).
- */
- public static const int CONTROL = CTRL;
-
- /**
- * Keyboard and/or mouse event mask indicating that the COMMAND key
- * was pushed on the keyboard when the event was generated
- * (value is 1<<22).
- *
- * @since 2.1
- */
- public static const int COMMAND = 1 << 22;
-
- /**
- * 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) !is 0
.
- *
- * @since 2.1
- */
- public static const int MODIFIER_MASK = ALT | SHIFT | CTRL | COMMAND;
-
- /**
- * Keyboard and/or mouse event mask indicating that mouse button one
- * was pushed when the event was generated. (value is 1<<19).
- */
- public static const int BUTTON1 = 1 << 19;
-
- /**
- * Keyboard and/or mouse event mask indicating that mouse button two
- * was pushed when the event was generated. (value is 1<<20).
- */
- public static const int BUTTON2 = 1 << 20;
-
- /**
- * Keyboard and/or mouse event mask indicating that mouse button three
- * was pushed when the event was generated. (value is 1<<21).
- */
- public static const int BUTTON3 = 1 << 21;
-
- /**
- * Keyboard and/or mouse event mask indicating that mouse button four
- * was pushed when the event was generated. (value is 1<<23).
- *
- * @since 3.1
- */
- public static const int BUTTON4 = 1 << 23;
-
- /**
- * Keyboard and/or mouse event mask indicating that mouse button five
- * was pushed when the event was generated. (value is 1<<25).
- *
- * @since 3.1
- */
- public static const int BUTTON5 = 1 << 25;
-
- /**
- * 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) !is 0
.
- *
- * @since 2.1
- */
- public static const int BUTTON_MASK = BUTTON1 | BUTTON2 | BUTTON3 | BUTTON4 | BUTTON5;
-
- /**
- * Keyboard and/or mouse event mask indicating that the MOD1 key
- * was pushed on the keyboard when the event was generated.
- *
- * This is the primary keyboard modifier for the platform.
- *
- * @since 2.1
- */
- public static const int MOD1 = CONTROL;
-
- /**
- * Keyboard and/or mouse event mask indicating that the MOD2 key
- * was pushed on the keyboard when the event was generated.
- *
- * This is the secondary keyboard modifier for the platform.
- *
- * @since 2.1
- */
- public static const int MOD2 = SHIFT;
-
- /**
- * Keyboard and/or mouse event mask indicating that the MOD3 key
- * was pushed on the keyboard when the event was generated.
- *
- * @since 2.1
- */
- public static const int MOD3 = ALT;
-
- /**
- * Keyboard and/or mouse event mask indicating that the MOD4 key
- * was pushed on the keyboard when the event was generated.
- *
- * @since 2.1
- */
- public static const int MOD4 = 0;
-
- /**
- * Constants to indicate line scrolling (value is 1).
- * Used By:
Control
Used By:
Control
((SWT.MOD1 | SWT.MOD2 | 'T') & SWT.KEYCODE_BIT) !is 0
.
- *
- * The following expression is true:
- *
- * ((SWT.MOD3 | SWT.F2) & SWT.KEYCODE_BIT) !is 0
.
- *
- * (value is (1<<24))
- *
- * @since 2.1
- */
- public static const int KEYCODE_BIT = (1 << 24);
-
- /**
- * Accelerator constant used to extract the key stroke portion of
- * an accelerator.
- *
- * The key stroke may be a key code or a unicode
- * value. If the key stroke is a key code KEYCODE_BIT
- * will be set.
- *
- * @since 2.1
- */
- public static const int KEY_MASK = KEYCODE_BIT + 0xFFFF;
-
- /**
- * Keyboard event constant representing the UP ARROW key
- * (value is (1<<24)+1).
- */
- public static const int ARROW_UP = KEYCODE_BIT + 1;
-
- /**
- * Keyboard event constant representing the DOWN ARROW key
- * (value is (1<<24)+2).
- */
- public static const int ARROW_DOWN = KEYCODE_BIT + 2;
-
- /**
- * Keyboard event constant representing the LEFT ARROW key
- * (value is (1<<24)+3).
- */
- public static const int ARROW_LEFT = KEYCODE_BIT + 3;
-
- /**
- * Keyboard event constant representing the RIGHT ARROW key
- * (value is (1<<24)+4).
- */
- public static const int ARROW_RIGHT = KEYCODE_BIT + 4;
-
- /**
- * Keyboard event constant representing the PAGE UP key
- * (value is (1<<24)+5).
- */
- public static const int PAGE_UP = KEYCODE_BIT + 5;
-
- /**
- * Keyboard event constant representing the PAGE DOWN key
- * (value is (1<<24)+6).
- */
- public static const int PAGE_DOWN = KEYCODE_BIT + 6;
-
- /**
- * Keyboard event constant representing the HOME key
- * (value is (1<<24)+7).
- */
- public static const int HOME = KEYCODE_BIT + 7;
-
- /**
- * Keyboard event constant representing the END key
- * (value is (1<<24)+8).
- */
- public static const int END = KEYCODE_BIT + 8;
-
- /**
- * Keyboard event constant representing the INSERT key
- * (value is (1<<24)+9).
- */
- public static const int INSERT = KEYCODE_BIT + 9;
-
- /**
- * Keyboard event constant representing the F1 key
- * (value is (1<<24)+10).
- */
- public static const int F1 = KEYCODE_BIT + 10;
-
- /**
- * Keyboard event constant representing the F2 key
- * (value is (1<<24)+11).
- */
- public static const int F2 = KEYCODE_BIT + 11;
-
- /**
- * Keyboard event constant representing the F3 key
- * (value is (1<<24)+12).
- */
- public static const int F3 = KEYCODE_BIT + 12;
-
- /**
- * Keyboard event constant representing the F4 key
- * (value is (1<<24)+13).
- */
- public static const int F4 = KEYCODE_BIT + 13;
-
- /**
- * Keyboard event constant representing the F5 key
- * (value is (1<<24)+14).
- */
- public static const int F5 = KEYCODE_BIT + 14;
-
- /**
- * Keyboard event constant representing the F6 key
- * (value is (1<<24)+15).
- */
- public static const int F6 = KEYCODE_BIT + 15;
-
- /**
- * Keyboard event constant representing the F7 key
- * (value is (1<<24)+16).
- */
- public static const int F7 = KEYCODE_BIT + 16;
-
- /**
- * Keyboard event constant representing the F8 key
- * (value is (1<<24)+17).
- */
- public static const int F8 = KEYCODE_BIT + 17;
-
- /**
- * Keyboard event constant representing the F9 key
- * (value is (1<<24)+18).
- */
- public static const int F9 = KEYCODE_BIT + 18;
-
- /**
- * Keyboard event constant representing the F10 key
- * (value is (1<<24)+19).
- */
- public static const int F10 = KEYCODE_BIT + 19;
-
- /**
- * Keyboard event constant representing the F11 key
- * (value is (1<<24)+20).
- */
- public static const int F11 = KEYCODE_BIT + 20;
-
- /**
- * Keyboard event constant representing the F12 key
- * (value is (1<<24)+21).
- */
- public static const int F12 = KEYCODE_BIT + 21;
-
- /**
- * Keyboard event constant representing the F13 key
- * (value is (1<<24)+22).
- *
- * @since 3.0
- */
- public static const int F13 = KEYCODE_BIT + 22;
-
- /**
- * Keyboard event constant representing the F14 key
- * (value is (1<<24)+23).
- *
- * @since 3.0
- */
- public static const int F14 = KEYCODE_BIT + 23;
-
- /**
- * Keyboard event constant representing the F15 key
- * (value is (1<<24)+24).
- *
- * @since 3.0
- */
- public static const int F15 = KEYCODE_BIT + 24;
-
- /**
- * Keyboard event constant representing the numeric key
- * pad multiply key (value is (1<<24)+42).
- *
- * @since 3.0
- */
- public static const int KEYPAD_MULTIPLY = KEYCODE_BIT + 42;
-
- /**
- * Keyboard event constant representing the numeric key
- * pad add key (value is (1<<24)+43).
- *
- * @since 3.0
- */
- public static const int KEYPAD_ADD = KEYCODE_BIT + 43;
-
- /**
- * Keyboard event constant representing the numeric key
- * pad subtract key (value is (1<<24)+45).
- *
- * @since 3.0
- */
- public static const int KEYPAD_SUBTRACT = KEYCODE_BIT + 45;
-
- /**
- * Keyboard event constant representing the numeric key
- * pad decimal key (value is (1<<24)+46).
- *
- * @since 3.0
- */
- public static const int KEYPAD_DECIMAL = KEYCODE_BIT + 46;
-
- /**
- * Keyboard event constant representing the numeric key
- * pad divide key (value is (1<<24)+47).
- *
- * @since 3.0
- */
- public static const int KEYPAD_DIVIDE = KEYCODE_BIT + 47;
-
- /**
- * Keyboard event constant representing the numeric key
- * pad zero key (value is (1<<24)+48).
- *
- * @since 3.0
- */
- public static const int KEYPAD_0 = KEYCODE_BIT + 48;
-
- /**
- * Keyboard event constant representing the numeric key
- * pad one key (value is (1<<24)+49).
- *
- * @since 3.0
- */
- public static const int KEYPAD_1 = KEYCODE_BIT + 49;
-
- /**
- * Keyboard event constant representing the numeric key
- * pad two key (value is (1<<24)+50).
- *
- * @since 3.0
- */
- public static const int KEYPAD_2 = KEYCODE_BIT + 50;
-
- /**
- * Keyboard event constant representing the numeric key
- * pad three key (value is (1<<24)+51).
- *
- * @since 3.0
- */
- public static const int KEYPAD_3 = KEYCODE_BIT + 51;
-
- /**
- * Keyboard event constant representing the numeric key
- * pad four key (value is (1<<24)+52).
- *
- * @since 3.0
- */
- public static const int KEYPAD_4 = KEYCODE_BIT + 52;
-
- /**
- * Keyboard event constant representing the numeric key
- * pad five key (value is (1<<24)+53).
- *
- * @since 3.0
- */
- public static const int KEYPAD_5 = KEYCODE_BIT + 53;
-
- /**
- * Keyboard event constant representing the numeric key
- * pad six key (value is (1<<24)+54).
- *
- * @since 3.0
- */
- public static const int KEYPAD_6 = KEYCODE_BIT + 54;
-
- /**
- * Keyboard event constant representing the numeric key
- * pad seven key (value is (1<<24)+55).
- *
- * @since 3.0
- */
- public static const int KEYPAD_7 = KEYCODE_BIT + 55;
-
- /**
- * Keyboard event constant representing the numeric key
- * pad eight key (value is (1<<24)+56).
- *
- * @since 3.0
- */
- public static const int KEYPAD_8 = KEYCODE_BIT + 56;
-
- /**
- * Keyboard event constant representing the numeric key
- * pad nine key (value is (1<<24)+57).
- *
- * @since 3.0
- */
- public static const int KEYPAD_9 = KEYCODE_BIT + 57;
-
- /**
- * Keyboard event constant representing the numeric key
- * pad equal key (value is (1<<24)+61).
- *
- * @since 3.0
- */
- public static const int KEYPAD_EQUAL = KEYCODE_BIT + 61;
-
- /**
- * Keyboard event constant representing the numeric key
- * pad enter key (value is (1<<24)+80).
- *
- * @since 3.0
- */
- public static const int KEYPAD_CR = KEYCODE_BIT + 80;
-
- /**
- * 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 3.0
- *
- * @see SWT#Help
- */
- public static const int HELP = KEYCODE_BIT + 81;
-
- /**
- * Keyboard event constant representing the caps
- * lock key (value is (1<<24)+82).
- *
- * @since 3.0
- */
- public static const int CAPS_LOCK = KEYCODE_BIT + 82;
-
- /**
- * Keyboard event constant representing the num
- * lock key (value is (1<<24)+83).
- *
- * @since 3.0
- */
- public static const int NUM_LOCK = KEYCODE_BIT + 83;
-
- /**
- * Keyboard event constant representing the scroll
- * lock key (value is (1<<24)+84).
- *
- * @since 3.0
- */
- public static const int SCROLL_LOCK = KEYCODE_BIT + 84;
-
- /**
- * Keyboard event constant representing the pause
- * key (value is (1<<24)+85).
- *
- * @since 3.0
- */
- public static const int PAUSE = KEYCODE_BIT + 85;
-
- /**
- * Keyboard event constant representing the break
- * key (value is (1<<24)+86).
- *
- * @since 3.0
- */
- public static const int BREAK = KEYCODE_BIT + 86;
-
- /**
- * Keyboard event constant representing the print screen
- * key (value is (1<<24)+87).
- *
- * @since 3.0
- */
- public static const int PRINT_SCREEN = KEYCODE_BIT + 87;
-
- /**
- * The MessageBox
style constant for error icon
- * behavior (value is 1).
- */
- public static const int ICON_ERROR = 1;
-
- /**
- * The MessageBox
style constant for information icon
- * behavior (value is 1<<1).
- */
- public static const int ICON_INFORMATION = 1 << 1;
-
- /**
- * The MessageBox
style constant for question icon
- * behavior (value is 1<<2).
- */
- public static const int ICON_QUESTION = 1 << 2;
-
- /**
- * The MessageBox
style constant for warning icon
- * behavior (value is 1<<3).
- */
- public static const int ICON_WARNING = 1 << 3;
-
- /**
- * The MessageBox
style constant for "working" icon
- * behavior (value is 1<<4).
- */
- public static const int ICON_WORKING = 1 << 4;
-
- /**
- * The MessageBox
style constant for an OK button;
- * valid combinations are OK, OK|CANCEL
- * (value is 1<<5).
- */
- public static const int OK = 1 << 5;
-
- /**
- * The MessageBox
style constant for YES button;
- * valid combinations are YES|NO, YES|NO|CANCEL
- * (value is 1<<6).
- */
- public static const int YES = 1 << 6;
-
- /**
- * The MessageBox
style constant for NO button;
- * valid combinations are YES|NO, YES|NO|CANCEL
- * (value is 1<<7).
- */
- public static const int NO = 1 << 7;
-
- /**
- * The MessageBox
style constant for a CANCEL button;
- * valid combinations are OK|CANCEL, YES|NO|CANCEL, RETRY|CANCEL
- * (value is 1<<8). This style constant is also used with
- * Text
in combination with SEARCH.
- *
- * Used By:
MessageBox
Text
MessageBox
style constant for an ABORT button;
- * the only valid combination is ABORT|RETRY|IGNORE
- * (value is 1<<9).
- */
- public static const int ABORT = 1 << 9;
-
- /**
- * The MessageBox
style constant for a RETRY button;
- * valid combinations are ABORT|RETRY|IGNORE, RETRY|CANCEL
- * (value is 1<<10).
- */
- public static const int RETRY = 1 << 10;
-
- /**
- * The MessageBox
style constant for an IGNORE button;
- * the only valid combination is ABORT|RETRY|IGNORE
- * (value is 1<<11).
- */
- public static const int IGNORE = 1 << 11;
-
- /**
- * The FileDialog
style constant for open file dialog behavior
- * (value is 1<<12).
- */
- public static const int OPEN = 1 << 12;
-
- /**
- * The FileDialog
style constant for save file dialog behavior
- * (value is 1<<13).
- */
- public static const int SAVE = 1 << 13;
-
- /**
- * The Composite
constant to indicate that
- * an attribute (such as background) is not inherited
- * by the children (value is 0).
- *
- * @since 3.2
- */
- public static const int INHERIT_NONE = 0;
-
- /**
- * The Composite
constant to indicate that
- * an attribute (such as background) is inherited by
- * children who choose this value as their "default"
- * (value is 1). For example, a label child will
- * typically choose to inherit the background color
- * of a composite while a list or table will not.
- *
- * @since 3.2
- */
- public static const int INHERIT_DEFAULT = 1;
-
- /**
- * The Composite
constant to indicate that
- * an attribute (such as background) is inherited by
- * all children.
- *
- * @since 3.2
- */
- public static const int INHERIT_FORCE = 2;
-
- /**
- * Default color white (value is 1).
- */
- public static const int COLOR_WHITE = 1;
-
- /**
- * Default color black (value is 2).
- */
- public static const int COLOR_BLACK = 2;
-
- /**
- * Default color red (value is 3).
- */
- public static const int COLOR_RED = 3;
-
- /**
- * Default color dark red (value is 4).
- */
- public static const int COLOR_DARK_RED = 4;
-
- /**
- * Default color green (value is 5).
- */
- public static const int COLOR_GREEN = 5;
-
- /**
- * Default color dark green (value is 6).
- */
- public static const int COLOR_DARK_GREEN = 6;
-
- /**
- * Default color yellow (value is 7).
- */
- public static const int COLOR_YELLOW = 7;
-
- /**
- * Default color dark yellow (value is 8).
- */
- public static const int COLOR_DARK_YELLOW = 8;
-
- /**
- * Default color blue (value is 9).
- */
- public static const int COLOR_BLUE = 9;
-
- /**
- * Default color dark blue (value is 10).
- */
- public static const int COLOR_DARK_BLUE = 10;
-
- /**
- * Default color magenta (value is 11).
- */
- public static const int COLOR_MAGENTA = 11;
-
- /**
- * Default color dark magenta (value is 12).
- */
- public static const int COLOR_DARK_MAGENTA = 12;
-
- /**
- * Default color cyan (value is 13).
- */
- public static const int COLOR_CYAN = 13;
-
- /**
- * Default color dark cyan (value is 14).
- */
- public static const int COLOR_DARK_CYAN = 14;
-
- /**
- * Default color gray (value is 15).
- */
- public static const int COLOR_GRAY = 15;
-
- /**
- * Default color dark gray (value is 16).
- */
- public static const int COLOR_DARK_GRAY = 16;
-
- /*
- * System Colors
- *
- * Dealing with system colors is an area where there are
- * many platform differences. On some platforms, system
- * colors can change dynamically while the program is
- * running. On other platforms, system colors can be
- * changed for all instances of a particular widget.
- * Therefore, the only truly portable method to obtain
- * a widget color query is to query the color from an
- * instance of the widget.
- *
- * It is expected that the list of supported colors
- * will grow over time.
- */
-
- /**
- * System color used to paint dark shadow areas (value is 17).
- */
- public static const int COLOR_WIDGET_DARK_SHADOW = 17;
-
- /**
- * System color used to paint normal shadow areas (value is 18).
- */
- public static const int COLOR_WIDGET_NORMAL_SHADOW = 18;
-
- /**
- * System color used to paint light shadow areas (value is 19).
- */
- public static const int COLOR_WIDGET_LIGHT_SHADOW = 19;
-
- /**
- * System color used to paint highlight shadow areas (value is 20).
- */
- public static const int COLOR_WIDGET_HIGHLIGHT_SHADOW = 20;
-
- /**
- * System color used to paint foreground areas (value is 21).
- */
- public static const int COLOR_WIDGET_FOREGROUND = 21;
-
- /**
- * System color used to paint background areas (value is 22).
- */
- public static const int COLOR_WIDGET_BACKGROUND = 22;
-
- /**
- * System color used to paint border areas (value is 23).
- */
- public static const int COLOR_WIDGET_BORDER = 23;
-
- /**
- * System color used to paint list foreground areas (value is 24).
- */
- public static const int COLOR_LIST_FOREGROUND = 24;
-
- /**
- * System color used to paint list background areas (value is 25).
- */
- public static const int COLOR_LIST_BACKGROUND = 25;
-
- /**
- * System color used to paint list selection background areas (value is 26).
- */
- public static const int COLOR_LIST_SELECTION = 26;
-
- /**
- * System color used to paint list selected text (value is 27).
- */
- public static const int COLOR_LIST_SELECTION_TEXT = 27;
-
- /**
- * System color used to paint tooltip text (value is 28).
- */
- public static const int COLOR_INFO_FOREGROUND = 28;
-
- /**
- * System color used to paint tooltip background areas (value is 29).
- */
- public static const int COLOR_INFO_BACKGROUND = 29;
-
- /**
- * System color used to paint title text (value is 30).
- */
- public static const int COLOR_TITLE_FOREGROUND = 30;
-
- /**
- * System color used to paint title background areas (value is 31).
- */
- public static const int COLOR_TITLE_BACKGROUND = 31;
-
- /**
- * System color used to paint title background gradient (value is 32).
- */
- public static const int COLOR_TITLE_BACKGROUND_GRADIENT = 32;
-
- /**
- * System color used to paint inactive title text (value is 33).
- */
- public static const int COLOR_TITLE_INACTIVE_FOREGROUND = 33;
-
- /**
- * System color used to paint inactive title background areas (value is 34).
- */
- public static const int COLOR_TITLE_INACTIVE_BACKGROUND = 34;
-
- /**
- * System color used to paint inactive title background gradient (value is 35).
- */
- public static const int COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT = 35;
-
- /**
- * Draw constant indicating whether the drawing operation
- * should fill the background (value is 1<<0).
- */
- public static const int DRAW_TRANSPARENT = 1 << 0;
-
- /**
- * Draw constant indicating whether the string drawing operation
- * should handle line-delimiters (value is 1<<1).
- */
- public static const int DRAW_DELIMITER = 1 << 1;
-
- /**
- * Draw constant indicating whether the string drawing operation
- * should expand TAB characters (value is 1<<2).
- */
- public static const int DRAW_TAB = 1 << 2;
-
- /**
- * Draw constant indicating whether the string drawing operation
- * should handle mnemonics (value is 1<<3).
- */
- public static const int DRAW_MNEMONIC = 1 << 3;
-
-
- /**
- * Selection constant indicating that a line delimiter should be
- * drawn (value is 1<<17).
- *
- * Used By:
TextLayout
Used By:
TextLayout
checkSubclass()
method
- * (value is 43).
- *
- * For additional information see the comment in
- * Widget.checkSubclass()
.
- *
- * @see org.eclipse.swt.widgets.Widget#checkSubclass
- */
- public static const int ERROR_INVALID_SUBCLASS = 43;
-
- /**
- * 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).
- */
- public static const int ERROR_GRAPHIC_DISPOSED = 44;
-
- /**
- * 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).
- */
- public static const int ERROR_DEVICE_DISPOSED = 45;
-
- /**
- * SWT error constant indicating that an exception happened
- * when executing a runnable
- * (value is 46).
- */
- public static const int ERROR_FAILED_EXEC = 46;
-
- /**
- * SWT error constant indicating that an unsatisfied link
- * error occurred while attempting to load a library
- * (value is 47).
- *
- * @since 3.1
- */
- public static const int ERROR_FAILED_LOAD_LIBRARY = 47;
-
- /**
- * SWT error constant indicating that a font is not valid
- * (value is 48).
- *
- * @since 3.1
- */
- public static const int ERROR_INVALID_FONT = 48;
-
- /**
- * Constant indicating that an image or operation is of type bitmap (value is 0).
- */
- public static const int BITMAP = 0;
-
- /**
- * Constant indicating that an image or operation is of type icon (value is 1).
- */
- public static const int ICON = 1;
-
- /**
- * The Image
constructor argument indicating that
- * the new image should be a copy of the image provided as
- * an argument (value is 0).
- */
- public static const int IMAGE_COPY = 0;
-
- /**
- * The Image
constructor argument indicating that
- * the new image should have the appearance of a "disabled"
- * (using the platform's rules for how this should look)
- * copy of the image provided as an argument (value is 1).
- */
- public static const int IMAGE_DISABLE = 1;
-
- /**
- * The Image
constructor argument indicating that
- * the new image should have the appearance of a "gray scaled"
- * copy of the image provided as an argument (value is 2).
- */
- public static const int IMAGE_GRAY = 2;
-
- /**
- * Constant to indicate an error state (value is 1).
- * Used By:
ProgressBar
Used By:
ProgressBar
ProgressBar
- * to indicate a normal state.
- * Used By:
ProgressBar
throwable
argument should be either null, or the
- * throwable which caused SWT to throw an exception.
- * - * In SWT, errors are reported by throwing one of three exceptions: - *
throwable
argument should be either null, or the
- * throwable which caused SWT to throw an exception.
- * - * In SWT, errors are reported by throwing one of three exceptions: - *