KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sslexplorer > agent > client > AgentAction


1 /* HEAD */
2 package com.sslexplorer.agent.client;
3
4 /**
5  * <i>Agent Extensions</i> may register new actions to be added to the agents
6  * GUI menu.
7  * <p>
8  * Implement this interface (({@link #getAction()})) to provide the text to
9  * use for the action in the GUI (e.g. a menu item in the system tray) and to
10  * provide the code to run on callback ({@link #actionPerformed()}).
11  *
12  * @author Brett Smith <a HREF="mailto: brett@3sp.com">&lt;brett@3sp.com&gt;</a>
13  */

14 public interface AgentAction {
15
16     /**
17      * Return the text to use for the action in the GUI.
18      *
19      * @return action text
20      */

21     public String JavaDoc getAction();
22
23     /**
24      * Perform the action.
25      */

26     public void actionPerformed();
27 }
Popular Tags