Package net.sf.freecol.client.gui.panel
Class TradeRouteInputPanel.StopListHandler
- java.lang.Object
-
- javax.swing.TransferHandler
-
- net.sf.freecol.client.gui.panel.TradeRouteInputPanel.StopListHandler
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- TradeRouteInputPanel
private class TradeRouteInputPanel.StopListHandler extends javax.swing.TransferHandler
TransferHandler for Stops.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
StopListHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canImport(javax.swing.JComponent c, java.awt.datatransfer.DataFlavor[] flavors)
protected java.awt.datatransfer.Transferable
createTransferable(javax.swing.JComponent c)
protected void
exportDone(javax.swing.JComponent source, java.awt.datatransfer.Transferable data, int action)
private java.util.List<TradeRouteStop>
getAllValues(javax.swing.JList<TradeRouteStop> jList)
int
getSourceActions(javax.swing.JComponent c)
boolean
importData(javax.swing.JComponent target, java.awt.datatransfer.Transferable data)
-
-
-
Method Detail
-
canImport
public boolean canImport(javax.swing.JComponent c, java.awt.datatransfer.DataFlavor[] flavors)
- Overrides:
canImport
in classjavax.swing.TransferHandler
-
createTransferable
protected java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
- Overrides:
createTransferable
in classjavax.swing.TransferHandler
-
getSourceActions
public int getSourceActions(javax.swing.JComponent c)
- Overrides:
getSourceActions
in classjavax.swing.TransferHandler
-
importData
public boolean importData(javax.swing.JComponent target, java.awt.datatransfer.Transferable data)
- Overrides:
importData
in classjavax.swing.TransferHandler
-
getAllValues
private java.util.List<TradeRouteStop> getAllValues(javax.swing.JList<TradeRouteStop> jList)
-
exportDone
protected void exportDone(javax.swing.JComponent source, java.awt.datatransfer.Transferable data, int action)
- Overrides:
exportDone
in classjavax.swing.TransferHandler
-
-