public class TransferableList extends ArrayList implements Transferable
This code was developed by NASA, Goddard Space Flight Center, Code 588 for the Scientist's Expert Assistant (SEA) project.
modCount
Constructor and Description |
---|
TransferableList()
Creates an empty list.
|
TransferableList(Collection c)
Creates a list containing the elements in the specified collection.
|
TransferableList(int initialCapacity)
Creates a list with the specified initial capacity.
|
Modifier and Type | Method and Description |
---|---|
Object |
getTransferData(DataFlavor flavor)
Returns an array of Objects that contains the transfer data for all
Transferables within the TransferableList that support the specified
DataFlavor.
|
DataFlavor[] |
getTransferDataFlavors()
Returns the set of supported DataFlavors for the Transferables in the list.
|
boolean |
isDataFlavorSupported(DataFlavor flavor)
Returns true if the DataFlavor is supported by at least one item in the
TransferableList.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
public TransferableList()
public TransferableList(Collection c)
public TransferableList(int initialCapacity)
public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface Transferable
public boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported
in interface Transferable
flavor
- DataFlavor to testpublic Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException
getTransferData
in interface Transferable
flavor
- extract data for this DataFlavorUnsupportedFlavorException
- thrown if none of the elements
in the list support the flavorIOException
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.