Interface IExplorerTreeNodeDragDrop


public interface IExplorerTreeNodeDragDrop
The interface that must be implemented if a TreeNode is to accept drag/drop events using the TreeNodeTransfer data type
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Common copyright notice
    static final String
    CMVC descriptors - expanded during extraction
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    dropAction(int action, DragDropTreeNode dragDropTreeNode)
    Carry out the specified drop action using the specified DragDropTreeNode
    boolean
    dropAction(int action, TreeNode treeNode)
    Carry out the specified drop action using the specified TreeNode
    int
    Return the drag and drop operations that are accepted by this target for the specified TreeNode
  • Field Details

  • Method Details

    • getAcceptedOperations

      int getAcceptedOperations(TreeNode treeNode)
      Return the drag and drop operations that are accepted by this target for the specified TreeNode
      Parameters:
      treeNode - the TreeNode to use
      Returns:
      int the acceptable operations (DND.DROP_NONE or combination of DND.DROP_MOVE and/or DND.DROP_COPY)
    • dropAction

      boolean dropAction(int action, TreeNode treeNode)
      Carry out the specified drop action using the specified TreeNode
      Parameters:
      action - the action to take (DND.DROP_MOVE or DND.DROP_COPY)
      treeNode - the TreeNode being dropped
      Returns:
      boolean true if the action is successful, false otherwise
    • dropAction

      boolean dropAction(int action, DragDropTreeNode dragDropTreeNode)
      Carry out the specified drop action using the specified DragDropTreeNode
      Parameters:
      action - the action to take (DND.DROP_MOVE or DND.DROP_COPY)
      dragDropTreeNode - the DragDropTreeNode representing the TreeNode being dropped
      Returns:
      boolean true if the action is successful, false otherwise