KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejtools > adwt > service > MenuBarService


1 /*
2  * EJTools, the Enterprise Java Tools
3  *
4  * Distributable under LGPL license.
5  * See terms of license at www.gnu.org.
6  */

7 package org.ejtools.adwt.service;
8
9 import javax.swing.JMenuBar JavaDoc;
10
11 /**
12  * Description of the Class
13  *
14  * @author Laurent Etiemble
15  * @version $Revision: 1.5 $
16  * @todo Javadoc to complete
17  */

18 public interface MenuBarService extends ToolBarService
19 {
20    /** Description of the Field */
21    public final static int NO_LAYOUT = 0;
22    /** Description of the Field */
23    public final static int SEPARATOR_BEFORE = 1;
24    /** Description of the Field */
25    public final static int SEPARATOR_AFTER = 2;
26
27
28    /**
29     * Adds a feature to the MenuBarListener attribute of the MenuBarService object
30     *
31     * @param mbsl The feature to be added to the MenuBarListener attribute
32     */

33    public void addMenuBarListener(MenuBarService.Listener mbsl);
34
35
36    /**
37     * Description of the Method
38     *
39     * @param mbsl Description of Parameter
40     */

41    public void removeMenuBarListener(MenuBarService.Listener mbsl);
42
43
44    /**
45     * Description of the Class
46     *
47     * @author letiembl
48     * @version $Revision: 1.5 $
49     */

50    public interface Listener
51    {
52       /**
53        * Description of the Method
54        *
55        * @param menuBar Description of Parameter
56        */

57       public void update(JMenuBar JavaDoc menuBar);
58    }
59 }
60
61
Popular Tags