Class DragDrop

java.lang.Object
overit.geocall.ui.DragDrop

public class DragDrop extends Object
This class implements different method to manage the drag and drop operation of a component.
  • Field Details

  • Constructor Details

    • DragDrop

      public DragDrop(Window w, HashGetter params)
      Main constructor of the class.
      Takes the Window where there are the container between which drag and drop the component, and an HashGetter that contains some information like the action ("copy","move" ecc.), the source container id, the destination container id ecc.
      Parameters:
      w - The Window where there are the container between which drag and drop the component.
      params - An HashGetter that 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

      public void setData(Object obj)
    • getData

      public Object getData()
    • execute

      public void execute() throws DragDropException
      Execute the drag and drop operation.
      Throws:
      DragDropException - An Exception that can occur during the drag and drop operation.