|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Draggable
The interface to be implemented by objects that can be dragged and dropped.
Method Summary | |
---|---|
Widget |
getDraggedWidget()
Returns the widget to be dragged and dropped. |
HasAllMouseHandlers |
getDragHandle()
Returns the handle by which the object can be dragged. |
PointView |
getDragHandleOffset()
Returns the offset of the drag handle from the dragged widget when not in the middle of a drag-and-drop gesture. |
void |
onDragCancel()
Informs the draggable that the drag-and-drop gesture has been canceled. |
void |
onDragStart()
Informs the draggable that it has started being dragged. |
void |
onDrop(DropTarget dropTarget)
Informs the draggable that it has been dropped into the specified drop target. |
Method Detail |
---|
Widget getDraggedWidget()
HasAllMouseHandlers getDragHandle()
PointView getDragHandleOffset()
void onDragStart()
void onDrop(DropTarget dropTarget)
null
if the user performed a drag gesture but not into a
valid drop target.
void onDragCancel()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |