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)
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 |
dataFlavors
protected java.util.HashMap dataFlavors
dataObj
protected IXMLPersistable dataObj
BLXTransferObject
public BLXTransferObject(IXMLPersistable pObject)
- Create a Default BLXTransfer Object
- Parameters:
pObject
- that this transferable is for
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 AddpData
- for the Flavor