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


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.DropTargetEvent
All Implemented Interfaces:
Serializable

public class DropTargetEvent
extends TypedEvent

The DropTargetEvent contains the event information passed in the methods of the DropTargetListener.

See Also:
Sample code and further information, Serialized Form

Field Summary
  TransferData currentDataType
          The type of data that will be dropped.
  TransferData[] dataTypes
          A list of the types of data that the DragSource is capable of providing.
 int detail
          The operation being performed.
 int feedback
          A bitwise OR'ing of the drag under effect feedback to be displayed to the user (e.g.
  Widget item
          If the associated control is a table or tree, this field contains the item located at the cursor coordinates.
 int operations
          A bitwise OR'ing of the operations that the DragSource can support (e.g.
 int x
          The x-cordinate of the cursor relative to the Display
 int y
          The y-cordinate of the cursor relative to the Display
 
Fields inherited from class org.eclipse.swt.events. TypedEvent
data, display, time, widget
 
Fields inherited from class java.util. EventObject
source
 
Constructor Summary
DropTargetEvent (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

x

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


y

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


detail

public int detail
The operation being performed.

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

operations

public 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

feedback

public 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

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


currentDataType

public 
TransferData currentDataType
The type of data that will be dropped.


dataTypes

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

Constructor Detail

DropTargetEvent

public DropTargetEvent(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