KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > columba > mail > gui > attachment > IAttachmentHandler


1 package org.columba.mail.gui.attachment;
2
3 import org.columba.api.plugin.IExtensionInterface;
4
5
6 /**
7  * Attachment handler is called when opening attachment.
8  * <p>
9  * Extensions should be registered as <code>IExtensionHandlerKeys.ORG_COLUMBA_ATTACHMENT_HANDLER</code>.
10  *
11  * @author frd
12  */

13 public interface IAttachmentHandler extends IExtensionInterface {
14
15     /**
16      * Method is called when user triggered the "Open Attachment" action. Columba
17      * automatically places the attachment in a temporary file, which is removed
18      * later on automatically.
19      * <p>
20      * @param context attachment context parameters
21      * @throws IllegalArgumentException in case of invalid arguments
22      */

23     public void execute(IAttachmentContext context) throws IllegalArgumentException JavaDoc;
24 }
25
Popular Tags