|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.apache.turbine.modules.Assembler
|
+--org.apache.turbine.modules.Navigation
|
+--org.apache.turbine.modules.navigations.TemplateNavigation
|
+--org.apache.turbine.modules.navigations.WebMacroSiteNavigation
WebMacroSiteNavigation. This screen relies on the WebMacroSitePage being set as the default page. This screen can be called directly to generate a WebMacro Screen. The doBuildTemplate() assumes the user has put the template filename in the RunData parameter and set it to the value of the template file to execute. Specialized Navigations screens should extend this class and overide the doBuildTemplate( data , context) method.
| Constructor Summary | |
WebMacroSiteNavigation()
|
|
| Method Summary | |
org.apache.ecs.ConcreteElement |
buildTemplate(RunData data)
This Builds the WebMacro template. |
protected java.lang.String |
buildWMTemplate(org.webmacro.servlet.WebContext context,
java.lang.String templateFile)
Build WM template. |
protected void |
doBuildTemplate(RunData data)
Needs to be implemented to make TemplateNavigation like us. |
protected void |
doBuildTemplate(RunData data,
org.webmacro.servlet.WebContext context)
WebMacro Navigations extending this class should overide this method to perform any particular business logic and add information to the context. |
protected org.webmacro.servlet.WebContext |
getContext(RunData data)
Return the WebContext needed by WebMacro. |
| Methods inherited from class org.apache.turbine.modules.navigations.TemplateNavigation |
doBuild |
| Methods inherited from class org.apache.turbine.modules.Navigation |
build, prepareText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WebMacroSiteNavigation()
| Method Detail |
protected void doBuildTemplate(RunData data,
org.webmacro.servlet.WebContext context)
throws java.lang.Exception
data - Turbine information.context - Context for web pages.
Exception, - a generic exception.
java.lang.Exception
protected void doBuildTemplate(RunData data)
throws java.lang.Exception
doBuildTemplate in class TemplateNavigationdata - Turbine information.
Exception, - a generic exception.
java.lang.Exception
public org.apache.ecs.ConcreteElement buildTemplate(RunData data)
throws java.lang.Exception
buildTemplate in class TemplateNavigationdata - Turbine information.
Exception, - a generic exception.
java.lang.Exceptionprotected org.webmacro.servlet.WebContext getContext(RunData data)
data - Turbine information.
protected java.lang.String buildWMTemplate(org.webmacro.servlet.WebContext context,
java.lang.String templateFile)
throws java.lang.Exception
context - A WebContext.templateFile - A String, the name of the template file.
Exception, - a generic exception.
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||