Eclipse GEF
3.0.1

org.eclipse.gef.dnd
Class TemplateTransfer

java.lang.Object
  extended byorg.eclipse.swt.dnd.Transfer
      extended byorg.eclipse.swt.dnd.ByteArrayTransfer
          extended byorg.eclipse.gef.dnd.SimpleObjectTransfer
              extended byorg.eclipse.gef.dnd.TemplateTransfer

public class TemplateTransfer
extends SimpleObjectTransfer

Since:
2.1

Method Summary
static TemplateTransfer getInstance()
          Returns the singleton instance
 Object getTemplate()
          Returns the template object.
protected  int[] getTypeIds()
           
protected  String[] getTypeNames()
           
 void setTemplate(Object template)
          Sets the template Object.
 
Methods inherited from class org.eclipse.gef.dnd.SimpleObjectTransfer
getObject, javaToNative, nativeToJava, setObject
 
Methods inherited from class org.eclipse.swt.dnd.ByteArrayTransfer
getSupportedTypes, isSupportedType
 
Methods inherited from class org.eclipse.swt.dnd.Transfer
registerType
 
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 Object getTemplate()
Returns the template object.

Returns:
the template

getTypeIds

protected int[] getTypeIds()
See Also:
Transfer.getTypeIds()

getTypeNames

protected String[] getTypeNames()
See Also:
Transfer.getTypeNames()

setTemplate

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

Parameters:
template - the template

Eclipse GEF
3.0.1

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