Package net.sf.freecol.client.gui.panel
Class BuildQueuePanel.BuildQueueTransferHandler.BuildablesTransferable
- java.lang.Object
-
- net.sf.freecol.client.gui.panel.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 theTransferable
interface.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<BuildQueuePanel.IndexedBuildable>
indexedBuildables
private java.awt.datatransfer.DataFlavor[]
supportedFlavors
-
Constructor Summary
Constructors Constructor Description BuildablesTransferable(java.util.List<BuildQueuePanel.IndexedBuildable> indexedBuildables)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<BuildQueuePanel.IndexedBuildable>
getBuildables()
Get the build queue from theTransferable
.java.lang.Object
getTransferData(java.awt.datatransfer.DataFlavor flavor)
java.awt.datatransfer.DataFlavor[]
getTransferDataFlavors()
boolean
isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
-
-
-
Field Detail
-
indexedBuildables
private final java.util.List<BuildQueuePanel.IndexedBuildable> indexedBuildables
-
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
-
getBuildables
public java.util.List<BuildQueuePanel.IndexedBuildable> getBuildables()
Get the build queue from theTransferable
.- Returns:
- The build queue.
-
getTransferData
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor) throws java.awt.datatransfer.UnsupportedFlavorException
- Specified by:
getTransferData
in interfacejava.awt.datatransfer.Transferable
- Throws:
java.awt.datatransfer.UnsupportedFlavorException
-
getTransferDataFlavors
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
- Specified by:
getTransferDataFlavors
in interfacejava.awt.datatransfer.Transferable
-
isDataFlavorSupported
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
- Specified by:
isDataFlavorSupported
in interfacejava.awt.datatransfer.Transferable
-
-