| java.lang.Object javax.swing.TransferHandler org.columba.mail.gui.composer.ComposerAttachmentTransferHandler
ComposerAttachmentTransferHandler | class ComposerAttachmentTransferHandler extends TransferHandler (Code) | | TransferHandler to import attachments to an email.
This transfer handler can only import file lists from the file system.
This transfer handler is a not 100% standard way of implementing a TransferHandle,
and should only be used by components in the composer frame.
author: redsolo |
Method Summary | |
public boolean | canImport(JComponent comp, DataFlavor[] transferFlavors) Returns true if the one of the flavors is the @link DataFlavor#javaFileListFlavor.
Parameters: comp - component that is queried if it can import one of the flavors. Parameters: transferFlavors - data flavors that the DnD action supports. | public boolean | importData(JComponent comp, Transferable data) Imports files into the Attachment controller.
Parameters: comp - the component that is importing the data. Parameters: data - the data. |
ComposerAttachmentTransferHandler | public ComposerAttachmentTransferHandler(AttachmentController controller)(Code) | | Parameters: controller - the attachment controller to add stuff into. |
canImport | public boolean canImport(JComponent comp, DataFlavor[] transferFlavors)(Code) | | Returns true if the one of the flavors is the @link DataFlavor#javaFileListFlavor.
Parameters: comp - component that is queried if it can import one of the flavors. Parameters: transferFlavors - data flavors that the DnD action supports. true if the one of the flavors is the javaFileListFlavor data flavor. |
importData | public boolean importData(JComponent comp, Transferable data)(Code) | | Imports files into the Attachment controller.
Parameters: comp - the component that is importing the data. Parameters: data - the data. if the files were added to the attachment controller; false otherwise. |
|
|