public interface MultiTransferObject
Modifier and Type | Method and Description |
---|---|
boolean |
areDataFlavorsSupported(DataFlavor[] array)
Test whether each transferred item supports at least one of these
flavors.
|
int |
getCount()
Get the number of transferred elements.
|
Transferable |
getTransferableAt(int index)
Get the transferable at some index.
|
Object |
getTransferData(int indx,
DataFlavor flavor)
Get transfer data for the item at some index.
|
DataFlavor[] |
getTransferDataFlavors(int i)
Get list of all supported flavors for the item at an index.
|
boolean |
isDataFlavorSupported(int index,
DataFlavor flavor)
Test whether a given data flavor is supported by the item at
index . |
int getCount()
Transferable getTransferableAt(int index)
index
- the indexboolean isDataFlavorSupported(int index, DataFlavor flavor)
index
.index
- the indexflavor
- the flavor to testtrue
if the flavor is supportedboolean areDataFlavorsSupported(DataFlavor[] array)
array
- array of flavorstrue
if all items support one or more flavorsDataFlavor[] getTransferDataFlavors(int i)
i
- the indexObject getTransferData(int indx, DataFlavor flavor) throws UnsupportedFlavorException, IOException
indx
- the indexflavor
- the flavor desiredIOException
- if there is an I/O problemUnsupportedFlavorException
- if that flavor is not supported