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 TableDragSourceEffect

java.lang.Object
  extended by 

org.eclipse.swt.dnd.DragSourceAdapter
      extended by 

org.eclipse.swt.dnd.DragSourceEffect
          extended by 
org.eclipse.swt.dnd.TableDragSourceEffect
All Implemented Interfaces:
EventListener, DragSourceListener, org.eclipse.swt.internal.SWTEventListener

public class TableDragSourceEffect
extends DragSourceEffect

This class provides default implementations to display a source image when a drag is initiated from a Table.

Classes that wish to provide their own source image for a Table can extend the TableDragSourceEffect class, override the TableDragSourceEffect.dragStart method and set the field DragSourceEvent.image with their own image.

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

Since:
3.3
See Also:
DragSourceEffect, DragSourceEvent, Sample code and further information

Constructor Summary
TableDragSourceEffect ( Table table)
          Creates a new TableDragSourceEffect to handle drag effect from the specified Table.
 
Method Summary
 void dragFinished ( DragSourceEvent event)
          This implementation of dragFinished disposes the image that was created in TableDragSourceEffect.dragStart.
 void dragStart ( DragSourceEvent event)
          This implementation of dragStart will create a default image that will be used during the drag.
 
Methods inherited from class org.eclipse.swt.dnd. DragSourceEffect
getControl
 
Methods inherited from class org.eclipse.swt.dnd. DragSourceAdapter
dragSetData
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableDragSourceEffect

public TableDragSourceEffect(
Table table)
Creates a new TableDragSourceEffect to handle drag effect from the specified Table.

Parameters:
table - the Table that the user clicks on to initiate the drag
Method Detail

dragFinished

public void dragFinished(
DragSourceEvent event)
This implementation of dragFinished disposes the image that was created in TableDragSourceEffect.dragStart. Subclasses that override this method should call super.dragFinished(event) to dispose the image in the default implementation.

Specified by:
dragFinished in interface DragSourceListener
Overrides:
dragFinished in class DragSourceAdapter
Parameters:
event - the information associated with the drag finished event
See Also:
DragSourceEvent

dragStart

public void dragStart(
DragSourceEvent event)
This implementation of dragStart will create a default image that will be used during the drag. The image should be disposed when the drag is completed in the TableDragSourceEffect.dragFinished method. Subclasses that override this method should call super.dragStart(event) to use the image from the default implementation.

Specified by:
dragStart in interface DragSourceListener
Overrides:
dragStart in class DragSourceAdapter
Parameters:
event - the information associated with the drag start event
See Also:
DragSourceEvent

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