class ViewTree.TreeTransferHandler
extends javax.swing.TransferHandler
Constructor and Description |
---|
TreeTransferHandler(javax.swing.JTree tree) |
Modifier and Type | Method and Description |
---|---|
boolean |
canImport(javax.swing.JComponent component,
java.awt.datatransfer.DataFlavor[] transferFlavors) |
protected java.awt.datatransfer.Transferable |
createTransferable(javax.swing.JComponent c) |
protected void |
exportDone(javax.swing.JComponent source,
java.awt.datatransfer.Transferable data,
int action) |
int |
getSourceActions(javax.swing.JComponent component) |
boolean |
importData(javax.swing.JComponent comp,
java.awt.datatransfer.Transferable t) |
public int getSourceActions(javax.swing.JComponent component)
getSourceActions
in class javax.swing.TransferHandler
protected java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
createTransferable
in class javax.swing.TransferHandler
public boolean canImport(javax.swing.JComponent component, java.awt.datatransfer.DataFlavor[] transferFlavors)
canImport
in class javax.swing.TransferHandler
public boolean importData(javax.swing.JComponent comp, java.awt.datatransfer.Transferable t)
importData
in class javax.swing.TransferHandler
protected void exportDone(javax.swing.JComponent source, java.awt.datatransfer.Transferable data, int action)
exportDone
in class javax.swing.TransferHandler