ca.ucalgary.seahawk.gui
Class FileAndTextTransferHandler
java.lang.Object
javax.swing.TransferHandler
ca.ucalgary.seahawk.gui.FileAndTextTransferHandler
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- MobyObjectTransferHandler
public class FileAndTextTransferHandler
- extends TransferHandler
- See Also:
- Serialized Form
FileAndTextTransferHandler
public FileAndTextTransferHandler(MobyContentGUI mcg)
- By default, opens pasted data in a new tab of the GUI
FileAndTextTransferHandler
public FileAndTextTransferHandler(MobyContentGUI mcg,
boolean openNewDataInNewTab)
importData
public boolean importData(JComponent c,
Transferable t)
- Overrides:
importData
in class TransferHandler
convertToString
public String convertToString(Transferable t,
boolean get_plain_text)
throws Exception
- Throws:
Exception
canImport
public boolean canImport(JComponent comp,
DataFlavor[] flavors)
- Overrides same method in parent class, tells the dropper if we'll accept the data
before the drop is actually attempted.
- Overrides:
canImport
in class TransferHandler
getSourceActions
public int getSourceActions(JComponent c)
- Our components are copy-only
- Overrides:
getSourceActions
in class TransferHandler
exportDone
public void exportDone(JComponent c,
Transferable t,
int action)
- Overrides:
exportDone
in class TransferHandler
Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010