Serialized Form
-
Package org.eclipse.swt
-
Class org.eclipse.swt.SWTError extends java.lang.Error implements Serializable
- serialVersionUID:
- 3833467327105808433L
-
Serialized Fields
-
code
int code
The SWT error code, one of SWT.ERROR_*. -
throwable
java.lang.Throwable throwable
The underlying throwable that caused the problem, or null if this information is not available.
-
-
Class org.eclipse.swt.SWTException extends java.lang.RuntimeException implements Serializable
- serialVersionUID:
- 3257282552304842547L
-
Serialized Fields
-
code
int code
The SWT error code, one of SWT.ERROR_*. -
throwable
java.lang.Throwable throwable
The underlying throwable that caused the problem, or null if this information is not available.
-
-
-
Package org.eclipse.swt.accessibility
-
Class org.eclipse.swt.accessibility.AccessibleActionEvent extends java.util.EventObject implements Serializable
- serialVersionUID:
- 2849066792640153087L
-
Serialized Fields
-
count
int count
-
index
int index
-
localized
boolean localized
-
result
java.lang.String result
The value of this field must be set in the accessible action listener method before returning. What to set it to depends on the listener method called.
-
-
Class org.eclipse.swt.accessibility.AccessibleAttributeEvent extends java.util.EventObject implements Serializable
- serialVersionUID:
- -2894665777259297851L
-
Serialized Fields
-
alignment
int alignment
[out] the alignment, which is one of SWT#LEFT, SWT#RIGHT or SWT#CENTER -
attributes
java.lang.String[] attributes
[out] an array of alternating key and value Strings which represent additional (i.e. non predefined) attributes -
bottomMargin
int bottomMargin
[out] the bottom margin in pixels -
groupCount
int groupCount
[out] the 1-based number of similar children in this accessible's group, including this accessible (0 means "not applicable") -
groupIndex
int groupIndex
[out] the 1-based index of this accessible in its group (0 means "not applicable") -
groupLevel
int groupLevel
[out] the 1-based level of this accessible in its group (0 means "not applicable") -
indent
int indent
[out] the indent in pixels -
justify
boolean justify
[out] whether or not to justify the text -
leftMargin
int leftMargin
[out] the left margin in pixels -
rightMargin
int rightMargin
[out] the right margin in pixels -
tabStops
int[] tabStops
[out] an array of pixel locations representing tab stops -
topMargin
int topMargin
[out] the top margin in pixels
-
-
Class org.eclipse.swt.accessibility.AccessibleControlEvent extends java.util.EventObject implements Serializable
- serialVersionUID:
- 3257281444169529141L
-
Serialized Fields
-
accessible
Accessible accessible
-
childID
int childID
-
children
java.lang.Object[] children
-
detail
int detail
-
height
int height
-
result
java.lang.String result
-
width
int width
-
x
int x
-
y
int y
-
-
Class org.eclipse.swt.accessibility.AccessibleEditableTextEvent extends java.util.EventObject implements Serializable
- serialVersionUID:
- -5045447704486894646L
-
Serialized Fields
-
end
int end
[in] 0-based ending offset of the character range to perform the operation on- See Also:
AccessibleEditableTextListener.copyText(org.eclipse.swt.accessibility.AccessibleEditableTextEvent)
,AccessibleEditableTextListener.cutText(org.eclipse.swt.accessibility.AccessibleEditableTextEvent)
,AccessibleEditableTextListener.replaceText(org.eclipse.swt.accessibility.AccessibleEditableTextEvent)
-
result
java.lang.String result
[out] Set this field toACC.OK
if the operation was completed successfully, andnull
otherwise.- See Also:
AccessibleEditableTextListener.copyText(org.eclipse.swt.accessibility.AccessibleEditableTextEvent)
,AccessibleEditableTextListener.cutText(org.eclipse.swt.accessibility.AccessibleEditableTextEvent)
,AccessibleEditableTextListener.pasteText(org.eclipse.swt.accessibility.AccessibleEditableTextEvent)
,AccessibleEditableTextListener.replaceText(org.eclipse.swt.accessibility.AccessibleEditableTextEvent)
-
start
int start
[in] 0-based start offset of the character range to perform the operation on- See Also:
AccessibleEditableTextListener.copyText(org.eclipse.swt.accessibility.AccessibleEditableTextEvent)
,AccessibleEditableTextListener.cutText(org.eclipse.swt.accessibility.AccessibleEditableTextEvent)
,AccessibleEditableTextListener.pasteText(org.eclipse.swt.accessibility.AccessibleEditableTextEvent)
,AccessibleEditableTextListener.replaceText(org.eclipse.swt.accessibility.AccessibleEditableTextEvent)
-
string
java.lang.String string
[in] a string that will replace the specified character range
-
-
Class org.eclipse.swt.accessibility.AccessibleEvent extends java.util.EventObject implements Serializable
- serialVersionUID:
- 3257567304224026934L
-
Serialized Fields
-
childID
int childID
The value of this field is set by an accessibility client before the accessible listener method is called. ChildID can be CHILDID_SELF, representing the control itself, or a 0-based integer representing a specific child of the control. -
result
java.lang.String result
The value of this field must be set in the accessible listener method before returning. What to set it to depends on the listener method called, and the childID specified by the client.
-
-
Class org.eclipse.swt.accessibility.AccessibleHyperlinkEvent extends java.util.EventObject implements Serializable
- serialVersionUID:
- 6253098373844074544L
-
Serialized Fields
-
accessible
Accessible accessible
-
index
int index
-
result
java.lang.String result
The value of this field must be set in the accessible hyperlink listener method before returning. What to set it to depends on the listener method called.
-
-
Class org.eclipse.swt.accessibility.AccessibleTableCellEvent extends java.util.EventObject implements Serializable
- serialVersionUID:
- 7231059449172889781L
-
Serialized Fields
-
accessible
Accessible accessible
-
accessibles
Accessible[] accessibles
-
count
int count
-
index
int index
-
isSelected
boolean isSelected
-
-
Class org.eclipse.swt.accessibility.AccessibleTableEvent extends java.util.EventObject implements Serializable
- serialVersionUID:
- 1624586163666270447L
-
Serialized Fields
-
accessible
Accessible accessible
-
accessibles
Accessible[] accessibles
-
column
int column
-
count
int count
-
isSelected
boolean isSelected
-
result
java.lang.String result
The value of this field must be set in the accessible table listener method before returning. What to set it to depends on the listener method called. -
row
int row
-
selected
int[] selected
-
-
Class org.eclipse.swt.accessibility.AccessibleTextAttributeEvent extends java.util.EventObject implements Serializable
- serialVersionUID:
- 7131825608864332802L
-
Serialized Fields
-
attributes
java.lang.String[] attributes
[in/out] an array of alternating key and value Strings that represent attributes that do not correspond to TextStyle fields -
end
int end
[in/out] the starting and ending offsets of the character range -
offset
int offset
[in] the 0-based text offset for which to return attribute information -
result
java.lang.String result
[out] Set this field toACC.OK
if the operation was completed successfully, and null otherwise. -
start
int start
[in/out] the starting and ending offsets of the character range -
textStyle
TextStyle textStyle
[in/out] the TextStyle of the character range
-
-
Class org.eclipse.swt.accessibility.AccessibleTextEvent extends java.util.EventObject implements Serializable
- serialVersionUID:
- 3977019530868308275L
-
Serialized Fields
-
accessible
Accessible accessible
- Since:
- 3.6
-
childID
int childID
-
count
int count
- Since:
- 3.6
-
end
int end
- Since:
- 3.6
-
height
int height
- Since:
- 3.6
-
index
int index
- Since:
- 3.6
-
length
int length
-
offset
int offset
-
ranges
int[] ranges
- Since:
- 3.6
-
rectangles
Rectangle[] rectangles
- Since:
- 3.6
-
result
java.lang.String result
The value of this field must be set in the accessible text extended listener method before returning. What to set it to depends on the listener method called.- Since:
- 3.6
-
start
int start
- Since:
- 3.6
-
type
int type
- Since:
- 3.6
-
width
int width
- Since:
- 3.6
-
x
int x
- Since:
- 3.6
-
y
int y
- Since:
- 3.6
-
-
Class org.eclipse.swt.accessibility.AccessibleValueEvent extends java.util.EventObject implements Serializable
- serialVersionUID:
- -465979079760740668L
-
Serialized Fields
-
value
java.lang.Number value
-
-
-
Package org.eclipse.swt.browser
-
Class org.eclipse.swt.browser.AuthenticationEvent extends TypedEvent implements Serializable
- serialVersionUID:
- -8322331206780057921L
-
Serialized Fields
-
doit
boolean doit
A flag indicating whether the authentication should proceed. Setting this field tofalse
will cancel the operation. -
location
java.lang.String location
The location that triggered the authentication challenge -
password
java.lang.String password
The password to authenticate with -
user
java.lang.String user
The user name to authenticate with
-
-
Class org.eclipse.swt.browser.LocationEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3906644198244299574L
-
Serialized Fields
-
doit
boolean doit
A flag indicating whether the location loading should be allowed. Setting this field tofalse
will cancel the operation. -
location
java.lang.String location
The URL of this event, escaped and encoded for consumption byURI(String)
. -
top
boolean top
A flag indicating whether the location opens in the top frame or not.
-
-
Class org.eclipse.swt.browser.ProgressEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3977018427045393972L
-
Serialized Fields
-
current
int current
current value -
total
int total
total value
-
-
Class org.eclipse.swt.browser.StatusTextEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3258407348371600439L
-
Serialized Fields
-
text
java.lang.String text
status text
-
-
Class org.eclipse.swt.browser.TitleEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 4121132532906340919L
-
Serialized Fields
-
title
java.lang.String title
the title of the current document
-
-
Class org.eclipse.swt.browser.WindowEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3617851997387174969L
-
Serialized Fields
-
addressBar
boolean addressBar
Specifies whether theShell
hosting theBrowser
should display an address bar.- Since:
- 3.1
-
browser
Browser browser
Browser
provided by the application. -
location
Point location
Requested location for theShell
hosting theBrowser
. It isnull
if no location has been requested. -
menuBar
boolean menuBar
Specifies whether theShell
hosting theBrowser
should display a menu bar. Note that this is alwaystrue
on OS X.- Since:
- 3.1
-
required
boolean required
Specifies whether the platform requires the user to provide aBrowser
to handle the new window.- Since:
- 3.1
-
size
Point size
RequestedBrowser
size. The client area of theShell
hosting theBrowser
should be large enough to accommodate that size. It isnull
if no size has been requested. -
statusBar
boolean statusBar
Specifies whether theShell
hosting theBrowser
should display a status bar.- Since:
- 3.1
-
toolBar
boolean toolBar
Specifies whether theShell
hosting theBrowser
should display a tool bar.- Since:
- 3.1
-
-
-
Package org.eclipse.swt.custom
-
Class org.eclipse.swt.custom.BidiSegmentEvent extends SegmentEvent implements Serializable
- serialVersionUID:
- -3712986188155944253L
-
Class org.eclipse.swt.custom.CaretEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3257846571587545489L
-
Serialized Fields
-
caretOffset
int caretOffset
caret offset
-
-
Class org.eclipse.swt.custom.CTabFolderEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3760566386225066807L
-
Serialized Fields
-
doit
boolean doit
A flag indicating whether the operation should be allowed. Setting this field tofalse
will cancel the operation. Applies to the close and showList events. -
height
int height
The height of the chevron button at the time of the event. Applies to the showList event.- Since:
- 3.0
-
item
Widget item
The tab item for the operation. -
width
int width
The width of the chevron button at the time of the event. Applies to the showList event.- Since:
- 3.0
-
x
int x
The widget-relative, x coordinate of the chevron button at the time of the event. Applies to the showList event.- Since:
- 3.0
-
y
int y
The widget-relative, y coordinate of the chevron button at the time of the event. Applies to the showList event.- Since:
- 3.0
-
-
Class org.eclipse.swt.custom.ExtendedModifyEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3258696507027830832L
-
Serialized Fields
-
length
int length
length of the new text -
replacedText
java.lang.String replacedText
replaced text or empty string if no text was replaced -
start
int start
start offset of the new text
-
-
Class org.eclipse.swt.custom.LineBackgroundEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3978711687853324342L
-
Serialized Fields
-
lineBackground
Color lineBackground
line background color -
lineOffset
int lineOffset
line start offset -
lineText
java.lang.String lineText
line text
-
-
Class org.eclipse.swt.custom.LineStyleEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3906081274027192884L
-
Serialized Fields
-
alignment
int alignment
line alignment (input, output)- Since:
- 3.2
-
bullet
Bullet bullet
line bullet (output)- Since:
- 3.2
-
bulletIndex
int bulletIndex
line bullet index (output)- Since:
- 3.2
-
indent
int indent
line indent (input, output)- Since:
- 3.2
-
justify
boolean justify
line justification (input, output)- Since:
- 3.2
-
lineOffset
int lineOffset
line start offset (input) -
lineText
java.lang.String lineText
line text (input) -
ranges
int[] ranges
line ranges (output)- Since:
- 3.2
-
styles
StyleRange[] styles
line styles (output) Note: Because a StyleRange includes the start and length, the same instance cannot occur multiple times in the array of styles. If the same style attributes, such as font and color, occur in multiple StyleRanges,ranges
can be used to share styles and reduce memory usage. -
tabStops
int[] tabStops
line tab stops (output)- Since:
- 3.6
-
verticalIndent
int verticalIndent
line vertical indent (input, output)- Since:
- 3.109
-
wrapIndent
int wrapIndent
line wrap indent (input, output)- Since:
- 3.6
-
-
Class org.eclipse.swt.custom.MovementEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3978765487853324342L
-
Serialized Fields
-
lineOffset
int lineOffset
line start offset (input) -
lineText
java.lang.String lineText
line text (input) -
movement
int movement
the movement type (input) -
newOffset
int newOffset
the new offset (input, output) -
offset
int offset
the current offset (input)
-
-
Class org.eclipse.swt.custom.PaintObjectEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3906081274027192855L
-
Serialized Fields
-
ascent
int ascent
the line ascent -
bullet
Bullet bullet
the Bullet -
bulletIndex
int bulletIndex
the bullet index -
descent
int descent
the line descent -
gc
GC gc
the GC -
style
StyleRange style
the StyleRange -
x
int x
the x location -
y
int y
the y location
-
-
Class org.eclipse.swt.custom.TextChangedEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3258696524257835065L
-
Class org.eclipse.swt.custom.TextChangingEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3257290210114352439L
-
Serialized Fields
-
newCharCount
int newCharCount
Length of text that is going to be inserted -
newLineCount
int newLineCount
Number of new lines that are going to be inserted -
newText
java.lang.String newText
Text that is going to be inserted or empty string if no text will be inserted -
replaceCharCount
int replaceCharCount
Length of text that is going to be replaced -
replaceLineCount
int replaceLineCount
Number of lines that are going to be replaced -
start
int start
Start offset of the text that is going to be replaced
-
-
-
Package org.eclipse.swt.dnd
-
Class org.eclipse.swt.dnd.DragSourceEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3257002142513770808L
-
Serialized Fields
-
dataType
TransferData dataType
The type of data requested. Data provided in the data field must be of the same type. -
detail
int detail
The operation that was performed.- See Also:
DND.DROP_NONE
,DND.DROP_MOVE
,DND.DROP_COPY
,DND.DROP_LINK
,DND.DROP_TARGET_MOVE
-
doit
boolean doit
In dragStart, the doit field determines if the drag and drop operation should proceed; in dragFinished, the doit field indicates whether the operation was performed successfully.In dragStart:
Flag to determine if the drag and drop operation should proceed. The application can set this value to false to prevent the drag from starting. Set to true by default.
In dragSetData:
This will be set to true when the call to dragSetData is made. Set it to false to cancel the drag.
In dragFinished:
Flag to indicate if the operation was performed successfully. True if the operation was performed successfully.
-
image
Image image
The drag source image to be displayed during the drag.A value of null indicates that no drag image will be displayed.
The default value is null.
- Since:
- 3.3
-
offsetX
int offsetX
In dragStart, the x offset (relative to the image) where the drag source image will be displayed.- Since:
- 3.5
-
offsetY
int offsetY
In dragStart, the y offset (relative to the image) where the drag source image will be displayed.- Since:
- 3.5
-
x
int x
In dragStart, the x coordinate (relative to the control) of the position the mouse went down to start the drag.- Since:
- 3.2
-
y
int y
In dragStart, the y coordinate (relative to the control) of the position the mouse went down to start the drag.- Since:
- 3.2
-
-
Class org.eclipse.swt.dnd.DropTargetEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3256727264573338678L
-
Serialized Fields
-
currentDataType
TransferData currentDataType
The type of data that will be dropped. -
dataTypes
TransferData[] dataTypes
A list of the types of data that the DragSource is capable of providing. The currentDataType must be a member of this list. -
detail
int detail
The operation being performed.- See Also:
DND.DROP_NONE
,DND.DROP_MOVE
,DND.DROP_COPY
,DND.DROP_LINK
,DND.DROP_DEFAULT
-
feedback
int feedback
A bitwise OR'ing of the drag under effect feedback to be displayed to the user (e.g. DND.FEEDBACK_SELECT | DND.FEEDBACK_SCROLL | DND.FEEDBACK_EXPAND).A value of DND.FEEDBACK_NONE indicates that no drag under effect will be displayed.
Feedback effects will only be applied if they are applicable.
The default value is DND.FEEDBACK_SELECT.
-
item
Widget item
If the associated control is a table or tree, this field contains the item located at the cursor coordinates. -
operations
int operations
A bitwise OR'ing of the operations that the DragSource can support (e.g. DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK). The detail value must be a member of this list or DND.DROP_NONE.- See Also:
DND.DROP_NONE
,DND.DROP_MOVE
,DND.DROP_COPY
,DND.DROP_LINK
,DND.DROP_DEFAULT
-
x
int x
The x-cordinate of the cursor relative to theDisplay
-
y
int y
The y-cordinate of the cursor relative to theDisplay
-
-
-
Package org.eclipse.swt.events
-
Class org.eclipse.swt.events.ArmEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3258126964249212217L
-
Class org.eclipse.swt.events.ControlEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3258132436155119161L
-
Class org.eclipse.swt.events.DisposeEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3257566187633521206L
-
Class org.eclipse.swt.events.DragDetectEvent extends MouseEvent implements Serializable
- serialVersionUID:
- -7229172519733647232L
-
Class org.eclipse.swt.events.ExpandEvent extends SelectionEvent implements Serializable
- serialVersionUID:
- 3976735856884987356L
-
Class org.eclipse.swt.events.FocusEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3258134643684227381L
-
Class org.eclipse.swt.events.GestureEvent extends TypedEvent implements Serializable
- serialVersionUID:
- -8348741538373572182L
-
Serialized Fields
-
detail
int detail
The gesture type.SWT.GESTURE_BEGIN
SWT.GESTURE_END
SWT.GESTURE_MAGNIFY
SWT.GESTURE_PAN
SWT.GESTURE_ROTATE
SWT.GESTURE_SWIPE
GestureEvent
fields that contain valid data. -
doit
boolean doit
This flag indicates whether the operation should be allowed. Setting it tofalse
will cancel the operation. -
magnification
double magnification
This field is valid when thedetail
field is set toGESTURE_MAGNIFY
. This is the scale factor to be applied. This value will be 1.0 in the first received event withGESTURE_MAGNIFY
, and will then fluctuate in subsequent events as the user moves their fingers. -
rotation
double rotation
This field is valid when thedetail
field is set toGESTURE_ROTATE
. It specifies the number of degrees rotated on the device since the gesture started. Positive values indicate counter-clockwise rotation, and negative values indicate clockwise rotation. -
stateMask
int stateMask
The state of the keyboard modifier keys and mouse masks at the time the event was generated.- See Also:
SWT.MODIFIER_MASK
,SWT.BUTTON_MASK
-
x
int x
The meaning of this field is dependent on the value of thedetail
field and the platform. It can represent either the x coordinate of the centroid of the touches that make up the gesture, or the x coordinate of the cursor at the time the gesture was performed. -
xDirection
int xDirection
This field is valid when thedetail
field is set toGESTURE_SWIPE
orGESTURE_PAN
. BothxDirection
andyDirection
can be valid for an individual gesture. The meaning of this field is dependent on the value of thedetail
field.If
detail
isGESTURE_SWIPE
then a positive value indicates a swipe to the right and a negative value indicates a swipe to the left. Ifdetail
isGESTURE_PAN
then a positive value indicates a pan to the right by this field's count of points and a negative value indicates a pan to the left by this field's count of points. -
y
int y
The meaning of this field is dependent on the value of thedetail
field and the platform. It can represent either the y coordinate of the centroid of the touches that make up the gesture, or the y coordinate of the cursor at the time the gesture was performed. -
yDirection
int yDirection
This field is valid when thedetail
field is set toGESTURE_SWIPE
orGESTURE_PAN
. BothxDirection
andyDirection
can be valid for an individual gesture. The meaning of this field is dependent on the value of thedetail
field. Ifdetail
isGESTURE_SWIPE
then a positive value indicates a downward swipe and a negative value indicates an upward swipe. Ifdetail
isGESTURE_PAN
then a positive value indicates a downward pan by this field's count of points and a negative value indicates an upward pan by this field's count of points.
-
-
Class org.eclipse.swt.events.HelpEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3257001038606251315L
-
Class org.eclipse.swt.events.KeyEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3256442491011412789L
-
Serialized Fields
-
character
char character
the character represented by the key that was typed. This is the final character that results after all modifiers have been applied. For example, when the user types Ctrl+A, the character value is 0x01. It is important that applications do not attempt to modify the character value based on a stateMask (such as SWT.CTRL) or the resulting character will not be correct. -
doit
boolean doit
A flag indicating whether the operation should be allowed. Setting this field tofalse
will cancel the operation. -
keyCode
int keyCode
the key code of the key that was typed, as defined by the key code constants in classSWT
. When the character field of the event is ambiguous, this field contains the unicode value of the original character. For example, typing Ctrl+M or Return both result in the character '\r' but the keyCode field will also contain '\r' when Return was typed.- See Also:
SWT
-
keyLocation
int keyLocation
depending on the event, the location of key specified by the keyCode or character. The possible values for this field areSWT.LEFT
,SWT.RIGHT
,SWT.KEYPAD
, orSWT.NONE
representing the main keyboard area.The location field can be used to differentiate key events that have the same key code and character but are generated by different keys on the keyboard. For example, a key down event with the key code equal to SWT.SHIFT can be generated by the left and the right shift keys on the keyboard.
The location field can only be used to determine the location of the key code or character in the current event. It does not include information about the location of modifiers in the state mask.
- Since:
- 3.6
- See Also:
SWT.LEFT
,SWT.RIGHT
,SWT.KEYPAD
-
stateMask
int stateMask
the state of the keyboard modifier keys and mouse masks at the time the event was generated.- See Also:
SWT.MODIFIER_MASK
,SWT.BUTTON_MASK
-
-
Class org.eclipse.swt.events.MenuDetectEvent extends TypedEvent implements Serializable
- serialVersionUID:
- -3061660596590828941L
-
Serialized Fields
-
detail
int detail
The context menu trigger type. A field indicating whether the context menu was triggered by a pointing device such as a mouse (indicated byMENU_MOUSE
), or by a focus-based device such as a keyboard (MENU_KEYBOARD
). If the trigger wasMENU_KEYBOARD
, then the application should provide new display-relative x and y coordinates based on the current selection or the current focus.- Since:
- 3.8
-
doit
boolean doit
A flag indicating whether the operation should be allowed. Setting this field tofalse
will cancel the operation. -
x
int x
The display-relative x coordinate of the pointer at the time the context menu trigger occurred. -
y
int y
The display-relative y coordinate of the pointer at the time the context menu trigger occurred.
-
-
Class org.eclipse.swt.events.MenuEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3258132440332383025L
-
Class org.eclipse.swt.events.ModifyEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3258129146227011891L
-
Class org.eclipse.swt.events.MouseEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3257288037011566898L
-
Serialized Fields
-
button
int button
the button that was pressed or released;- 1 for the first button (usually 'left')
- 2 for the second button (usually 'middle')
- 3 for the third button (usually 'right')
- etc.
-
count
int count
the number times the mouse has been clicked, as defined by the operating system; 1 for the first click, 2 for the second click and so on.- Since:
- 3.3
-
stateMask
int stateMask
the state of the keyboard modifier keys and mouse masks at the time the event was generated.- See Also:
SWT.MODIFIER_MASK
,SWT.BUTTON_MASK
-
x
int x
the widget-relative, x coordinate of the pointer at the time the mouse button was pressed or released -
y
int y
the widget-relative, y coordinate of the pointer at the time the mouse button was pressed or released
-
-
Class org.eclipse.swt.events.PaintEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3256446919205992497L
-
Serialized Fields
-
count
int count
the number of following paint events which are pending which may always be zero on some platforms -
gc
GC gc
the graphics context to use when painting that is configured to use the colors, font and damaged region of the control. It is valid only during the paint and must not be disposed -
height
int height
the height of the bounding rectangle of the region that requires painting -
width
int width
the width of the bounding rectangle of the region that requires painting -
x
int x
the x offset of the bounding rectangle of the region that requires painting -
y
int y
the y offset of the bounding rectangle of the region that requires painting
-
-
Class org.eclipse.swt.events.SegmentEvent extends TypedEvent implements Serializable
- serialVersionUID:
- -2414889726745247762L
-
Serialized Fields
-
lineOffset
int lineOffset
The start offset of thelineText
relative to text (always zero for single line widget) -
lineText
java.lang.String lineText
Text used to calculate the segments -
segments
int[] segments
Text ranges that should be treated as separate segments (e.g. for bidi reordering) -
segmentsChars
char[] segmentsChars
Characters to be used in the segment boundaries (optional)
-
-
Class org.eclipse.swt.events.SelectionEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3976735856884987953L
-
Serialized Fields
-
detail
int detail
Extra detail information about the selection, depending on the widget.Sash
ScrollBar and Slider
Table and Tree
Text
CoolItem and ToolItem
-
doit
boolean doit
A flag indicating whether the operation should be allowed. Setting this field tofalse
will cancel the operation, depending on the widget. -
height
int height
The height of selected area. -
item
Widget item
The item that was selected. -
stateMask
int stateMask
The state of the keyboard modifier keys and mouse masks at the time the event was generated.Note: Mouse button states are currently not included consistently for all widgets on all platforms. Clients should be prepared to receive button states, but should not rely on getting them everywhere.
- See Also:
SWT.MODIFIER_MASK
,SWT.BUTTON_MASK
-
text
java.lang.String text
The text of the hyperlink that was selected. This will be either the text of the hyperlink or the value of its HREF, if one was specified.- Since:
- 3.1
- See Also:
Link.setText(String)
-
width
int width
The width of selected area. -
x
int x
The x location of the selected area. -
y
int y
The y location of selected area.
-
-
Class org.eclipse.swt.events.ShellEvent extends TypedEvent implements Serializable
- serialVersionUID:
- 3257569490479888441L
-
Serialized Fields
-
doit
boolean doit
A flag indicating whether the operation should be allowed. Setting this field tofalse
will cancel the operation.
-
-
Class org.eclipse.swt.events.TouchEvent extends TypedEvent implements Serializable
- serialVersionUID:
- -8348741538373572182L
-
Serialized Fields
-
stateMask
int stateMask
The state of the keyboard modifier keys and mouse masks at the time the event was generated.- See Also:
SWT.MODIFIER_MASK
,SWT.BUTTON_MASK
-
touches
Touch[] touches
The set of touches representing the state of all contacts with touch input device at the time the event was generated.- See Also:
Touch
-
x
int x
The widget-relative x coordinate of the pointer at the time the touch occurred. -
y
int y
The widget-relative y coordinate of the pointer at the time the touch occurred.
-
-
Class org.eclipse.swt.events.TraverseEvent extends KeyEvent implements Serializable
- serialVersionUID:
- 3257565105301239349L
-
Serialized Fields
-
detail
int detail
The traversal type.SWT.TRAVERSE_NONE
SWT.TRAVERSE_ESCAPE
SWT.TRAVERSE_RETURN
SWT.TRAVERSE_TAB_NEXT
SWT.TRAVERSE_TAB_PREVIOUS
SWT.TRAVERSE_ARROW_NEXT
SWT.TRAVERSE_ARROW_PREVIOUS
SWT.TRAVERSE_MNEMONIC
SWT.TRAVERSE_PAGE_NEXT
SWT.TRAVERSE_PAGE_PREVIOUS
TRAVERSE_NONE
causes no traversal action to be taken. When used in conjunction with thedoit
field, the traversal detail field can be useful when overriding the default traversal mechanism for a control. For example, setting the doit field tofalse
will cancel the operation and allow the traversal key stroke to be delivered to the control. Setting the doit field totrue
indicates that the traversal described by the detail field is to be performed.
-
-
Class org.eclipse.swt.events.TreeEvent extends SelectionEvent implements Serializable
- serialVersionUID:
- 3257282548009677109L
-
Class org.eclipse.swt.events.TypedEvent extends java.util.EventObject implements Serializable
- serialVersionUID:
- 3257285846578377524L
-
Serialized Fields
-
data
java.lang.Object data
a field for application use -
display
Display display
the display where the event occurred- Since:
- 2.0
-
time
int time
the time that the event occurred. NOTE: This field is an unsigned integer and should be AND'ed with 0xFFFFFFFFL so that it can be treated as a signed long. -
widget
Widget widget
the widget that issued the event
-
-
Class org.eclipse.swt.events.VerifyEvent extends KeyEvent implements Serializable
- serialVersionUID:
- 3257003246269577014L
-
Serialized Fields
-
end
int end
the range of text being modified. Setting these fields has no effect. -
start
int start
the range of text being modified. Setting these fields has no effect. -
text
java.lang.String text
the new text that will be inserted. Setting this field will change the text that is about to be inserted or deleted.
-
-
-
Package org.eclipse.swt.graphics
-
Class org.eclipse.swt.graphics.ImageLoaderEvent extends java.util.EventObject implements Serializable
- serialVersionUID:
- 3257284738325558065L
-
Serialized Fields
-
endOfImage
boolean endOfImage
If this flag is true, then the current image data has been completely loaded, otherwise the image data is only partially loaded, and further ImageLoader events will occur unless an exception is thrown -
imageData
ImageData imageData
if theendOfImage
flag is false, then this is a partially complete copy of the currentImageData
, otherwise this is a completely loadedImageData
-
incrementCount
int incrementCount
the zero-based count of image data increments -- this is equivalent to the number of events that have been generated while loading a particular image
-
-
Class org.eclipse.swt.graphics.Point extends java.lang.Object implements Serializable
- serialVersionUID:
- 3257002163938146354L
-
Serialized Fields
-
x
int x
the x coordinate of the point -
y
int y
the y coordinate of the point
-
-
Class org.eclipse.swt.graphics.Rectangle extends java.lang.Object implements Serializable
- serialVersionUID:
- 3256439218279428914L
-
Serialized Fields
-
height
int height
the height of the rectangle -
width
int width
the width of the rectangle -
x
int x
the x coordinate of the rectangle -
y
int y
the y coordinate of the rectangle
-
-
Class org.eclipse.swt.graphics.RGB extends java.lang.Object implements Serializable
- serialVersionUID:
- 3258415023461249074L
-
Serialized Fields
-
blue
int blue
the blue component of the RGB -
green
int green
the green component of the RGB -
red
int red
the red component of the RGB
-
-
Class org.eclipse.swt.graphics.RGBA extends java.lang.Object implements Serializable
- serialVersionUID:
- 1049467103126495855L
-
Serialized Fields
-
alpha
int alpha
the alpha component of the RGBA -
rgb
RGB rgb
the RGB component of the RGBA
-
-