Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.openide.util 6.8.22
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.openide.util 6.8.22
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Built on December 7 2006. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.