Package net.sf.freecol.client.gui.panel
Class BuildQueuePanel.BuildQueueTransferHandler
- java.lang.Object
-
- javax.swing.TransferHandler
-
- net.sf.freecol.client.gui.panel.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 transferBuildQueueItem
s 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 theTransferable
interface.
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JList<? extends BuildableType>
source
-
Constructor Summary
Constructors Modifier Constructor Description private
BuildQueueTransferHandler()
-
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)
-
-
-
Field Detail
-
source
private javax.swing.JList<? extends BuildableType> source
-
-
Method Detail
-
importData
public boolean importData(javax.swing.JComponent comp, java.awt.datatransfer.Transferable data)
- Overrides:
importData
in classjavax.swing.TransferHandler
-
exportDone
protected void exportDone(javax.swing.JComponent source, java.awt.datatransfer.Transferable data, int action)
- Overrides:
exportDone
in classjavax.swing.TransferHandler
-
canImport
public boolean canImport(javax.swing.JComponent comp, java.awt.datatransfer.DataFlavor[] flavors)
- Overrides:
canImport
in classjavax.swing.TransferHandler
-
createTransferable
protected java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent comp)
- Overrides:
createTransferable
in classjavax.swing.TransferHandler
-
getSourceActions
public int getSourceActions(javax.swing.JComponent comp)
- Overrides:
getSourceActions
in classjavax.swing.TransferHandler
-
-