Class BuildQueuePanel.BuildQueueTransferHandler

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    BuildQueuePanel

    private class BuildQueuePanel.BuildQueueTransferHandler
    extends javax.swing.TransferHandler
    This class implements a transfer handler able to transfer BuildQueueItems between the build queue list, the unit list and the building list.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  BuildQueuePanel.BuildQueueTransferHandler.BuildablesTransferable
      This class implements the Transferable interface.
      • Nested classes/interfaces inherited from class javax.swing.TransferHandler

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

      Fields 
      Modifier and Type Field Description
      private javax.swing.JList<? extends BuildableType> source  
      • Fields inherited from class javax.swing.TransferHandler

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canImport​(javax.swing.JComponent comp, java.awt.datatransfer.DataFlavor[] flavors)
      protected java.awt.datatransfer.Transferable createTransferable​(javax.swing.JComponent comp)
      protected void exportDone​(javax.swing.JComponent source, java.awt.datatransfer.Transferable data, int action)
      int getSourceActions​(javax.swing.JComponent comp)
      boolean importData​(javax.swing.JComponent comp, java.awt.datatransfer.Transferable data)
      • Methods inherited from class javax.swing.TransferHandler

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

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

      • source

        private javax.swing.JList<? extends BuildableType> source
    • Constructor Detail

      • BuildQueueTransferHandler

        private BuildQueueTransferHandler()
    • Method Detail

      • importData

        public boolean importData​(javax.swing.JComponent comp,
                                  java.awt.datatransfer.Transferable data)
        Overrides:
        importData in class javax.swing.TransferHandler
      • exportDone

        protected void exportDone​(javax.swing.JComponent source,
                                  java.awt.datatransfer.Transferable data,
                                  int action)
        Overrides:
        exportDone in class javax.swing.TransferHandler
      • canImport

        public boolean canImport​(javax.swing.JComponent comp,
                                 java.awt.datatransfer.DataFlavor[] flavors)
        Overrides:
        canImport in class javax.swing.TransferHandler
      • createTransferable

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

        public int getSourceActions​(javax.swing.JComponent comp)
        Overrides:
        getSourceActions in class javax.swing.TransferHandler