站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

ExTransferable.Multi (NetBeans APIs) - NetBeans API Javadoc 4.1.0


org.openide.util.datatransfer
Class ExTransferable.Multi

java.lang.Object
  extended byorg.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 May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.