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
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
BTransferable
public BTransferable(Object data)
- A simple object to be copied
- Parameters:
data
- The data to be copied
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