public abstract class TableLoadTransferHandler
extends javax.swing.TransferHandler
Concrete implementations of this abstract class must implement the
getLoadClient()
method to determine how loaded tables will be
consumed.
Constructor and Description |
---|
TableLoadTransferHandler(StarTableFactory tfact)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canImport(javax.swing.JComponent comp,
java.awt.datatransfer.DataFlavor[] flavors) |
protected abstract TableLoadClient |
getLoadClient()
Returns a GUI consumer for any tables loaded by this panel.
|
int |
getSourceActions(javax.swing.JComponent comp) |
boolean |
importData(javax.swing.JComponent comp,
java.awt.datatransfer.Transferable trans) |
public TableLoadTransferHandler(StarTableFactory tfact)
tfact
- factory to handle transferred-in tablesprotected abstract TableLoadClient getLoadClient()
public boolean canImport(javax.swing.JComponent comp, java.awt.datatransfer.DataFlavor[] flavors)
canImport
in class javax.swing.TransferHandler
public boolean importData(javax.swing.JComponent comp, java.awt.datatransfer.Transferable trans)
importData
in class javax.swing.TransferHandler
public int getSourceActions(javax.swing.JComponent comp)
getSourceActions
in class javax.swing.TransferHandler