org.ocd.blx
Class BLXTransferObject

java.lang.Object
  |
  +--org.ocd.blx.BLXTransferObject
All Implemented Interfaces:
java.awt.datatransfer.Transferable

public class BLXTransferObject
extends java.lang.Object
implements java.awt.datatransfer.Transferable

Since:
$Date: 2002/05/10 05:50:02 $
Version:
$Revision: 1.1 $
Author:
$Author: drichan $, ocd_dino - ocd_dino@users.sourceforge.net (initial author)

Field Summary
protected  java.util.HashMap dataFlavors
           
protected  IXMLPersistable dataObj
           
 
Constructor Summary
BLXTransferObject(IXMLPersistable pObject)
          Create a Default BLXTransfer Object
 
Method Summary
protected  void addDataFlavor(java.awt.datatransfer.DataFlavor pFlavor, java.lang.Object pData)
          Adds a Dataflavor to the Transferable
 java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor pFlavor)
          Gets the Transfer Data for a given DataFlavor
 java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
          Get all supported DataFlavors
 boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor pFlavor)
          Returns true if a given DataFlavor is Supported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataFlavors

protected java.util.HashMap dataFlavors

dataObj

protected IXMLPersistable dataObj
Constructor Detail

BLXTransferObject

public BLXTransferObject(IXMLPersistable pObject)
Create a Default BLXTransfer Object
Parameters:
pObject - that this transferable is for
Method Detail

getTransferData

public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor pFlavor)
                                 throws java.awt.datatransfer.UnsupportedFlavorException,
                                        java.io.IOException
Gets the Transfer Data for a given DataFlavor
Specified by:
getTransferData in interface java.awt.datatransfer.Transferable
Parameters:
pFlavor - requested
Returns:
Data for the specified flavor

getTransferDataFlavors

public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
Get all supported DataFlavors
Specified by:
getTransferDataFlavors in interface java.awt.datatransfer.Transferable
Returns:
array of DataFlavors

isDataFlavorSupported

public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor pFlavor)
Returns true if a given DataFlavor is Supported
Specified by:
isDataFlavorSupported in interface java.awt.datatransfer.Transferable
Returns:
boolean

addDataFlavor

protected void addDataFlavor(java.awt.datatransfer.DataFlavor pFlavor,
                             java.lang.Object pData)
Adds a Dataflavor to the Transferable
Parameters:
pFlavor - to Add
pData - for the Flavor