Class BuildQueuePanel.BuildQueueTransferHandler.BuildablesTransferable

  • All Implemented Interfaces:
    java.awt.datatransfer.Transferable
    Enclosing class:
    BuildQueuePanel.BuildQueueTransferHandler

    public class BuildQueuePanel.BuildQueueTransferHandler.BuildablesTransferable
    extends java.lang.Object
    implements java.awt.datatransfer.Transferable
    This class implements the Transferable interface.
    • Field Detail

      • supportedFlavors

        private final java.awt.datatransfer.DataFlavor[] supportedFlavors
    • Constructor Detail

      • BuildablesTransferable

        public BuildablesTransferable​(java.util.List<BuildQueuePanel.IndexedBuildable> indexedBuildables)
        Default constructor.
        Parameters:
        indexedBuildables - The build queue to transfer.
    • Method Detail

      • getTransferData

        public java.lang.Object getTransferData​(java.awt.datatransfer.DataFlavor flavor)
                                         throws java.awt.datatransfer.UnsupportedFlavorException
        Specified by:
        getTransferData in interface java.awt.datatransfer.Transferable
        Throws:
        java.awt.datatransfer.UnsupportedFlavorException
      • getTransferDataFlavors

        public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
        Specified by:
        getTransferDataFlavors in interface java.awt.datatransfer.Transferable
      • isDataFlavorSupported

        public boolean isDataFlavorSupported​(java.awt.datatransfer.DataFlavor flavor)
        Specified by:
        isDataFlavorSupported in interface java.awt.datatransfer.Transferable