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 TemplateTransfer

java.lang.Object
  extended byByteArrayTransfer
      extended by

org.eclipse.gef.dnd.SimpleObjectTransfer
          extended by
org.eclipse.gef.dnd.TemplateTransfer

public final class TemplateTransfer
extends SimpleObjectTransfer

Transfer object used to transfer the template of a palette tool. It is used for drag-and-drop from the palette as well as copy/paste from the palette.

Since:
2.1
See Also:
Serialized Form

Method Summary
static  TemplateTransfer getInstance ()
          Returns the singleton instance
 java.lang.Object getTemplate ()
          Returns the template object.
protected  int[] getTypeIds ()
           
protected  java.lang.String[] getTypeNames ()
           
 void setTemplate (java.lang.Object template)
          Sets the template Object.
 
Methods inherited from class org.eclipse.gef.dnd. SimpleObjectTransfer
getObject, javaToNative, nativeToJava, setObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static 
TemplateTransfer getInstance()
Returns the singleton instance

Returns:
the singleton

getTemplate

public java.lang.Object getTemplate()
Returns the template object.

Returns:
the template

getTypeIds

protected int[] getTypeIds()
See Also:
org.eclipse.swt.dnd.Transfer#getTypeIds()

getTypeNames

protected java.lang.String[] getTypeNames()
See Also:
org.eclipse.swt.dnd.Transfer#getTypeNames()

setTemplate

public void setTemplate(java.lang.Object template)
Sets the template Object.

Parameters:
template - the template

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