KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > za > org > coefficient > modules > navigation > Navigate


1 /*
2  * Coefficient - facilitates project based collaboration
3  * Copyright (C) 2003, Dylan Etkin, CSIR icomtek
4  * PO Box 395
5  * Pretoria 0001, RSA
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  */

19
20 package za.org.coefficient.modules.navigation;
21
22 import za.org.coefficient.interfaces.CoefficientContext;
23 import za.org.coefficient.util.ejb.VelocityScreenUtil;
24
25 /**
26  * @pojo2ejb.class
27  * name="Navigate"
28  * jndi-prefix="za/org/coefficient/permanent/"
29  * interface-extends="za.org.coefficient.interfaces.Module"
30  * interface-local-extends="za.org.coefficient.interfaces.ModuleLocal"
31  *
32  * @web.resource-env-ref
33  * name="za/org/coefficient/permanent/Navigate"
34  * type="za.org.coefficient.modules.navigation.Navigate"
35  * @web.resource-env-ref
36  * name="Navigate"
37  * type="za.org.coefficient.modules.navigation.Navigate"
38  */

39 public class Navigate extends BaseNavigate {
40     //~ Static fields/initializers =============================================
41

42     private static final String JavaDoc NAME_SPACE = "navigation";
43     private static final String JavaDoc NAME_SPACE2 = "nav-project";
44
45     //~ Methods ================================================================
46

47     public String JavaDoc getMainMethod() {
48         return "buildNavigation";
49     }
50
51     public String JavaDoc getModuleDescription() {
52         return "navigate module";
53     }
54
55     public String JavaDoc getModuleDisplayName() {
56         return "Navigate";
57     }
58
59     public CoefficientContext buildNavigation(CoefficientContext ctx) {
60         return buildNavigation(ctx, new String JavaDoc[] { NAME_SPACE, NAME_SPACE2 },
61             "za/org/coefficient/modules/navigation" +
62         VelocityScreenUtil.TEMPLATES + "line.vm",
63             "za/org/coefficient/modules/navigation" +
64         VelocityScreenUtil.TEMPLATES + "index.vm", false);
65     }
66 }
67
Popular Tags