KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > util > explorer > swing > api > Explorer


1 /*====================================================================
2
3 Objectweb Explorer Framework
4 Copyright (C) 2000-2004 INRIA - USTL - LIFL - GOAL
5 Contact: openccm@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): Jerome Moroy, Philippe Merle.
23 Contributor(s): ______________________________________.
24
25 ====================================================================*/

26 package org.objectweb.util.explorer.swing.api;
27
28 import javax.swing.JMenuBar JavaDoc;
29 import javax.swing.JToolBar JavaDoc;
30 import javax.swing.JTree JavaDoc;
31
32 /**
33  * @author <a HREF="mailto:Jerome.Moroy@lifl.fr">Jérôme Moroy</a>,
34  * <a HREF="mailto:Philippe.Merle@lifl.fr">Philippe Merle</a>.
35  *
36  * @version 0.1
37  */

38
39 public interface Explorer {
40
41     /** The name of the fractal interface reference. */
42     public static String JavaDoc EXPLORER = "explorer";
43
44     /**
45      * Provides the DynamicTree.
46      * @return The Dynamic Tree.
47      */

48     public JTree JavaDoc getTree();
49
50     /**
51      * Fixes the menu bar where added the "Actions" and the "Roles" menus.
52      * @param menuBar The menu bar to use.
53      */

54     public void setMenuBar(JMenuBar JavaDoc menuBar);
55     
56     /**
57      * Fixes the tool bar to use.
58      * @param menuBar The tool bar to use.
59      */

60     public void setToolBar(JToolBar JavaDoc toolBar);
61
62     /**
63      * Indicates if the application allows the selection of several roles at the same time (the default value is false).
64      * @param multipleRolesEnabled True if the application allows the selection of several roles at the same time, false either.
65      */

66     public void setMultipleRoles(boolean multipleRolesEnabled);
67     
68     /**
69      * Returns true if the application allows the selection of several roles at the same time.
70      * @return true if the application allows the selection of several roles at the same time, false either.
71      */

72     public boolean isMultipleRoles();
73     
74     /**
75      * Fixes the current roles.
76      * @param role_id The list role ids to define as current roles.
77      */

78     public void setCurrentRoles(String JavaDoc[] roleIds);
79
80     /**
81      * Indicates if the popup are enabled or not. By default, the popup menus are enabled.
82      * @param popupEnabled True if the popup menu have to be enabled, false either.
83      */

84     public void setPopupEnabled(boolean popupEnabled);
85     
86     /**
87      * Returns true if the popup menus are enabled.
88      * @return true if the popup menus are enabled.
89      */

90     public boolean isPopupEnabled();
91      
92     /**
93      * Indicates if the Drag and Drop is enabled or not. By default, the Drag and Drop is available.
94      * @param dndEnabled True if the popup menu have to be enabled, false either.
95      */

96     public void setDragAndDropEnabled(boolean dndEnabled);
97         
98     /**
99      * Returns true if the Drag and Drop is enabled.
100      * @return true if the Drag and Drop is enabled.
101      */

102     public boolean isDragAndDropEnabled();
103         
104 }
105
Popular Tags