|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DropComponent
Defines a component that supports drop actions. Implementing
classes must also extend java.awt.Component. Classes that
implement this interface generally use an instance of DropTargetAdapter
to manage drop events via method calls to this
interface.
DropTargetAdapter
,
DragSourceAdapter
Method Summary | |
---|---|
void |
executeDrop(DropTargetDropEvent e)
Execute a drop action. |
int |
getSupportedDropActions()
Return a mask of actions supported by this component eg DnDConstants.ACTION_COPY_OR_MOVE. |
void |
hideDragUnderFeedback()
Remove any drag under feedback displayed by showDragUnderFeedback (). |
boolean |
isDropOK(DropTargetDragEvent e)
Return true if a drop in the context in a DropTargetDragEvent is possible. |
void |
showDragUnderFeedback(boolean dropOK,
DropTargetDragEvent e)
Display any drag under (ie displayed under the mouse in the component) feedback. |
Method Detail |
---|
int getSupportedDropActions()
isDropOK(java.awt.dnd.DropTargetDragEvent)
.
boolean isDropOK(DropTargetDragEvent e)
e
- The drop context.void showDragUnderFeedback(boolean dropOK, DropTargetDragEvent e)
dropOK
- The value of isDropOK () when the mouse first
entered the component.e
- The drop context.void hideDragUnderFeedback()
void executeDrop(DropTargetDropEvent e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |