Package overit.geocall.ui
Class DragDrop
java.lang.Object
overit.geocall.ui.DragDrop
This class implements different method to manage the drag and drop operation of a component.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DraggableDroppableprotected DragDrop.Partprotected DraggableDroppableprotected DragDrop.Partprotected Object -
Constructor Summary
ConstructorsConstructorDescriptionDragDrop(Window w, HashGetter params) Main constructor of the class.
Takes theWindowwhere there are the container between which drag and drop the component, and anHashGetterthat contains some information like the action ("copy","move" ecc.), the source container id, the destination container id ecc. -
Method Summary
-
Field Details
-
_dragSourcePart
-
_dropDestinationPart
-
_dragSource
-
_dropDestination
-
_obj
-
-
Constructor Details
-
DragDrop
Main constructor of the class.
Takes theWindowwhere there are the container between which drag and drop the component, and anHashGetterthat contains some information like the action ("copy","move" ecc.), the source container id, the destination container id ecc.- Parameters:
w- TheWindowwhere there are the container between which drag and drop the component.params- AnHashGetterthat contains some information about the drag and drop operation, like the action ("copy","move" ecc.), the source container id, the destination container id ecc.
-
-
Method Details
-
getMoving
public boolean getMoving()Gets the actual action of the component ("copy","move" ecc.).- Returns:
- The actual action of the component
-
setData
-
getData
-
execute
Execute the drag and drop operation.- Throws:
DragDropException- AnExceptionthat can occur during the drag and drop operation.
-