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.AccessibleControlEvent extends SWTEventObject implements Serializable

serialVersionUID: 3257281444169529141L

Serialized Fields

childID

int childID

accessible

Accessible accessible

x

int x

y

int y

width

int width

height

int height

detail

int detail

result

java.lang.String result

children

java.lang.Object[] children

Class org.eclipse.swt.accessibility.AccessibleEvent extends SWTEventObject 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.AccessibleTextEvent extends SWTEventObject implements Serializable

serialVersionUID: 3977019530868308275L

Serialized Fields

childID

int childID

offset

int offset

length

int length

Package org.eclipse.swt.browser

Class org.eclipse.swt.browser.LocationEvent extends TypedEvent implements Serializable

serialVersionUID: 3906644198244299574L

Serialized Fields

location

java.lang.String location
current location


top

boolean top
A flag indicating whether the location opens in the top frame or not.


doit

boolean doit
A flag indicating whether the location loading should be allowed. Setting this field to false will cancel the operation.

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

required

boolean required
Specifies whether the platform requires the user to provide a Browser to handle the new window.

Since:
3.1

browser

Browser browser
Browser provided by the application.


location

Point location
Requested location for the Shell hosting the Browser. It is null if no location has been requested.


size

Point size
Requested Browser size. The client area of the Shell hosting the Browser should be large enough to accommodate that size. It is null if no size has been requested.


addressBar

boolean addressBar
Specifies whether the Shell hosting the Browser should display an address bar.

Since:
3.1

menuBar

boolean menuBar
Specifies whether the Shell hosting the Browser should display a menu bar.

Since:
3.1

statusBar

boolean statusBar
Specifies whether the Shell hosting the Browser should display a status bar.

Since:
3.1

toolBar

boolean toolBar
Specifies whether the Shell hosting the Browser should display a tool bar.

Since:
3.1

Package org.eclipse.swt.custom

Class org.eclipse.swt.custom.BidiSegmentEvent extends TypedEvent implements Serializable

serialVersionUID: 3257846571587547957L

Serialized Fields

lineOffset

int lineOffset
line start offset


lineText

java.lang.String lineText
line text


segments

int[] segments
bidi segments, see above

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

item

Widget item
The tab item for the operation.


doit

boolean doit
A flag indicating whether the operation should be allowed. Setting this field to false will cancel the operation. Applies to the close and showList events.


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

width

int width
The width of the chevron button at the time of the event. Applies to the showList event.

Since:
3.0

height

int height
The height 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

start

int start
start offset of the new text


length

int length
length of the new text


replacedText

java.lang.String replacedText
replaced text or empty string if no text was replaced

Class org.eclipse.swt.custom.LineBackgroundEvent extends TypedEvent implements Serializable

serialVersionUID: 3978711687853324342L

Serialized Fields

lineOffset

int lineOffset
line start offset


lineText

java.lang.String lineText
line text


lineBackground

Color lineBackground
line background color

Class org.eclipse.swt.custom.LineStyleEvent extends TypedEvent implements Serializable

serialVersionUID: 3906081274027192884L

Serialized Fields

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.


alignment

int alignment
line alignment (input, output)

Since:
3.2

indent

int indent
line indent (input, output)

Since:
3.2

justify

boolean justify
line justification (input, output)

Since:
3.2

bullet

Bullet bullet
line bullet (output)

Since:
3.2

bulletIndex

int bulletIndex
line bullet index (output)

Since:
3.2

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)


offset

int offset
the current offset (input)


newOffset

int newOffset
the new offset (input, output)


movement

int movement
the movement type (input)

See Also:
SWT.MOVEMENT_WORD, SWT.MOVEMENT_WORD_END, SWT.MOVEMENT_WORD_START, SWT.MOVEMENT_CHAR, SWT.MOVEMENT_CLUSTER

Class org.eclipse.swt.custom.PaintObjectEvent extends TypedEvent implements Serializable

serialVersionUID: 3906081274027192855L

Serialized Fields

gc

GC gc
the GC


x

int x
the x location


y

int y
the y location


ascent

int ascent
the line ascent


descent

int descent
the line descent


style

StyleRange style
the StyleRange


bullet

Bullet bullet
the Bullet


bulletIndex

int bulletIndex
the bullet index

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

start

int start
Start offset of the text that is going to be replaced


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


newCharCount

int newCharCount
Length of text that is going to be inserted


replaceLineCount

int replaceLineCount
Number of lines that are going to be replaced


newLineCount

int newLineCount
Number of new lines that are going to be inserted


Package org.eclipse.swt.dnd

Class org.eclipse.swt.dnd.DragSourceEvent extends TypedEvent implements Serializable

serialVersionUID: 3257002142513770808L

Serialized Fields

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 dragFinished:

