|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for transferring multiple objects at once.
Method Summary | |
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 . |
Method Detail |
public int getCount()
public Transferable getTransferableAt(int index)
index
- the index
public boolean isDataFlavorSupported(int index, DataFlavor flavor)
index
.
index
- the indexflavor
- the flavor to test
true
if the flavor is supportedpublic boolean areDataFlavorsSupported(DataFlavor[] array)
array
- array of flavors
true
if all items support one or more flavorspublic DataFlavor[] getTransferDataFlavors(int i)
i
- the index
public Object getTransferData(int indx, DataFlavor flavor) throws UnsupportedFlavorException, IOException
indx
- the indexflavor
- the flavor desired
IOException
- if there is an I/O problem
UnsupportedFlavorException
- if that flavor is not supported
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |