|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is used by DropTargetHelper to determine whether a drop can be performed and to import the data from the transferable into the model of the component.
Method Summary | |
int |
getAcceptableActions(java.awt.Component c)
Returns a bitmask of acceptable actions for this component. |
int |
getAcceptableActions(java.awt.Component c,
java.awt.datatransfer.DataFlavor[] flavor)
Returns a bitmaks of acceptable actions for the supplied Component and DataFlavor. |
java.awt.datatransfer.DataFlavor |
getSupportedDataFlavor()
|
boolean |
importData(java.awt.Component c,
java.awt.datatransfer.Transferable t,
int action)
This is the method that is doing the real work. |
Method Detail |
public java.awt.datatransfer.DataFlavor getSupportedDataFlavor()
public int getAcceptableActions(java.awt.Component c, java.awt.datatransfer.DataFlavor[] flavor)
c
- The component that is the possible drop target.flavor
- The DataFlavours that are associate with the drop action
public int getAcceptableActions(java.awt.Component c)
c
- The component where the drop could occur.
public boolean importData(java.awt.Component c, java.awt.datatransfer.Transferable t, int action)
c
- The component where the drop has occurredt
- The transferable that shall be importedaction
- The action that should be performed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |