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 GEF
3.3

org.eclipse.gef.dnd
Class SimpleObjectTransfer

java.lang.Object
  extended byByteArrayTransfer
      extended by
org.eclipse.gef.dnd.SimpleObjectTransfer
Direct Known Subclasses:
TemplateTransfer

public abstract class SimpleObjectTransfer
extends ByteArrayTransfer

Holds on to the object being transferred in a field so that DropTargetListeners can know what's being dragged before the drop occurs. The object isn't converted to bytes, so this Transfer will only work when dragging within the same instance of Eclipse. Subclasses should maintain a single instance of their Transfer and provide a static method to obtain that instance.

See Also:
Serialized Form

Constructor Summary
SimpleObjectTransfer ()
           
 
Method Summary
 java.lang.Object getObject ()
          Returns the Object.
 void javaToNative (java.lang.Object object, TransferData transferData)
          The data object is not converted to bytes.
 java.lang.Object nativeToJava (TransferData transferData)
          The data object is not converted to bytes.
 void setObject (java.lang.Object obj)
          Sets the Object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleObjectTransfer

public SimpleObjectTransfer()
Method Detail

getObject

public java.lang.Object getObject()
Returns the Object.

Returns:
The Object

javaToNative

public void javaToNative(java.lang.Object object,
                         TransferData transferData)
The data object is not converted to bytes. It is held onto in a field. Instead, a checksum is written out to prevent unwanted drags across mulitple running copies of Eclipse.

See Also:
org.eclipse.swt.dnd.Transfer#javaToNative(Object, TransferData)

nativeToJava

public java.lang.Object nativeToJava(TransferData transferData)
The data object is not converted to bytes. It is held onto in a field. Instead, a checksum is written out to prevent unwanted drags across mulitple running. copies of Eclipse.

See Also:
org.eclipse.swt.dnd.Transfer#nativeToJava(TransferData)

setObject

public void setObject(java.lang.Object obj)
Sets the Object.

Parameters:
obj - The Object

Eclipse GEF
3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.

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