1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.util.template;
18
19 import org.apache.turbine.util.template.*;
20 import org.apache.turbine.util.RunData;
21 import org.apache.jetspeed.services.TemplateLocator;
22 /***
23 * A Class that produce localized navigations.
24 *
25 *
26 * @author Ignacio J. Ortega
27 */
28 public class JetspeedTemplateNavigation extends TemplateNavigation {
29
30
31 private RunData data;
32
33
34
35
36
37 public JetspeedTemplateNavigation(RunData data) {
38 super(data);
39 this.data=data;
40 }
41 /***
42 * This will initialise a JetspeedTemplateNavigation object that was
43 * constructed with the default constructor (ApplicationTool
44 * method).
45 *
46 * @param data assumed to be a RunData object
47 */
48 public void init(Object data){
49 this.data = (RunData)data;
50 }
51
52
53 public TemplateNavigation setTemplate(String template) {
54 return super.setTemplate(TemplateLocator.locateNavigationTemplate(data,template));
55 }
56 }
57