1/*2 * Copyright 2000-2001,2004 The Apache Software Foundation.3 * 4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 */1617packageorg.apache.jetspeed.util.template;
1819import org.apache.turbine.util.template.*;
20import org.apache.turbine.util.RunData;
21import org.apache.jetspeed.services.TemplateLocator;
22/***23 * A Class that produce localized navigations.24 *25 *26 * @author Ignacio J. Ortega27 */28publicclassJetspeedTemplateNavigationextends TemplateNavigation {
293031private RunData data;
32/*XXX add no args constructor to turbine's TemplateNavigation33 public JetspeedTemplateNavigation(){34 data=null;35 }36*/37publicJetspeedTemplateNavigation(RunData data) {
38super(data);
39this.data=data;
40 }
41/***42 * This will initialise a JetspeedTemplateNavigation object that was43 * constructed with the default constructor (ApplicationTool44 * method).45 *46 * @param data assumed to be a RunData object47 */48publicvoid init(Object data){
49this.data = (RunData)data;
50 }
515253public TemplateNavigation setTemplate(String template) {
54returnsuper.setTemplate(TemplateLocator.locateNavigationTemplate(data,template));
55 }
56 }
57