All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.dnd.DataFlavorRecognizer
java.lang.Object
|
+----com.ibm.dnd.DataFlavorRecognizer
- public class DataFlavorRecognizer
- extends Object
This class allows DDTarget to determine if it can accept
the drag object or not when the user drags the object over the
component associated with the DDTarget. This class contains
isDataFlavorSupported
method for that purpose.
A DataFlavorRecognizer object is created internally and is
passed as a parameter to DDTarget's dragOver
method.
- See Also:
- dragOver
-
DataFlavorRecognizer(DataFlavor[])
- DataFlavorRecognizer constructor
-
isDataFlavorSupported(DataFlavor)
- Returns whether or not the specified DataFlavor is supported.
DataFlavorRecognizer
public DataFlavorRecognizer(DataFlavor dataFlavors[])
- DataFlavorRecognizer constructor
- Parameters:
- dataFlavours - array of dataflavor supported by the drag object
isDataFlavorSupported
public boolean isDataFlavorSupported(DataFlavor dataFlavor)
- Returns whether or not the specified DataFlavor is supported.
- Returns:
- whether or not the specified DataFlavor is supported.
- See Also:
- isDataFlavorSupported
All Packages Class Hierarchy This Package Previous Next Index