public abstract class TableLoadTransferHandler extends TransferHandler
Concrete implementations of this abstract class must implement the
getLoadClient()
method to determine how loaded tables will be
consumed.
TransferHandler.DropLocation, TransferHandler.TransferSupport
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
Constructor and Description |
---|
TableLoadTransferHandler(StarTableFactory tfact)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canImport(JComponent comp,
DataFlavor[] flavors) |
protected abstract TableLoadClient |
getLoadClient()
Returns a GUI consumer for any tables loaded by this panel.
|
int |
getSourceActions(JComponent comp) |
boolean |
importData(JComponent comp,
Transferable trans) |
canImport, createTransferable, exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getVisualRepresentation, importData, setDragImage, setDragImageOffset
public TableLoadTransferHandler(StarTableFactory tfact)
tfact
- factory to handle transferred-in tablesprotected abstract TableLoadClient getLoadClient()
public boolean canImport(JComponent comp, DataFlavor[] flavors)
canImport
in class TransferHandler
public boolean importData(JComponent comp, Transferable trans)
importData
in class TransferHandler
public int getSourceActions(JComponent comp)
getSourceActions
in class TransferHandler
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.