Package docking

Class ErrLogExpandableDialog.ExcTreeTransferHandler

    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.TransferHandler

        javax.swing.TransferHandler.DropLocation, javax.swing.TransferHandler.TransferSupport
    • Field Summary

      Fields 
      ChangeModifier and Type Field Description
      NEWprotected docking.ErrLogExpandableDialog.ReportRootNode root  
      • Fields inherited from class javax.swing.TransferHandler

        COPY, COPY_OR_MOVE, LINK, MOVE, NONE
    • Constructor Summary

      Constructors 
      ChangeConstructor Description
      ExcTreeTransferHandler​(docking.ErrLogExpandableDialog.ReportRootNode root)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      ChangeModifier and Type Method Description
      NEWprotected java.awt.datatransfer.Transferable createTransferable​(javax.swing.JComponent c)  
      NEWvoid drop​(GTreeNode destUserData, java.awt.datatransfer.Transferable transferable, int dropAction)
      Add the given transferable's data to the destination user data.
      NEWint getSourceActions​(javax.swing.JComponent c)  
      java.awt.datatransfer.DataFlavor[] getSupportedDataFlavors​(java.util.List<GTreeNode> transferNodes)
      Returns the DataFlavors for the types of data that this transferable supports, based upon the given selection.
      int getSupportedDragActions()
      Returns the supported Drag actions for this tree.
      java.lang.Object getTransferData​(java.util.List<GTreeNode> transferNodes, java.awt.datatransfer.DataFlavor flavor)
      Gets the transfer data from the selection based upon the given flavor.
      boolean isDropSiteOk​(GTreeNode destUserData, java.awt.datatransfer.DataFlavor[] flavors, int dropAction)
      Return true if the drop site is valid for the given target.
      boolean isStartDragOk​(java.util.List<GTreeNode> dragUserData, int dragAction)
      Return true if the dragUserData can be dragged.
      • Methods inherited from class javax.swing.TransferHandler

        canImport, canImport, exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getVisualRepresentation, importData, importData, setDragImage, setDragImageOffset
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • root NEW

        protected docking.ErrLogExpandableDialog.ReportRootNode root

Constructor Detail

  • Method Detail

    • getSupportedDataFlavors

      public java.awt.datatransfer.DataFlavor[] getSupportedDataFlavors​(java.util.List<GTreeNode> transferNodes)
      Description copied from interface: GTreeTransferHandler
      Returns the DataFlavors for the types of data that this transferable supports, based upon the given selection.
      Specified by:
      getSupportedDataFlavors in interface GTreeTransferHandler
      Parameters:
      transferNodes - The nodes to base the DataFlavor selection upon.
      Returns:
      the DataFlavors for the types of data that this transferable supports, based upon the given selection.
    • createTransferable NEW

      protected java.awt.datatransfer.Transferable createTransferable​(javax.swing.JComponent c)
      Overrides:
      createTransferable in class javax.swing.TransferHandler
    • getTransferData

      public java.lang.Object getTransferData​(java.util.List<GTreeNode> transferNodes,
                                              java.awt.datatransfer.DataFlavor flavor)
                                       throws java.awt.datatransfer.UnsupportedFlavorException
      Description copied from interface: GTreeTransferHandler
      Gets the transfer data from the selection based upon the given flavor.
      Specified by:
      getTransferData in interface GTreeTransferHandler
      Parameters:
      transferNodes - The nodes from which to get the data.
      flavor - The flavor of data to retrieve from the given selection.
      Returns:
      the transfer data from the selection based upon the given flavor.
      Throws:
      java.awt.datatransfer.UnsupportedFlavorException - if the given flavor is not one of the supported flavors returned by GTreeTransferHandler.getSupportedDataFlavors(List).
    • isStartDragOk

      public boolean isStartDragOk​(java.util.List<GTreeNode> dragUserData,
                                   int dragAction)
      Description copied from interface: GTreeDragNDropHandler
      Return true if the dragUserData can be dragged.
      Specified by:
      isStartDragOk in interface GTreeDragNDropHandler
      Parameters:
      dragUserData - data where user is initiating the drag operation
      dragAction - user action for the drag operation
    • getSourceActions NEW

      public int getSourceActions​(javax.swing.JComponent c)
      Overrides:
      getSourceActions in class javax.swing.TransferHandler
    • isDropSiteOk NEW

      public boolean isDropSiteOk​(GTreeNode destUserData,
                                  java.awt.datatransfer.DataFlavor[] flavors,
                                  int dropAction)
      Description copied from interface: GTreeDragNDropHandler
      Return true if the drop site is valid for the given target.
      Specified by:
      isDropSiteOk in interface GTreeDragNDropHandler
      Parameters:
      destUserData - destination for node being dragged
      flavors - flavor(s) being dragged
      dropAction - user action for drop operation
    • drop NEW

      public void drop​(GTreeNode destUserData,
                       java.awt.datatransfer.Transferable transferable,
                       int dropAction)
      Description copied from interface: GTreeDragNDropHandler
      Add the given transferable's data to the destination user data.
      Specified by:
      drop in interface GTreeDragNDropHandler
      Parameters:
      destUserData - destination node for the data.
      transferable - the transferable being dragged whose data will be dropped.
      dropAction - user action for drop operation