Synergy Home Page

au.edu.swin.synergy.plugin.editmanager
Class BTransferable

java.lang.Object
  |
  +--au.edu.swin.synergy.plugin.editmanager.BTransferable

public class BTransferable
extends Object
implements Transferable

This will allow any type of data at all to be copied to the clipboard and pasted to another location. Specified types can be associated with an object if required.

Author:
Tristan Austin

Constructor Summary
BTransferable(Object data)
          A simple object to be copied
 
Method Summary
 Object getTransferData(DataFlavor dataFlavor)
          This will get the data this transferable object contains or represents in a format dependent on the data flavor requested.
 DataFlavor[] getTransferDataFlavors()
          This will enable the caller to determine what DataFlavors are supported by getting a list of them.
 boolean isDataFlavorSupported(DataFlavor dataFlavor)
          Indicates whether the given data flavor is supported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BTransferable

public BTransferable(Object data)
A simple object to be copied
Parameters:
data - The data to be copied
Method Detail

getTransferData

public Object getTransferData(DataFlavor dataFlavor)
This will get the data this transferable object contains or represents in a format dependent on the data flavor requested.
Specified by:
getTransferData in interface Transferable
Parameters:
dataFlavor - The type of data required

getTransferDataFlavors

public DataFlavor[] getTransferDataFlavors()
This will enable the caller to determine what DataFlavors are supported by getting a list of them.
Specified by:
getTransferDataFlavors in interface Transferable
Returns:
The data flavors supported

isDataFlavorSupported

public boolean isDataFlavorSupported(DataFlavor dataFlavor)
Indicates whether the given data flavor is supported
Specified by:
isDataFlavorSupported in interface Transferable
Parameters:
dataFlavor - The data flavor to check

Synergy Home Page