KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > util > browser > core > api > MenuFactoryConfiguration


1 /*===========================================================================
2
3 ObjectWeb Naming Context Framework
4 Copyright (C) 2002 USTL - LIFL - GOAL
5 Contact: architecture@objectweb.org
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 USA
21
22 Initial developer(s): Philippe Merle, Jerome Moroy.
23 Contributor(s): ______________________________________.
24
25 ===========================================================================*/

26
27 package org.objectweb.util.browser.core.api;
28
29 /** To use the Context interface */
30 import org.objectweb.util.browser.api.Context;
31
32 /**
33  * Standard interface for JPopupMenu factories.
34  *
35  * @author <a HREF="mailto:Jerome.Moroy@lifl.fr">Jerome Moroy</a>
36  * @version 0.1
37  */

38 public interface MenuFactoryConfiguration {
39
40     /**
41      * The standard name of this interface to use
42      * in the context of the Fractal framework.
43      */

44     static final String JavaDoc MENU_FACTORY_CONFIGURATION =
45         MenuFactoryConfiguration.class.getName();
46
47     /**
48      * Fixes the inheritTreeMenu value.
49      * @param inheritTreeMenu true if this menu has to inherit menus from parents at the tree level
50      */

51     public void setInheritTreeMenu(boolean inheritTreeMenu);
52
53     /**
54      * Fixes the inheritTypeMenu value.
55      * @param inheritTypeMenu true if this menu has to inherit menus from parents at the java type inheritance level
56      */

57     public void setInheritTypeMenu(boolean inheritTypeMenu);
58
59     /**
60      * Fixes the context containing the popup menu configuration
61      *
62      * @param items The context containing the popup menu configuration
63      */

64     public void setItems(Context items);
65
66     /**
67      * Fixes the context containing the items for tree child
68      * @param childItems The context containing the popup menu configuration for tree child
69      */

70     public void setChildItems(Context childItems);
71
72     /**
73      * Gives the context containing the items for this object.
74      * @return The context containing this menu configuration
75      */

76     public Context getItems();
77
78     /**
79      * Gives the context containing the items for tree child
80      * @return The context containing the tree child configuration
81      */

82     public Context getChildItems();
83
84     /**
85      * Fixes the list of items from which this menu have to inherit at the java type level.
86      * @param inheritMenu The list of context
87      */

88     public void setInheritTypeMenu(Context[] inheritMenu);
89
90     /**
91      * Fixes the list of items for tree child.
92      * @param inheritMenu The list of context
93      */

94     public void setInheritTreeMenu(Context[] inheritMenu);
95
96     /**
97      * Fixes the name of the class from which this menu has to be instanciate.
98      * @param className The name of the class
99      */

100     public void setClassName(String JavaDoc className);
101
102 }
103
Popular Tags