org.apache.turbine.util.template
Class TemplateNavigation
java.lang.Object
|
+--org.apache.turbine.util.template.TemplateNavigation
- public class TemplateNavigation
- extends java.lang.Object
Returns output of a Navigation module. An instance of this is
placed in the WebMacro context by the WebMacroSiteLayout. This
allows template authors to set the navigation template they'd like
to place in their templates. Here's how it's used in a
template:
$navigation.setTemplate("admin_navigation.wm")
- Version:
- $Id$
- Author:
- Dave Bryson
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
data
private RunData data
template
private java.lang.String template
TemplateNavigation
public TemplateNavigation(RunData data)
- Constructor
- Parameters:
data
- A Turbine RunData object.
setTemplate
public TemplateNavigation setTemplate(java.lang.String template)
- Set the template.
- Parameters:
template
- A String with the name of the navigation
template.- Returns:
- A TemplateNavigation (self).
toString
public java.lang.String toString()
- Builds the output of the navigation template.
- Overrides:
toString
in class java.lang.Object
- Returns:
- A String.
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.