Package jmri.util
Class DnDTableImportExportHandler
- java.lang.Object
-
- javax.swing.TransferHandler
-
- jmri.util.DnDTableExportHandler
-
- jmri.util.DnDTableImportExportHandler
-
- All Implemented Interfaces:
java.io.Serializable
public class DnDTableImportExportHandler extends DnDTableExportHandler
Simple TransferHandler that imports and exports Strings into JTable cells.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int[]
_skipColumns
-
Constructor Summary
Constructors Constructor Description DnDTableImportExportHandler()
DnDTableImportExportHandler(int[] skipCols)
Constructor for import/export of JTable cells
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canImport(javax.swing.TransferHandler.TransferSupport support)
boolean
importData(javax.swing.TransferHandler.TransferSupport support)
-
Methods inherited from class jmri.util.DnDTableExportHandler
createTransferable, exportDone, getSourceActions
-
-
-
-
Field Detail
-
_skipColumns
int[] _skipColumns
-
-
Constructor Detail
-
DnDTableImportExportHandler
public DnDTableImportExportHandler()
-
DnDTableImportExportHandler
public DnDTableImportExportHandler(int[] skipCols)
Constructor for import/export of JTable cells- Parameters:
skipCols
- array of column indices to refuse importing
-
-
Method Detail
-
canImport
public boolean canImport(javax.swing.TransferHandler.TransferSupport support)
- Overrides:
canImport
in classjavax.swing.TransferHandler
-
importData
public boolean importData(javax.swing.TransferHandler.TransferSupport support)
- Overrides:
importData
in classjavax.swing.TransferHandler
-
-