public interface DropHelper
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
canTransferData(java.lang.Object dropTarget,
               java.awt.datatransfer.DataFlavor[] transferFlavors,
               int action)
Indicates whether a component would accept an import of the given
 set of data flavors prior to actually attempting to import it. 
 | 
float | 
getWeight()
Gets the sort weight for the helper. 
 | 
boolean | 
transferData(java.lang.Object dropTarget,
            java.awt.datatransfer.Transferable[] transferablesForSelection,
            int action)
Causes a transfer to a component from a clipboard or a drag-and-drop
 operation. 
 | 
boolean canTransferData(java.lang.Object dropTarget,
                        java.awt.datatransfer.DataFlavor[] transferFlavors,
                        int action)
dropTarget - the object that will receive the transfertransferFlavors - the DataFlavor, or formats 
    available for a transfer operationaction - the current drop action as defined in 
    DnDConstantstrue if the data can be inserted into 
    the component, false otherwiseDataFlavor, 
DnDConstantsboolean transferData(java.lang.Object dropTarget,
                     java.awt.datatransfer.Transferable[] transferablesForSelection,
                     int action)
Transferable represents the data to be
 imported into the component.dropTarget - the object that will receive the transfertransferablesForSelection - an array of Transferables 
    for the drag selectionaction - the current drop action as defined in 
    DnDConstantsTransferable, 
DnDConstantsfloat getWeight()
 Because only one DropHelper can be used to handle 
 drops on a given drop target, weights are used to determine which 
 drop helper to use. The higher weight values have priority over 
 lower weight values. If two helpers have the same weight, the first
 one found will have priority.
 
 The maximum weight is .Float.MAX_VALUE
DropHelper's weight