Flag to indicate if the operation was performed successfully. True if the operation was performed successfully.


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

dataType

TransferData dataType
The type of data requested. Data provided in the data field must be of the same type.


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

Class org.eclipse.swt.dnd.DropTargetEvent extends TypedEvent implements Serializable

serialVersionUID: 3256727264573338678L

Serialized Fields

x

int x
The x-cordinate of the cursor relative to the Display


y

int y
The y-cordinate of the cursor relative to the Display


detail

int detail
The operation being performed.

See Also:
DND.DROP_NONE, DND.DROP_MOVE, DND.DROP_COPY, DND.DROP_LINK

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

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.

See Also:
DND.FEEDBACK_NONE, DND.FEEDBACK_SELECT, DND.FEEDBACK_INSERT_BEFORE, DND.FEEDBACK_INSERT_AFTER, DND.FEEDBACK_SCROLL, DND.FEEDBACK_EXPAND

item

Widget item
If the associated control is a table or tree, this field contains the item located at the cursor coordinates.


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.


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.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.


keyCode

int keyCode
the key code of the key that was typed, as defined by the key code constants in class SWT. 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

stateMask

int stateMask
the state of the keyboard modifier keys at the time the event was generated, as defined by the key code constants in class SWT.

See Also:
SWT

doit

boolean doit
A flag indicating whether the operation should be allowed. Setting this field to false will cancel the operation.

Class org.eclipse.swt.events.MenuDetectEvent extends TypedEvent implements Serializable

serialVersionUID: -3061660596590828941L

Serialized Fields

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


doit

boolean doit
A flag indicating whether the operation should be allowed. Setting this field to false will cancel the operation.

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, 2 for the second button, and 3 for the third button, etc.


stateMask

int stateMask
the state of the keyboard modifier keys and mouse masks at the time the event was generated.


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


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

Class org.eclipse.swt.events.PaintEvent extends TypedEvent implements Serializable

serialVersionUID: 3256446919205992497L

Serialized Fields

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


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


width

int width
the width of the bounding rectangle of the region that requires painting


height

int height
the height of the bounding rectangle of the region that requires painting


count

int count
the number of following paint events which are pending which may always be zero on some platforms

Class org.eclipse.swt.events.SelectionEvent extends TypedEvent implements Serializable

serialVersionUID: 3976735856884987953L

Serialized Fields

item

Widget item
The item that was selected.


detail

int detail
Extra detail information about the selection, depending on the widget.

Sash

ScrollBar and Slider

Table and Tree

Text

CoolItem and ToolItem


x

int x
The x location of the selected area.


y

int y
The y location of selected area.


width

int width
The width of selected area.


height

int height
The height of selected area.


stateMask

int stateMask
The state of the keyboard modifier keys at the time the event was generated.


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)

doit

boolean doit
A flag indicating whether the operation should be allowed. Setting this field to false will cancel the operation, depending on the widget.

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 to false will cancel the operation.

Class org.eclipse.swt.events.TraverseEvent extends KeyEvent implements Serializable

serialVersionUID: 3257565105301239349L

Serialized Fields

detail

int detail
The traversal type.

Setting this field will change the type of traversal. For example, setting the detail to TRAVERSE_NONE causes no traversal action to be taken. When used in conjunction with the doit field, the traversal detail field can be useful when overriding the default traversal mechanism for a control. For example, setting the doit field to false will cancel the operation and allow the traversal key stroke to be delivered to the control. Setting the doit field to true 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 SWTEventObject implements Serializable

serialVersionUID: 3257285846578377524L

Serialized Fields

display

Display display
the display where the event occurred

Since:
2.0

widget

Widget widget
the widget that issued the event


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.


data

java.lang.Object data
a field for application use

Class org.eclipse.swt.events.VerifyEvent extends KeyEvent implements Serializable

serialVersionUID: 3257003246269577014L

Serialized Fields

start

int start
the range of text being modified. Setting these fields has no effect.


end

int end
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 SWTEventObject implements Serializable

serialVersionUID: 3257284738325558065L

Serialized Fields

imageData

ImageData imageData
if the endOfImage flag is false, then this is a partially complete copy of the current ImageData, otherwise this is a completely loaded ImageData


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


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

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

x

int x
the x coordinate of the rectangle


y

int y
the y coordinate of the rectangle


width

int width
the width of the rectangle


height

int height
the height of the rectangle

Class org.eclipse.swt.graphics.RGB extends java.lang.Object implements Serializable

serialVersionUID: 3258415023461249074L

Serialized Fields

red

int red
the red component of the RGB


green

int green
the green component of the RGB


blue

int blue
the blue component of the RGB


Package org.eclipse.swt.internal

Class org.eclipse.swt.internal.SWTEventObject extends java.util.EventObject implements Serializable

serialVersionUID: 3258125873411470903L