org.openide.util.datatransfer
Class ExTransferable.Multi

java.lang.Object
  |
  +--org.openide.util.datatransfer.ExTransferable.Multi
All Implemented Interfaces:
Transferable
Enclosing class:
ExTransferable

public static class ExTransferable.Multi
extends Object
implements Transferable

Transferable object for multiple transfer. It allows several types of data to be combined into one clipboard element.


Constructor Summary
ExTransferable.Multi(Transferable[] trans)
          Constructor taking a list of Transferable objects.
 
Method Summary
 Object getTransferData(DataFlavor flavor)
          Get transfer data.
 DataFlavor[] getTransferDataFlavors()
          Get supported flavors.
 boolean isDataFlavorSupported(DataFlavor flavor)
          Is this flavor supported?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExTransferable.Multi

public ExTransferable.Multi(Transferable[] trans)
Constructor taking a list of Transferable objects.
Parameters:
trans - array of transferable objects
Method Detail

getTransferDataFlavors

public DataFlavor[] getTransferDataFlavors()
Get supported flavors.
Specified by:
getTransferDataFlavors in interface Transferable
Returns:
only one flavor, ExTransferable.multiFlavor

isDataFlavorSupported

public boolean isDataFlavorSupported(DataFlavor flavor)
Is this flavor supported?
Specified by:
isDataFlavorSupported in interface Transferable
Parameters:
flavor - the flavor
Returns:
true only if the flavor is ExTransferable.multiFlavor

getTransferData

public Object getTransferData(DataFlavor flavor)
                       throws UnsupportedFlavorException,
                              IOException
Get transfer data.
Specified by:
getTransferData in interface Transferable
Parameters:
flavor - the flavor (ExTransferable.multiFlavor)
Returns:
MultiTransferObject that represents data in this object
Throws:
UnsupportedFlavorException - when the flavor is not supported
IOException - when it is not possible to read data


Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.