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 TableDropTargetEffect

java.lang.Object
  extended by 

org.eclipse.swt.dnd.DropTargetAdapter
      extended by 

org.eclipse.swt.dnd.DropTargetEffect
          extended by 
org.eclipse.swt.dnd.TableDropTargetEffect
All Implemented Interfaces:
EventListener, DropTargetListener, org.eclipse.swt.internal.SWTEventListener

public class TableDropTargetEffect
extends DropTargetEffect

This class provides a default drag under effect (eg. select, insert and scroll) when a drag occurs over a Table.

Classes that wish to provide their own drag under effect for a Table can extend the TableDropTargetEffect and override any applicable methods in TableDropTargetEffect to display their own drag under effect.

Subclasses that override any methods of this class must call the corresponding super method to get the default drag under effect implementation.

The feedback value is either one of the FEEDBACK constants defined in class DND which is applicable to instances of this class, or it must be built by bitwise OR'ing together (that is, using the int "|" operator) two or more of those DND effect constants.

Feedback:
FEEDBACK_SELECT, FEEDBACK_SCROLL

Since:
3.3
See Also:
DropTargetAdapter, DropTargetEvent, Sample code and further information

Constructor Summary
TableDropTargetEffect ( Table table)
          Creates a new TableDropTargetEffect to handle the drag under effect on the specified Table.
 
Method Summary
 void dragEnter ( DropTargetEvent event)
          This implementation of dragEnter provides a default drag under effect for the feedback specified in event.feedback.
 void dragLeave ( DropTargetEvent event)
          This implementation of dragLeave provides a default drag under effect for the feedback specified in event.feedback.
 void dragOver ( DropTargetEvent event)
          This implementation of dragOver provides a default drag under effect for the feedback specified in event.feedback.
 
Methods inherited from class org.eclipse.swt.dnd. DropTargetEffect
getControl, getItem
 
Methods inherited from class org.eclipse.swt.dnd. DropTargetAdapter
dragOperationChanged, drop, dropAccept
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableDropTargetEffect

public TableDropTargetEffect(
Table table)
Creates a new TableDropTargetEffect to handle the drag under effect on the specified Table.

Parameters:
table - the Table over which the user positions the cursor to drop the data
Method Detail

dragEnter

public void dragEnter(
DropTargetEvent event)
This implementation of dragEnter provides a default drag under effect for the feedback specified in event.feedback. For additional information see DropTargetAdapter.dragEnter. Subclasses that override this method should call super.dragEnter(event) to get the default drag under effect implementation.

Specified by:
dragEnter in interface DropTargetListener
Overrides:
dragEnter in class DropTargetAdapter
Parameters:
event - the information associated with the drag enter event
See Also:
DropTargetAdapter, DropTargetEvent

dragLeave

public void dragLeave(
DropTargetEvent event)
This implementation of dragLeave provides a default drag under effect for the feedback specified in event.feedback. For additional information see DropTargetAdapter.dragLeave. Subclasses that override this method should call super.dragLeave(event) to get the default drag under effect implementation.

Specified by:
dragLeave in interface DropTargetListener
Overrides:
dragLeave in class DropTargetAdapter
Parameters:
event - the information associated with the drag leave event
See Also:
DropTargetAdapter, DropTargetEvent

dragOver

public void dragOver(
DropTargetEvent event)
This implementation of dragOver provides a default drag under effect for the feedback specified in event.feedback. The class description lists the FEEDBACK constants that are applicable to the class. For additional information see DropTargetAdapter.dragOver. Subclasses that override this method should call super.dragOver(event) to get the default drag under effect implementation.

Specified by:
dragOver in interface DropTargetListener
Overrides:
dragOver in class DropTargetAdapter
Parameters:
event - the information associated with the drag over event
See Also:
DropTargetAdapter, DropTargetEvent, DND.FEEDBACK_SELECT, DND.FEEDBACK_SCROLL

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