oracle.ide.datatransfer
Class TransferableContext
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
oracle.ide.datatransfer.TransferableContext
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable, java.awt.datatransfer.Transferable
- public class TransferableContext
- extends java.util.ArrayList
- implements java.awt.datatransfer.Transferable
TransferableContext
represents the set of selected
Element
objects that are part of drag-and-drop data
transfer operation.
- See Also:
- Serialized Form
Field Summary |
static java.awt.datatransfer.DataFlavor |
contextFlavor
|
Fields inherited from class java.util.AbstractList |
modCount |
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
containsAll, remove, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList |
contextFlavor
public static final java.awt.datatransfer.DataFlavor contextFlavor
TransferableContext
public TransferableContext(Context context)
- Construct a
TransferableContext
from the specified
Context
.
getContext
public Context getContext()
getTransferData
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
throws java.awt.datatransfer.UnsupportedFlavorException
- Specified by:
getTransferData
in interface java.awt.datatransfer.Transferable
- Throws:
java.awt.datatransfer.UnsupportedFlavorException
getTransferDataFlavors
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
- Specified by:
getTransferDataFlavors
in interface java.awt.datatransfer.Transferable
isDataFlavorSupported
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
- Specified by:
isDataFlavorSupported
in interface java.awt.datatransfer.Transferable
Copyright © 1997, 2004, Oracle. All rights reserved.