KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > util > browser > core > popup > DefaultMenuItemTreeView


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.popup;
28
29 /** The browser's imports */
30 import org.objectweb.util.browser.api.Entry;
31 import org.objectweb.util.browser.api.MenuItemTreeView;
32 import org.objectweb.util.browser.core.api.MenuItemTreeViewConfiguration;
33 import org.objectweb.util.browser.core.common.DefaultTreeView;
34 import org.objectweb.util.browser.core.common.DynamicTree;
35
36 /** The Java API's imports */
37 import java.awt.event.ActionEvent JavaDoc;
38
39 /**
40  *
41  *
42  * @author <a HREF="mailto:Jerome.Moroy@lifl.fr">Jerome Moroy</a>
43  * @version 0.1
44  */

45 public class DefaultMenuItemTreeView
46      extends DefaultTreeView
47   implements MenuItemTreeView, MenuItemTreeViewConfiguration {
48
49     // ==================================================================
50
//
51
// Internal states.
52
//
53
// ==================================================================
54

55     protected ActionEvent JavaDoc actionEvent_ = null;
56
57     // ==================================================================
58
//
59
// Constructors.
60
//
61
// ==================================================================
62

63 /* public DefaultMenuItemTreeView(ActionEvent e, DynamicTree tree) {
64         super(tree);
65         actionEvent_ = e;
66     }
67 */

68     public DefaultMenuItemTreeView(DynamicTree tree) {
69         super(tree);
70     }
71
72     public DefaultMenuItemTreeView(DynamicTree tree, Entry entry) {
73         super(tree, entry);
74     }
75
76     // ==================================================================
77
//
78
// Public methods from MenuItemTreeView interface.
79
//
80
// ==================================================================
81

82     /**
83      * Returns the initial ActionEvent
84      */

85     public ActionEvent JavaDoc getActionEvent() {
86         return actionEvent_;
87     }
88
89     // ==================================================================
90
//
91
// Public methods from MenuItemTreeViewConfiguration interface.
92
//
93
// ==================================================================
94

95     /**
96      * Fixes the associated action event
97      * @param e The associated action event
98      */

99     public void setActionEvent(ActionEvent JavaDoc e){
100         actionEvent_ = e;
101     }
102
103 }
104
Popular Tags