public class DnDListItemsTransferable<T> extends Object implements Transferable
DnDList
Constructor and Description |
---|
DnDListItemsTransferable(Collection<T> stuff)
Constructor
|
Modifier and Type | Method and Description |
---|---|
List<T> |
getTransferData(DataFlavor flavor)
Returns a List of items to be transferred.
|
DataFlavor[] |
getTransferDataFlavors()
Description copies from interface:
Returns an array of DataFlavor objects indicating the flavors the data can be provided in. |
boolean |
isDataFlavorSupported(DataFlavor flavor)
Description copies from interface:
Returns whether or not the specified data flavor is supported for this object. |
public DnDListItemsTransferable(Collection<T> stuff)
stuff
- a Collection of list item datapublic DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface Transferable
public boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported
in interface Transferable
public List<T> getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException
getTransferData
in interface Transferable
flavor
- - required by the interface but ignored hereIOException
- if the data is no longer available in the requested flavor.UnsupportedFlavorException
- if the requested data flavor is not supported.Copyright © 1996–2019 Geotools. All rights reserved.