|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDnDListItemsTransferable<T>
public class DnDListItemsTransferable<T>
Implements the Transferable interface to carry list item data during drag and drop actions. This class is used by DnDList. Client code will not normally need to refer to it.
DnDList
modules/unsupported/swing (gt-swing.jar)
Constructor Summary | |
---|---|
DnDListItemsTransferable(Collection<T> stuff)
Constructor |
Method Summary | |
---|---|
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. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DnDListItemsTransferable(Collection<T> stuff)
stuff
- a Collection of list item dataMethod Detail |
---|
public 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 here
IOException
- if the data is no longer available in the requested flavor.
UnsupportedFlavorException
- if the requested data flavor is not supported.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |