com.ibm.mq.explorer.ui.extensions

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 and Description
      static java.lang.String COPYRIGHT_NOTICE
      Common copyright notice
      static java.lang.String SCCSID
      CMVC descriptors - expanded during extraction
    • Field Detail

      • COPYRIGHT_NOTICE

        static final java.lang.String COPYRIGHT_NOTICE
        Common copyright notice
        See Also:
        Constant Field Values
      • SCCSID

        static final java.lang.String SCCSID
        CMVC descriptors - expanded during extraction
        See Also:
        Constant Field Values
    • Method Detail

      • 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