Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.swt.dnd
Class DragSourceEvent

java.lang.Object
  extended by 

java.util.EventObject
      extended by org.eclipse.swt.internal.SWTEventObject
          extended by 

org.eclipse.swt.events.TypedEvent
              extended by 
org.eclipse.swt.dnd.DragSourceEvent
All Implemented Interfaces:
Serializable

public class DragSourceEvent
extends TypedEvent

The DragSourceEvent contains the event information passed in the methods of the DragSourceListener.

See Also:
DragSourceListener, Sample code and further information, Serialized Form

Field Summary
  TransferData dataType
          The type of data requested.
 int detail
          The operation that was performed.
 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.
  Image image
          The drag source image to be displayed during the drag.
 int offsetX
          In dragStart, the x offset (relative to the image) where the drag source image will be displayed.
 int offsetY
          In dragStart, the y offset (relative to the image) where the drag source image will be displayed.
 int x
          In dragStart, the x coordinate (relative to the control) of the position the mouse went down to start the drag.
 int y
          In dragStart, the y coordinate (relative to the control) of the position the mouse went down to start the drag.
 
Fields inherited from class org.eclipse.swt.events. TypedEvent
data, display, time, widget
 
Fields inherited from class java.util. EventObject
source
 
Constructor Summary
DragSourceEvent (org.eclipse.swt.dnd.DNDEvent e)
          Constructs a new instance of this class based on the information in the given untyped event.
 
Method Summary
  String toString ()
          Returns a string containing a concise, human-readable description of the receiver.
 
Methods inherited from class java.util. EventObject
getSource
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

detail

public 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

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


x

public 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

public 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

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


image

public 
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

public int offsetX
In dragStart, the x offset (relative to the image) where the drag source image will be displayed.

Since:
3.5

offsetY

public int offsetY
In dragStart, the y offset (relative to the image) where the drag source image will be displayed.

Since:
3.5
Constructor Detail

DragSourceEvent

public DragSourceEvent(org.eclipse.swt.dnd.DNDEvent e)
Constructs a new instance of this class based on the information in the given untyped event.

Parameters:
e - the untyped event containing the information
Method Detail

toString

public 
String toString()
Returns a string containing a concise, human-readable description of the receiver.

Overrides:
toString in class TypedEvent
Returns:
a string representation of the event

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire